| 1 |
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- |
| 2 |
* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 |
* License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 |
|
| 6 |
package org.mozilla.gecko; |
| 7 |
|
| 8 |
public final class ZoomConstraints { |
| 9 |
private final float mDefaultZoom; |
| 10 |
private final float mMinZoom; |
| 11 |
private final float mMaxZoom; |
| 12 |
|
| 13 |
public ZoomConstraints(float defaultZoom, float minZoom, float maxZoom) { |
| 14 |
mDefaultZoom = defaultZoom; |
| 15 |
mMinZoom = minZoom; |
| 16 |
mMaxZoom = maxZoom; |
| 17 |
} |
| 18 |
|
| 19 |
public final float getDefaultZoom() { |
| 20 |
return mDefaultZoom; |
| 21 |
} |
| 22 |
|
| 23 |
public final float getMinZoom() { |
| 24 |
return mMinZoom; |
| 25 |
} |
| 26 |
|
| 27 |
public final float getMaxZoom() { |
| 28 |
return mMaxZoom; |
| 29 |
} |
| 30 |
} |