diff options
Diffstat (limited to 'mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarPosition.kt')
-rw-r--r-- | mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarPosition.kt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarPosition.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarPosition.kt new file mode 100644 index 0000000000..7f5d188079 --- /dev/null +++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarPosition.kt @@ -0,0 +1,19 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +package org.mozilla.fenix.components.toolbar + +import android.view.Gravity + +/** + * Fenix lets the browser toolbar be placed at either the top or the bottom of the screen. + * This enum represents the posible positions. + * + * @property androidGravity [Gravity] value corresponding to the position. + * Used to position related elements such as a CFR tooltip. + */ +enum class ToolbarPosition(val androidGravity: Int) { + BOTTOM(Gravity.BOTTOM), + TOP(Gravity.TOP), +} |