Commit Graph
11 Commits
Author SHA1 Message Date
samartnik 56193fe255 [Android] Adjustments to UI changes in the upstream
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3283625

Clean up legacy non-ThemeRefactorAndroid code now that the feature has
launched.

Bug: 1251194
2022-01-24 15:34:05 -05:00
samartnik 7c57d3b276 [Android] Fixes for new tab overview theme
Chromium change:
https://github.com/chromium/chromium/commit/b364155d8f3c7e0085f510d7d0c6b9f5c9cf0a0a

Enable ThemeRefactorAndroid by default.
Bug: 1251194
2021-11-02 12:38:04 -04:00
samartnik 2336c5456e [Android] Fixed color for tab groups toolbar
Chromium change:
https://chromium.googlesource.com/chromium/src/+/73c2d3d5ee5865411e0f09909f1456c5e7bbc4e3

Bottom tab strip bg to Surface-3 in night mode.

The previous implementation assumed that the background color of the tab
strip should match the omnibox. This is no longer the case, as the
tab strip should now match infobars/dialogs, and be surface-0 (day) and
surface-3 (night).

So replace the theme provider with an is incognito provider, to let the
view make the appropriate decision.

Bug: 1243098
2021-10-05 16:21:51 -04:00
samartnik 1a1cd39889 [Android] Changed theme color handling for bottom toolbar
Chromium change:
Bottom tab strip bg to Surface-3 in night mode.

The previous implementation assumed that the background color of the tab
strip should match the omnibox. This is no longer the case, as the
tab strip should now match infobars/dialogs, and be surface-0 (day) and
surface-3 (night).

So replace the theme provider with an is incognito provider, to let the
view make the appropriate decision.

Bug: 1243098
2021-10-05 16:20:19 -04:00
samartnik 5f82c09d85 [Android] Some methods moved from application to activity context
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/d5668a5d7e41aefbc739d76435f1d02fd1f93ec9

Update GTS/Group feature checking util method to use activity context

GTS/Group is currently disabled for tablet. The util method that
determines availability of the GTS and Tab Group is using application
context to identify the tablet mode. We should use activity context
instead. This CL updates those util methods to use the activity context.

Bug: 1217430
2021-07-08 18:23:36 -04:00
samartnik f2fcbdf87d [Android] Changes for BrowserControlsManagerSupplier
Chromium change:
https://chromium.googlesource.com/chromium/src/+/10041fc90b2a0d2b72be98775c73d35931dbb32e

[ChromeActivity] Dedup and attach BrowserControlsManagerSupplier

BrowserControlsManagerSupplier was introduced in crrev.com/c/2847550, but
never attached to the window.

Bug: 1204868
2021-06-29 16:37:24 -04:00
samartnik 30147bacef [Android] BottomControls moved to modularized target
Chromium change:
https://chromium.googlesource.com/chromium/src/+/2336b6557478c544a81650258aab4b0e7af49c78

Toolbar: Move BottomControls to modularized target

This CL moves the classes for BottomControls MVC component plus
its layout xml to chrome/browser/ui/android/toolbar/.

Following dependencies on chrome_java were removed:

- ShareDelegate - was not in use.
- TabGroupUi - split to BottomControlsContentDelegate and extend
               from it.

Bug: 1127732
2021-06-29 16:35:46 -04:00
samartnik 3718a8ebf8 [Android] Fixed formatting issues 2021-06-02 16:55:37 -04:00
samartnik d9930ae4b5 [Android] Brings Stack layout back as an option 2021-06-02 16:15:01 -04:00
samartnik ccfd2dcb17 [Android] Changes icon for new tab in Tab Groups 2021-03-12 12:11:17 -05:00
samartnik 45fedd4e16 [Android] Reconciles Tab Group feature with bottom toolbar 2021-03-11 16:26:33 -05:00