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

Issue 21296003: Split ScrollbarThemeMac into Overlay and NonOverlay subclasses (Closed)

Created:
7 years, 4 months ago by ccameron
Modified:
7 years, 4 months ago
Reviewers:
enne (OOO)
CC:
blink-reviews, eae+blinkwatch, dglazkov+blink, jeez
Base URL:
https://chromium.googlesource.com/chromium/blink.git@composited_scrollbar_after_refactor
Visibility:
Public.

Description

Split ScrollbarThemeMac into Overlay and NonOverlay subclasses This is the first of two steps. The second will move the new subclasses into their own files. Move the static variables to be scoped to the classes that access them (Common, Overlay, or NonOverlay). This separation is fairly simple, with the exception of gButtonPlacement which (less obviously) is always ScrollbarButtonsNone for Overlay (and as such can be made NonOverlay-only. Duplicate scrollbarMap to scrollbarPainterMap -- this served two functions before (1) enumerating all scrollbar clients so that their properties could be updated and (2) mapping overlay scrollbar clients to their ScrollbarPainter. Now use two separate structures for the two separate functions. BUG=133093 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155296

Patch Set 1 #

Patch Set 2 : Next #

Patch Set 3 : Clean up #

Total comments: 15

Patch Set 4 : Incorporate review feedbac #

Total comments: 8

Patch Set 5 : Incorporate review feedback #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -112 lines) Patch
M Source/core/platform/mac/ScrollAnimatorMac.mm View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M Source/core/platform/mac/ScrollbarThemeMac.h View 1 2 3 2 chunks +49 lines, -23 lines 0 comments Download
M Source/core/platform/mac/ScrollbarThemeMac.mm View 1 2 3 4 21 chunks +127 lines, -85 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ccameron
This is the first of two scrollbar-technical-debt changes. The goal with this one is to ...
7 years, 4 months ago (2013-07-31 02:10:25 UTC) #1
enne (OOO)
https://codereview.chromium.org/21296003/diff/5001/Source/core/platform/mac/ScrollAnimatorMac.mm File Source/core/platform/mac/ScrollAnimatorMac.mm (right): https://codereview.chromium.org/21296003/diff/5001/Source/core/platform/mac/ScrollAnimatorMac.mm#newcode69 Source/core/platform/mac/ScrollAnimatorMac.mm:69: return !scrollbarTheme->isMockTheme() ? static_cast<ScrollbarThemeMacOverlay*>(scrollbarTheme) : 0; So, I *think* ...
7 years, 4 months ago (2013-07-31 18:23:58 UTC) #2
ccameron
Thanks!! https://codereview.chromium.org/21296003/diff/5001/Source/core/platform/mac/ScrollAnimatorMac.mm File Source/core/platform/mac/ScrollAnimatorMac.mm (right): https://codereview.chromium.org/21296003/diff/5001/Source/core/platform/mac/ScrollAnimatorMac.mm#newcode69 Source/core/platform/mac/ScrollAnimatorMac.mm:69: return !scrollbarTheme->isMockTheme() ? static_cast<ScrollbarThemeMacOverlay*>(scrollbarTheme) : 0; On 2013/07/31 ...
7 years, 4 months ago (2013-07-31 20:26:57 UTC) #3
enne (OOO)
The new names seem reasonable to me. I can't think of any better way to ...
7 years, 4 months ago (2013-07-31 20:55:34 UTC) #4
ccameron
Thanks!! https://codereview.chromium.org/21296003/diff/11001/Source/core/platform/mac/ScrollAnimatorMac.mm File Source/core/platform/mac/ScrollAnimatorMac.mm (right): https://codereview.chromium.org/21296003/diff/11001/Source/core/platform/mac/ScrollAnimatorMac.mm#newcode68 Source/core/platform/mac/ScrollAnimatorMac.mm:68: ASSERT(isScrollbarOverlayAPIAvailable()); On 2013/07/31 20:55:34, enne wrote: > On ...
7 years, 4 months ago (2013-07-31 21:43:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/21296003/22001
7 years, 4 months ago (2013-08-01 00:21:04 UTC) #6
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 03:53:51 UTC) #7
Message was sent while issue was closed.
Change committed as 155296

Powered by Google App Engine
This is Rietveld 408576698