Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Issue 10985076: NativeThemeAndroid should inherit from NativeThemeBase (Closed)

Created:
8 years, 2 months ago by Peter Beverloo
Modified:
8 years, 2 months ago
Reviewers:
Xianzhu, sky, Rick Byers
CC:
chromium-reviews
Visibility:
Public.

Description

NativeThemeAndroid should inherit from NativeThemeBase NativeThemeAndroid currently re-implements every method defined in the NativeTheme class by duplicating the code, while it didn't actually modify behavior. By changing its base class to NativeThemeBase, which has most of the code we need, we only have to override GetSystemColor. Visually, this lines up Android's button appearance with Linux, as Android's code hadn't been updated for changing coming in to the general implementation. It also enables the new checkbox appearance all of Chrome will be switching too. Removing the old code is being tracked in Issue 133991. BUG=152912 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=159483

Patch Set 1 #

Patch Set 2 : Patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -878 lines) Patch
M ui/base/native_theme/native_theme_android.h View 1 1 chunk +3 lines, -153 lines 0 comments Download
M ui/base/native_theme/native_theme_android.cc View 3 chunks +0 lines, -725 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Beverloo
+Xianzhu for Android +Scott for ui/ OWNERS
8 years, 2 months ago (2012-09-28 11:15:35 UTC) #1
Rick Byers
Looks like a great clean-up to me. I didn't exhaustively verify that there's no other ...
8 years, 2 months ago (2012-09-28 13:09:30 UTC) #2
sky
I'm rubber stamping this and assuming Xianzhu will do a review.
8 years, 2 months ago (2012-09-28 15:51:10 UTC) #3
Xianzhu
LGTM. FYI we are likely to change the code to paint the web controls to ...
8 years, 2 months ago (2012-09-28 16:20:32 UTC) #4
Peter Beverloo
Thanks guys, that seems good to me. Putting this on the commit queue.
8 years, 2 months ago (2012-09-30 08:04:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/10985076/2001
8 years, 2 months ago (2012-09-30 08:04:18 UTC) #6
commit-bot: I haz the power
Presubmit check for 10985076-2001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-09-30 08:04:21 UTC) #7
sky
Forgot the rubber stamp: LGTM
8 years, 2 months ago (2012-09-30 23:59:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/10985076/2001
8 years, 2 months ago (2012-09-30 23:59:42 UTC) #9
commit-bot: I haz the power
8 years, 2 months ago (2012-10-01 00:03:23 UTC) #10
Retried try job too often for step(s) compile

Powered by Google App Engine
This is Rietveld 408576698