[cr144][Android] New locationBarEmbedder arg at LocationBarCoordinator.ctor

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/9afc53ae9f2e324d23f4417840980f48a66c7a21

	Animate compact mode expand/contract

	This is accomplished with the transition framework. LBC is notified
	right before layout changes corresponding to compact mode state changes
	are made, allowing it to capture values at the right time. The location
	bar itself and the "+" button are animated.

	In order to animate contraction correctly, the Toolbar needs to remain
	larger until the animation ends to avoid clipping the LocationBar.
	LocationBarEmbedder allows for the toolbar's height to temporarily fixed
	without exposing the view directly.

	In order to provide consistent notifications re: compact mode state, we
	need to create a single source of truth for compactness, extracting the
	view binder's control of this property out to the mediator.

	Bug: TBD
	Change-Id: I40943b27b0e295c6bc83fb9b541d6d2f57396a69
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7171390
This commit is contained in:
AlexeyBarabash
2025-12-21 17:12:55 -05:00
committed by Emerick Rogul
parent 66e22a029c
commit 9bfb7fba44
2 changed files with 4 additions and 0 deletions
@@ -88,6 +88,7 @@ public class BraveLocationBarCoordinator extends LocationBarCoordinator {
@Nullable OmniboxSuggestionsDropdownScrollListener
omniboxSuggestionsDropdownScrollListener,
ObservableSupplier<TabModelSelector> tabModelSelectorSupplier,
LocationBarEmbedder locationBarEmbedder,
LocationBarEmbedderUiOverrides uiOverrides,
@Nullable View baseChromeLayout,
Supplier<Integer> bottomWindowPaddingSupplier,
@@ -122,6 +123,7 @@ public class BraveLocationBarCoordinator extends LocationBarCoordinator {
backPressManager,
omniboxSuggestionsDropdownScrollListener,
tabModelSelectorSupplier,
locationBarEmbedder,
uiOverrides,
baseChromeLayout,
() ->