Commit Graph
216 Commits
Author SHA1 Message Date
samartnik 298513a978 [Android] TileView moved to components/browser_ui/widget
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/d089c588065dd2f12fe17d9d10b4e1fbbb1c5e20

Move TileView to components/browser_ui/widget

Moving TileView related class to components/browser_ui/widget, and all
related resources files
to make it available for using in launchpad module.

Bug: 1178919
2021-03-23 14:55:34 -04:00
samartnik b6ddfff33c [Android] tab_switcher_toolbar.xml was moved
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/afd16b5973b054f53733695ce33708ef430a0b83

Toolbar: Remove deps on TrackerFactory

Removes deps on TrackerFactory in ToolbarTabControllerImpl and
move it to the modularized toolbar/. There are a few more classes
that can also be moved:

ToolbarTabControllerImplTest.java
ToolbarTabControllerImpl.java
top/IncognitoSwitchCoordinator.java
top/IncognitoSwitchProperties.java
top/IncognitoSwitchViewBinder.java
top/TabSwitcherActionMenuCoordinator.java
top/TabSwitcherActionMenuRenderTest.java

Bug: 1127732
2021-03-23 14:55:02 -04:00
samartnik 01a39dba3e [Android] Fixes Tab Groups controls behaviour on tab closing 2021-03-19 17:18:11 -04:00
samartnik 460d8335f4 Merge pull request #8227 from brave/android_reconcile_tab_groups
[Android] Reconciles Tab Group feature with bottom toolbar
2021-03-12 14:53:18 -05:00
Deep Pandya 3a39cdf265 Merge pull request #8173 from brave/remove_warning_android
Remove warning android
2021-03-12 10:03:00 -05:00
samartnik 45fedd4e16 [Android] Reconciles Tab Group feature with bottom toolbar 2021-03-11 16:26:33 -05:00
Deep Pandya 1f527d2e9e Merge pull request #7834 from brave/change_text_color_ac_panel_android
Change text color for AC panel
2021-03-10 17:51:17 -05:00
Deep 438e27e84d Remove touch event warnings
Remove string format warning
2021-03-07 19:14:02 -05:00
Deep c68504899a Remove warnnings for unused resources
Remove warning for drawables
2021-03-07 19:14:02 -05:00
Deep f16d013900 Remove scrollview related warnings 2021-03-07 19:14:02 -05:00
Deep ea55de9aaa Remove unused files 2021-03-07 19:14:01 -05:00
Deep 8622599bd0 Update BAP modal 2021-02-17 11:49:04 -05:00
samartnik 68b43207e8 [Android] Fixes for lint error and java warnings
Fixes this lint error:
../../chrome/android/java/res/layout/brave_sync_done.xml:85: Error: Must use app:tint instead of android:tint [UseAppTint]
                    android:tint="@android:color/black" />

Fixes these java warnings:
../../brave/android/java/org/chromium/chrome/browser/custom_layout/popup_window_tooltip/PopupWindowTooltip.java:66: warning: [NoRedundantFieldInit] Do not explicitly initialize a non-final field with a default value
    private boolean dismissed = false;
                    ^
    (see https://issuetracker.google.com/issues/37124982)
  Did you mean 'private boolean dismissed;'?
../../brave/android/java/org/chromium/chrome/browser/custom_layout/popup_window_tooltip/PopupWindowTooltip.java:302: warning: [MultiVariableDeclaration] Variable declarations should declare only one variable
                    float x, y;
                          ^
    (see https://google.github.io/styleguide/javaguide.html#s4.8.2.1-variables-per-declaration)
  Did you mean 'float x;float y;'?
../../brave/android/java/org/chromium/chrome/browser/custom_layout/popup_window_tooltip/PopupWindowTooltip.java:370: warning: [NoRedundantFieldInit] Do not explicitly initialize a non-final field with a default value
        private boolean modal = false;
                        ^
    (see https://issuetracker.google.com/issues/37124982)
  Did you mean 'private boolean modal;'?
../../brave/android/java/org/chromium/chrome/browser/custom_layout/popup_window_tooltip/ArrowColorDrawable.java:21: warning: [MultiVariableDeclaration] Variable declarations should declare only one variable
    public static final int LEFT = 0, TOP = 1, RIGHT = 2, BOTTOM = 3, AUTO = 4;
                            ^
    (see https://google.github.io/styleguide/javaguide.html#s4.8.2.1-variables-per-declaration)
  Did you mean 'public static final int LEFT = 0;public static final int TOP = 1;public static final int RIGHT = 2;public static final int BOTTOM = 3;public static final int AUTO = 4;'?
../../brave/android/java/org/chromium/chrome/browser/custom_layout/popup_window_tooltip/ArrowColorDrawable.java:85: warning: [MissingOverride] setColor overrides method in ColorDrawable; expected @Override
    public void setColor(@ColorInt int color) {
                ^
    (see https://errorprone.info/bugpattern/MissingOverride)
  Did you mean '@Override public void setColor(@ColorInt int color) {'?
2021-02-04 23:52:52 -05:00
Deep c16a20805a Change text color 2021-02-04 17:11:15 -05:00
Deep 6d8927ba1e Update tooltip UI 2021-02-04 01:28:50 -05:00
Deep 231bc92aa5 Add tooltip UI
Add modal UI
2021-02-04 01:28:50 -05:00
Deep d06509839f Fix #13800 2021-02-01 17:54:35 -05:00
Deep 78dae0713c Add set default browser modal
Update behaviour for p3a modal
2021-01-29 13:26:32 -05:00
Deep 169486d23f Add blue tooltips
Update behaviour for tooltips
2021-01-27 10:38:03 -05:00
Deep 64e79f44cb Add generic tooltip UI
Update existing shields tooltip
2021-01-27 10:38:03 -05:00
AlexeyBarabash d0aed44fcd Add warning button to switch Android system sync toggle; fixes brave-browser#11128 2021-01-22 21:54:06 +02:00
Deep b35bed7d1a Update onboading UI 2021-01-15 04:28:18 -05:00
Deep baa55b1ed7 Remove duplicate entry for qwant in search engine list 2021-01-15 04:28:18 -05:00
Deep Pandya 342cc60c5a Merge pull request #7593 from brave/update_p3a_onboarding_behaviour_android
Update behaviour for checkbox on p3a onboarding
2021-01-14 00:08:51 -05:00
Deep Pandya 4db20a2325 Merge pull request #7590 from brave/update_ntp_crash_android
Update NTP code to avoid ID related issue
2021-01-13 18:50:55 -05:00
Deep 6c2d4183c2 Update behaviour for checkbox on p3a onboarding 2021-01-13 17:15:30 -05:00
Deep fd8d14fc22 Update NTP code to avoid ID related issue 2021-01-13 16:24:08 -05:00
Deep 50c3d711a2 Add rewards modal for existing user 2021-01-11 23:45:17 -05:00
Deep 892abcd45e Update privacy report behaviour for p3a 2021-01-08 16:21:26 -05:00
Deep b69c92347d ADd UI for p3a full screen onboarding 2021-01-08 16:02:56 -05:00
Max 8c4a6c90fa Merge pull request #7408 from brave/cr88
Upgrade from Chromium 88.0.4315.7 to Chromium 88.0.4324.51.
2021-01-06 20:22:12 -05:00
Deep fd3ee48551 Update NTP widget layout location 2021-01-06 03:36:09 -05:00
Deep b8312f5129 Fix 12010 2021-01-06 03:00:08 -05:00
samartnik 1daa5b9a8a [Android] Fixed lint errors
Fixes errors like
../../chrome/android/java/res/layout/binance_deposit_layout.xml:39: Error: Must use app:tint instead of android:tint [UseAppTint]
           android:tint="@android:color/white"

Chromium change:
https://chromium.googlesource.com/chromium/src/+/33026f0b97add89f468693c385db94d821e55b6e

Android: Enable custom lint checks from aars (reland)

Some aar files (e.g. androidx) that chrome depends on contain a lint.jar
file and/or a annotations.zip file. The lint.jar file includes custom
android lint checks. The annotations.zip file contains @IntDef and other
annotations needed for lint checks that are usually available by source
but are not available in aars.

By using these files, we can make our existing lint checks more
comprehensive as well as benefit from lint checks by the aar library
authors.

See newly ignored checks in lint-baseline.xml which is updated in this
CL as an example. Actually fixing these errors is left for future CLs
in order to enable them quicker and avoid unnecessary relands.

Original CL: https://crrev.com/c/2510793

Fixed:
- Avoid ../../ prefix in temporary extraction of aar files.

Tbr: Reland with trivial fix.
Bug: 1078229
2021-01-05 21:27:43 -05:00
Deep 5eeb103ab1 Update design for privacy stats
Format code
2021-01-03 18:42:32 -05:00
Deep 3939532996 Update Search engine onboarding 2020-12-28 15:47:15 -05:00
Deep b519f25ac6 Update brave shields based on userlytics feedback 2020-12-28 15:47:15 -05:00
Deep e6f1b0942c Update onboarding behaviour
FIx debug error

Update NTP banner behaviour
2020-12-11 17:45:04 -05:00
Deep Pandya 99ab49cb12 Merge pull request #7378 from brave/update_bre_android
Update BRE android
2020-12-09 21:42:03 -05:00
Deep 36732b92ad Address PR comments 2020-12-09 11:18:22 -05:00
Deep cf25b3436c Update UI for tablet 2020-12-08 19:46:51 -05:00
Deep 00d82e117e Update welcome layout 2020-12-08 16:31:21 -05:00
samartnik 7f548ebbf2 [Android] Fix for tint changes for home button
Chromium change:
https://chromium.googlesource.com/chromium/src/+/88757c64b874d89657ba1e2a4c53120d17fc84ff

Toolbar: HomeButton without HomepageManager dependency

Made HomeButton work without dependency on chrome.browser.homepage
classes. All the deps are now deferred to ToolbarManager.
The dependencies are injected not through ctor but init method
introduced in this CL since the home button and the enclosing view
(ToolbarLayout) are instantiated from xml.

Menu handling logic was moved to HomepageManager to make it test-
friendly.

Also removed a bunch of dead code in HomeButton. Several public setters
(ActivityTabObserver, ThemeColorProvider, StartSurfaceSupplier) were
used by BrowsingModeBottomToolbarCoordinator only (see
    https://crrev.com/c/1981099). There's no callsite left any more as
the class was already gone.

Bug: 1127732
2020-12-08 15:25:59 -05:00
samartnik 5afc7b0c6b [Android] Toolbar: HomeButton without HomepageManager dependency
Chromium change:
https://chromium.googlesource.com/chromium/src/+/88757c64b874d89657ba1e2a4c53120d17fc84ff

Toolbar: HomeButton without HomepageManager dependency

Made HomeButton work without dependency on chrome.browser.homepage
classes. All the deps are now deferred to ToolbarManager.
The dependencies are injected not through ctor but init method
introduced in this CL since the home button and the enclosing view
(ToolbarLayout) are instantiated from xml.

Menu handling logic was moved to HomepageManager to make it test-
friendly.

Also removed a bunch of dead code in HomeButton. Several public setters
(ActivityTabObserver, ThemeColorProvider, StartSurfaceSupplier) were
used by BrowsingModeBottomToolbarCoordinator only (see
    https://crrev.com/c/1981099). There's no callsite left any more as
the class was already gone.

Bug: 1127732
2020-12-08 15:25:56 -05:00
samartnik e520d8dd3c [Android] Swipe gesture was removed for bottom toolbar
Chromium change:
https://chromium.googlesource.com/chromium/src/+/0c251a1554cbbb58867db4e90fe823490a2085d3

Toolbar: Delete unused code in bottom bar

Bottom toolbar does not to support swipe gesture. This CL deletes the
code that handled it in ScrollingBottomViewResourceFrameLayout.

Bug: 1127732
2020-12-08 15:25:01 -05:00
Deep d53fbf1b15 Update Rewards onboarding UI
Update Rewards onboarding behaviour

Update StartProcess in Rewards panel
2020-12-08 08:33:36 -05:00
Deep 2593366342 Add scrollbars 2020-12-08 04:08:35 -05:00
Deep 3fa83a275b Add AC UI on brave rewards onboarding
Update BRE panel behaviour
2020-12-01 04:35:41 -05:00
Deep Pandya c4c2fd4e7a Merge pull request #7255 from brave/fallback_ui_for_top_tiles_android
Add layout for fall back UI for top tiles
2020-11-25 23:59:36 -05:00
Deep acc67d70ca Add layout for fall back UI for top tiles 2020-11-25 20:48:20 -05:00