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

Issue 2480063002: Split NativeThemeAura into Overlay and NonOverlay versions. (Closed)

Created:
4 years, 1 month ago by bokan
Modified:
4 years, 1 month ago
Reviewers:
Evan Stade
CC:
chromium-reviews, tfarina, jam, dglazkov+blink, darin-cc_chromium.org, mac-reviews_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split NativeThemeAura into Overlay and NonOverlay versions. This patch moves the overlay scrollbar functionality from NativeThemeAura out into NativeThemeAuraOverlay. This allows Views code to continue using non-overlay scrollbars while web content uses overlays. I've also replaced the check for overlays from ui::IsOverlayScrollbarEnabled to a bool passed in by the caller. IsOverlayScrollbarEnabled is statically determined and is meant to indicate behavior in stable for end-users. Based on its value, Chrome sets the Blink overlay scrollbar RuntimeEnabledFeature. However, tests mostly run with this REF disabled so we need some way to determine which NativeTheme to use at runtime. Otherwise, these tests will run with Blink thinking it's using non-overlay scrollbars but when Blink asks NativeTheme to do some painting, NativeTheme thinks it's using the overlay theme. Now Blink passes the value of the REF so that we always choose the correct NativeTheme. BUG=307091

Patch Set 1 #

Patch Set 2 : Forgot to add new files #

Patch Set 3 : Fix site per process test #

Patch Set 4 : Fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -133 lines) Patch
M content/child/webthemeengine_impl_android.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/webthemeengine_impl_default.cc View 4 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 2 chunks +8 lines, -4 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 2 chunks +3 lines, -1 line 0 comments Download
M ui/native_theme/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_aura.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/native_theme/native_theme_aura.cc View 7 chunks +14 lines, -92 lines 0 comments Download
A + ui/native_theme/native_theme_aura_overlay.h View 1 2 2 chunks +13 lines, -25 lines 0 comments Download
A ui/native_theme/native_theme_aura_overlay.cc View 1 2 1 chunk +148 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view.cc View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (12 generated)
bokan
4 years, 1 month ago (2016-11-06 20:06:16 UTC) #13
Evan Stade
Sorry that we clashed on this. My version is here[1]. I don't think there's a ...
4 years, 1 month ago (2016-11-06 23:05:30 UTC) #14
bokan
On 2016/11/06 23:05:30, Evan Stade wrote: > Sorry that we clashed on this. My version ...
4 years, 1 month ago (2016-11-06 23:38:56 UTC) #15
Evan Stade
4 years, 1 month ago (2016-11-09 00:44:53 UTC) #16
On 2016/11/06 23:38:56, bokan wrote:
> On 2016/11/06 23:05:30, Evan Stade wrote:
> > Sorry that we clashed on this. My version is here[1]. I don't think there's
a
> > lot that separates them but the other one has the advantage of requiring
fewer
> > changes and fixing an additional TODO (plus getting us closer to making
native
> > theme instantiation a good deal simpler/easier to understand[2]. What do you
> > think?
> > 
> > [1] https://codereview.chromium.org/2480993002/
> > [2] https://codereview.chromium.org/2483683002/
> 
> Ok, sgtm to land your version. Could you add the change from this patch where
we
> choose whether to use overlays based on the RuntimeEnabledFeature? Otherwise
> Blink and NativeTheme are in disagreement in tests that have overlays off.

this is not waiting for review and can be closed, right?

Powered by Google App Engine
This is Rietveld 408576698