Bug 1892019 - Update Toolbar2 naming to match component name r=android-reviewers,gl

Differential Revision: https://phabricator.services.mozilla.com/D208038
This commit is contained in:
Roger Yang 2024-04-23 00:52:00 +00:00
parent 2e95c8e63e
commit 51175e7bb9
26 changed files with 91 additions and 62 deletions

View file

@ -270,6 +270,33 @@ projects:
- ui-colors - ui-colors
- ui-icons - ui-icons
- ui-widgets - ui-widgets
browser-toolbar2:
description: A customizable toolbar for browsers.
path: components/browser/toolbar2
publish: true
upstream_dependencies:
- browser-errorpages
- browser-menu
- browser-menu2
- browser-state
- concept-awesomebar
- concept-base
- concept-engine
- concept-fetch
- concept-menu
- concept-storage
- concept-toolbar
- lib-publicsuffixlist
- lib-state
- support-base
- support-ktx
- support-test
- support-utils
- tooling-lint
- ui-autocomplete
- ui-colors
- ui-icons
- ui-widgets
compose-awesomebar: compose-awesomebar:
description: An awesomebar component showing search results matching text entered description: An awesomebar component showing search results matching text entered
into the toolbar. into the toolbar.

View file

@ -83,6 +83,8 @@ High-level components for building browser(-like) apps.
* 🔵 [**Toolbar**](components/browser/toolbar/README.md) - A customizable toolbar for browsers. * 🔵 [**Toolbar**](components/browser/toolbar/README.md) - A customizable toolbar for browsers.
* 🔴 [**Toolbar2**](components/browser/toolbar2/README.md) - A customizable toolbar for browsers.
## Concept ## Concept
_API contracts and abstraction layers for browser components._ _API contracts and abstraction layers for browser components._

View file

@ -1,4 +1,4 @@
# [Android Components](../../../README.md) > Browser > Toolbar # [Android Components](../../../README.md) > Browser > Toolbar2
A customizable toolbar for browsers. A customizable toolbar for browsers.
@ -9,7 +9,7 @@ A customizable toolbar for browsers.
Use Gradle to download the library from [maven.mozilla.org](https://maven.mozilla.org/) ([Setup repository](../../../README.md#maven-repository)): Use Gradle to download the library from [maven.mozilla.org](https://maven.mozilla.org/) ([Setup repository](../../../README.md#maven-repository)):
```Groovy ```Groovy
implementation "org.mozilla.components:browser-toolbar:{latest-version}" implementation "org.mozilla.components:browser-toolbar2:{latest-version}"
``` ```
## Facts ## Facts

View file

@ -19,7 +19,7 @@ android {
} }
} }
namespace 'mozilla.components.browser.toolbar' namespace 'mozilla.components.browser.toolbar2'
} }
dependencies { dependencies {

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar package mozilla.components.browser.toolbar2
import android.content.Context import android.content.Context
import android.graphics.drawable.Drawable import android.graphics.drawable.Drawable
@ -25,8 +25,8 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.cancelChildren import kotlinx.coroutines.cancelChildren
import kotlinx.coroutines.isActive import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import mozilla.components.browser.toolbar.display.DisplayToolbar import mozilla.components.browser.toolbar2.display.DisplayToolbar
import mozilla.components.browser.toolbar.edit.EditToolbar import mozilla.components.browser.toolbar2.edit.EditToolbar
import mozilla.components.concept.toolbar.AutocompleteDelegate import mozilla.components.concept.toolbar.AutocompleteDelegate
import mozilla.components.concept.toolbar.AutocompleteResult import mozilla.components.concept.toolbar.AutocompleteResult
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.content.Context import android.content.Context
import android.graphics.Color import android.graphics.Color
@ -21,9 +21,9 @@ import androidx.constraintlayout.widget.ConstraintSet
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import androidx.core.view.isVisible import androidx.core.view.isVisible
import mozilla.components.browser.menu.BrowserMenuBuilder import mozilla.components.browser.menu.BrowserMenuBuilder
import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.browser.toolbar2.BrowserToolbar
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.browser.toolbar.internal.ActionContainer import mozilla.components.browser.toolbar2.internal.ActionContainer
import mozilla.components.concept.menu.MenuController import mozilla.components.concept.menu.MenuController
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar
import mozilla.components.support.ktx.android.content.isScreenReaderEnabled import mozilla.components.support.ktx.android.content.isScreenReaderEnabled

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.content.Context import android.content.Context
import android.graphics.Canvas import android.graphics.Canvas
@ -10,7 +10,7 @@ import android.util.AttributeSet
import android.view.View import android.view.View
import android.widget.ImageView import android.widget.ImageView
import androidx.constraintlayout.widget.ConstraintLayout import androidx.constraintlayout.widget.ConstraintLayout
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
/** /**
* Custom ConstraintLayout for DisplayToolbar that allows us to draw ripple backgrounds on the toolbar * Custom ConstraintLayout for DisplayToolbar that allows us to draw ripple backgrounds on the toolbar

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.content.Context import android.content.Context
import android.graphics.drawable.Drawable import android.graphics.drawable.Drawable
@ -11,7 +11,7 @@ import androidx.annotation.VisibleForTesting
import androidx.appcompat.content.res.AppCompatResources import androidx.appcompat.content.res.AppCompatResources
import androidx.appcompat.widget.AppCompatImageView import androidx.appcompat.widget.AppCompatImageView
import androidx.core.view.isVisible import androidx.core.view.isVisible
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.concept.toolbar.Toolbar.Highlight import mozilla.components.concept.toolbar.Toolbar.Highlight
import mozilla.components.concept.toolbar.Toolbar.Highlight.NONE import mozilla.components.concept.toolbar.Toolbar.Highlight.NONE
import mozilla.components.concept.toolbar.Toolbar.Highlight.PERMISSIONS_CHANGED import mozilla.components.concept.toolbar.Toolbar.Highlight.PERMISSIONS_CHANGED

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import androidx.annotation.ColorInt import androidx.annotation.ColorInt
import androidx.annotation.VisibleForTesting import androidx.annotation.VisibleForTesting
@ -10,7 +10,7 @@ import androidx.core.view.isVisible
import mozilla.components.browser.menu.BrowserMenuBuilder import mozilla.components.browser.menu.BrowserMenuBuilder
import mozilla.components.browser.menu.ext.asCandidateList import mozilla.components.browser.menu.ext.asCandidateList
import mozilla.components.browser.menu.ext.getHighlight import mozilla.components.browser.menu.ext.getHighlight
import mozilla.components.browser.toolbar.facts.emitOpenMenuFact import mozilla.components.browser.toolbar2.facts.emitOpenMenuFact
import mozilla.components.concept.menu.MenuController import mozilla.components.concept.menu.MenuController
internal class MenuButton( internal class MenuButton(

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.animation.LayoutTransition import android.animation.LayoutTransition
import android.content.Context import android.content.Context
@ -15,8 +15,8 @@ import android.widget.LinearLayout
import android.widget.TextView import android.widget.TextView
import androidx.annotation.VisibleForTesting import androidx.annotation.VisibleForTesting
import androidx.core.view.isVisible import androidx.core.view.isVisible
import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.browser.toolbar2.BrowserToolbar
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
private const val TITLE_VIEW_WEIGHT = 5.7f private const val TITLE_VIEW_WEIGHT = 5.7f
private const val URL_VIEW_WEIGHT = 4.3f private const val URL_VIEW_WEIGHT = 4.3f

View file

@ -2,13 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.content.Context import android.content.Context
import android.util.AttributeSet import android.util.AttributeSet
import android.view.View import android.view.View
import androidx.appcompat.widget.AppCompatImageView import androidx.appcompat.widget.AppCompatImageView
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.concept.toolbar.Toolbar.SiteSecurity import mozilla.components.concept.toolbar.Toolbar.SiteSecurity
/** /**

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.content.Context import android.content.Context
import android.graphics.drawable.Animatable import android.graphics.drawable.Animatable
@ -13,7 +13,7 @@ import androidx.annotation.VisibleForTesting
import androidx.appcompat.content.res.AppCompatResources import androidx.appcompat.content.res.AppCompatResources
import androidx.appcompat.widget.AppCompatImageView import androidx.appcompat.widget.AppCompatImageView
import androidx.core.view.isVisible import androidx.core.view.isVisible
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.concept.toolbar.Toolbar.SiteTrackingProtection import mozilla.components.concept.toolbar.Toolbar.SiteTrackingProtection
import mozilla.components.concept.toolbar.Toolbar.SiteTrackingProtection.OFF_FOR_A_SITE import mozilla.components.concept.toolbar.Toolbar.SiteTrackingProtection.OFF_FOR_A_SITE
import mozilla.components.concept.toolbar.Toolbar.SiteTrackingProtection.OFF_GLOBALLY import mozilla.components.concept.toolbar.Toolbar.SiteTrackingProtection.OFF_GLOBALLY

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.edit package mozilla.components.browser.toolbar2.edit
import android.content.Context import android.content.Context
import android.graphics.Typeface import android.graphics.Typeface
@ -22,11 +22,11 @@ import androidx.core.view.isVisible
import kotlinx.coroutines.CoroutineExceptionHandler import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.asCoroutineDispatcher import kotlinx.coroutines.asCoroutineDispatcher
import mozilla.components.browser.toolbar.AsyncFilterListener import mozilla.components.browser.toolbar2.AsyncFilterListener
import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.browser.toolbar2.BrowserToolbar
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.browser.toolbar.facts.emitCommitFact import mozilla.components.browser.toolbar2.facts.emitCommitFact
import mozilla.components.browser.toolbar.internal.ActionContainer import mozilla.components.browser.toolbar2.internal.ActionContainer
import mozilla.components.concept.toolbar.AutocompleteDelegate import mozilla.components.concept.toolbar.AutocompleteDelegate
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar
import mozilla.components.support.base.log.logger.Logger import mozilla.components.support.base.log.logger.Logger

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.facts package mozilla.components.browser.toolbar2.facts
import mozilla.components.support.base.Component import mozilla.components.support.base.Component
import mozilla.components.support.base.facts.Action import mozilla.components.support.base.facts.Action

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.internal package mozilla.components.browser.toolbar2.internal
import android.content.Context import android.content.Context
import android.transition.TransitionManager import android.transition.TransitionManager
@ -12,7 +12,7 @@ import android.view.View
import android.widget.LinearLayout import android.widget.LinearLayout
import androidx.annotation.VisibleForTesting import androidx.annotation.VisibleForTesting
import androidx.core.view.isVisible import androidx.core.view.isVisible
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar
/** /**

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.internal package mozilla.components.browser.toolbar2.internal
import android.view.View import android.view.View
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar

View file

@ -2,7 +2,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public <!-- 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 - 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/. --> - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<mozilla.components.browser.toolbar.display.DisplayToolbarView xmlns:android="http://schemas.android.com/apk/res/android" <mozilla.components.browser.toolbar2.display.DisplayToolbarView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:mozac="http://schemas.android.com/apk/res-auto" xmlns:mozac="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
@ -12,7 +12,7 @@
<!-- Navigation --> <!-- Navigation -->
<mozilla.components.browser.toolbar.internal.ActionContainer <mozilla.components.browser.toolbar2.internal.ActionContainer
android:id="@+id/mozac_browser_toolbar_navigation_actions" android:id="@+id/mozac_browser_toolbar_navigation_actions"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="48dp" android:layout_height="48dp"
@ -50,7 +50,7 @@
app:srcCompat="@drawable/mozac_ic_search_24" app:srcCompat="@drawable/mozac_ic_search_24"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
<mozilla.components.browser.toolbar.display.TrackingProtectionIconView <mozilla.components.browser.toolbar2.display.TrackingProtectionIconView
android:id="@+id/mozac_browser_toolbar_tracking_protection_indicator" android:id="@+id/mozac_browser_toolbar_tracking_protection_indicator"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
@ -73,7 +73,7 @@
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/mozac_browser_toolbar_icons_vertical_separator" /> app:srcCompat="@drawable/mozac_browser_toolbar_icons_vertical_separator" />
<mozilla.components.browser.toolbar.display.SiteSecurityIconView <mozilla.components.browser.toolbar2.display.SiteSecurityIconView
android:id="@+id/mozac_browser_toolbar_security_indicator" android:id="@+id/mozac_browser_toolbar_security_indicator"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
@ -84,7 +84,7 @@
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/mozac_ic_site_security" /> app:srcCompat="@drawable/mozac_ic_site_security" />
<mozilla.components.browser.toolbar.display.HighlightView <mozilla.components.browser.toolbar2.display.HighlightView
android:id="@+id/mozac_browser_toolbar_permission_indicator" android:id="@+id/mozac_browser_toolbar_permission_indicator"
android:layout_width="10dp" android:layout_width="10dp"
android:layout_height="10dp" android:layout_height="10dp"
@ -99,7 +99,7 @@
<!-- URL & Title --> <!-- URL & Title -->
<mozilla.components.browser.toolbar.display.OriginView <mozilla.components.browser.toolbar2.display.OriginView
android:id="@+id/mozac_browser_toolbar_origin_view" android:id="@+id/mozac_browser_toolbar_origin_view"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="40dp" android:layout_height="40dp"
@ -126,7 +126,7 @@
<!-- Page actions --> <!-- Page actions -->
<mozilla.components.browser.toolbar.internal.ActionContainer <mozilla.components.browser.toolbar2.internal.ActionContainer
android:id="@+id/mozac_browser_toolbar_page_actions" android:id="@+id/mozac_browser_toolbar_page_actions"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="48dp" android:layout_height="48dp"
@ -139,7 +139,7 @@
<!-- Browser Actions --> <!-- Browser Actions -->
<mozilla.components.browser.toolbar.internal.ActionContainer <mozilla.components.browser.toolbar2.internal.ActionContainer
android:id="@+id/mozac_browser_toolbar_browser_actions" android:id="@+id/mozac_browser_toolbar_browser_actions"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="48dp" android:layout_height="48dp"
@ -172,4 +172,4 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />
</mozilla.components.browser.toolbar.display.DisplayToolbarView> </mozilla.components.browser.toolbar2.display.DisplayToolbarView>

View file

@ -36,7 +36,7 @@
tools:ignore="ContentDescription" tools:ignore="ContentDescription"
android:layout_marginTop="8dp" /> android:layout_marginTop="8dp" />
<mozilla.components.browser.toolbar.internal.ActionContainer <mozilla.components.browser.toolbar2.internal.ActionContainer
android:id="@+id/mozac_browser_toolbar_edit_actions_start" android:id="@+id/mozac_browser_toolbar_edit_actions_start"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="40dp" android:layout_height="40dp"
@ -89,7 +89,7 @@
app:layout_constraintEnd_toStartOf="@id/mozac_browser_toolbar_edit_actions_end" app:layout_constraintEnd_toStartOf="@id/mozac_browser_toolbar_edit_actions_end"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent" />
<mozilla.components.browser.toolbar.internal.ActionContainer <mozilla.components.browser.toolbar2.internal.ActionContainer
android:id="@+id/mozac_browser_toolbar_edit_actions_end" android:id="@+id/mozac_browser_toolbar_edit_actions_end"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="40dp" android:layout_height="40dp"

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar package mozilla.components.browser.toolbar2
import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.asCoroutineDispatcher import kotlinx.coroutines.asCoroutineDispatcher

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar package mozilla.components.browser.toolbar2
import android.content.Context import android.content.Context
import android.graphics.drawable.Drawable import android.graphics.drawable.Drawable
@ -17,10 +17,10 @@ import androidx.core.view.inputmethod.EditorInfoCompat
import androidx.core.view.isGone import androidx.core.view.isGone
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.ext.junit.runners.AndroidJUnit4
import mozilla.components.browser.toolbar.display.DisplayToolbar import mozilla.components.browser.toolbar2.display.DisplayToolbar
import mozilla.components.browser.toolbar.display.DisplayToolbarViews import mozilla.components.browser.toolbar2.display.DisplayToolbarViews
import mozilla.components.browser.toolbar.display.MenuButton import mozilla.components.browser.toolbar2.display.MenuButton
import mozilla.components.browser.toolbar.edit.EditToolbar import mozilla.components.browser.toolbar2.edit.EditToolbar
import mozilla.components.concept.toolbar.AutocompleteDelegate import mozilla.components.concept.toolbar.AutocompleteDelegate
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar
import mozilla.components.concept.toolbar.Toolbar.SiteSecurity import mozilla.components.concept.toolbar.Toolbar.SiteSecurity

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.graphics.Color import android.graphics.Color
import android.os.Build import android.os.Build
@ -14,8 +14,8 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
import mozilla.components.browser.menu.BrowserMenu import mozilla.components.browser.menu.BrowserMenu
import mozilla.components.browser.menu.BrowserMenuBuilder import mozilla.components.browser.menu.BrowserMenuBuilder
import mozilla.components.browser.menu.item.SimpleBrowserMenuItem import mozilla.components.browser.menu.item.SimpleBrowserMenuItem
import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.browser.toolbar2.BrowserToolbar
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.concept.menu.MenuButton import mozilla.components.concept.menu.MenuButton
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar
import mozilla.components.concept.toolbar.Toolbar.SiteSecurity import mozilla.components.concept.toolbar.Toolbar.SiteSecurity

View file

@ -2,11 +2,11 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.ext.junit.runners.AndroidJUnit4
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.concept.toolbar.Toolbar.Highlight.NONE import mozilla.components.concept.toolbar.Toolbar.Highlight.NONE
import mozilla.components.concept.toolbar.Toolbar.Highlight.PERMISSIONS_CHANGED import mozilla.components.concept.toolbar.Toolbar.Highlight.PERMISSIONS_CHANGED
import mozilla.components.support.test.robolectric.testContext import mozilla.components.support.test.robolectric.testContext

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.graphics.Color import android.graphics.Color
import android.view.View import android.view.View

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.display package mozilla.components.browser.toolbar2.display
import android.graphics.PorterDuff import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter import android.graphics.PorterDuffColorFilter

View file

@ -2,15 +2,15 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.edit package mozilla.components.browser.toolbar2.edit
import android.view.KeyEvent import android.view.KeyEvent
import android.view.View import android.view.View
import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest import kotlinx.coroutines.test.runTest
import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.browser.toolbar2.BrowserToolbar
import mozilla.components.browser.toolbar.R import mozilla.components.browser.toolbar2.R
import mozilla.components.concept.toolbar.AutocompleteDelegate import mozilla.components.concept.toolbar.AutocompleteDelegate
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar
import mozilla.components.support.base.Component import mozilla.components.support.base.Component

View file

@ -2,10 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package mozilla.components.browser.toolbar.internal package mozilla.components.browser.toolbar2.internal
import android.view.View import android.view.View
import mozilla.components.browser.toolbar.BrowserToolbar import mozilla.components.browser.toolbar2.BrowserToolbar
import mozilla.components.concept.toolbar.Toolbar import mozilla.components.concept.toolbar.Toolbar
import mozilla.components.support.test.robolectric.testContext import mozilla.components.support.test.robolectric.testContext
import org.junit.Assert.assertEquals import org.junit.Assert.assertEquals