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

Issue 2763373002: Overlay scrollbars flush with window edge (Closed)

Created:
3 years, 9 months ago by chaopeng
Modified:
3 years, 8 months ago
Reviewers:
bokan, jbroman, Evan Stade
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Overlay scrollbars flush with window edge In this patch, remove right stroke for vertical scrollbar, remove bottom stroke for horizontal scrollbar and flip the scrollbar canvas to remove left stroke for left vertical scrollbar. BUG=669673 Review-Url: https://codereview.chromium.org/2763373002 Cr-Commit-Position: refs/heads/master@{#460565} Committed: https://chromium.googlesource.com/chromium/src/+/609da81d151f9eb3bcc94852f10e4ebb649a5bed

Patch Set 1 #

Total comments: 3

Patch Set 2 : only flush 1 side #

Total comments: 2

Patch Set 3 : bokan comments addressed #

Total comments: 1

Patch Set 4 : bokan comment addressed #

Total comments: 5

Patch Set 5 : Evan comment addressed #

Patch Set 6 : flip canvas for left scrollbar #

Total comments: 2

Patch Set 7 : evan and bokan comments addressed #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -1 line) Patch
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 1 comment Download
M ui/native_theme/native_theme_aura.cc View 1 2 3 4 5 6 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 34 (14 generated)
chaopeng
PTAL. Thank you.
3 years, 9 months ago (2017-03-22 16:08:58 UTC) #3
bokan
https://codereview.chromium.org/2763373002/diff/20001/ui/native_theme/native_theme.h File ui/native_theme/native_theme.h (right): https://codereview.chromium.org/2763373002/diff/20001/ui/native_theme/native_theme.h#newcode205 ui/native_theme/native_theme.h:205: bool isVerticalScrollbar; You shouldn't need to pass this param ...
3 years, 9 months ago (2017-03-22 20:07:26 UTC) #4
bokan
On 2017/03/22 20:07:26, bokan wrote: > https://codereview.chromium.org/2763373002/diff/20001/ui/native_theme/native_theme.h > File ui/native_theme/native_theme.h (right): > > https://codereview.chromium.org/2763373002/diff/20001/ui/native_theme/native_theme.h#newcode205 > ...
3 years, 9 months ago (2017-03-23 15:57:26 UTC) #5
chaopeng
Updated, PTAL. Thank you.
3 years, 9 months ago (2017-03-23 19:42:53 UTC) #7
bokan
https://codereview.chromium.org/2763373002/diff/40001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2763373002/diff/40001/ui/native_theme/native_theme_aura.cc#newcode252 ui/native_theme/native_theme_aura.cc:252: // Flush the stroke when it close to border. ...
3 years, 9 months ago (2017-03-23 21:34:41 UTC) #8
chaopeng
Updated, PTAL. Thank you.
3 years, 9 months ago (2017-03-24 15:32:33 UTC) #9
bokan
lgtm % comment issue +estade@ for OWNER. Evan, do we do pixel tests to test ...
3 years, 9 months ago (2017-03-24 18:06:12 UTC) #11
Evan Stade
No, we don't have pixel tests. https://codereview.chromium.org/2763373002/diff/80001/chrome/browser/ui/libgtkui/native_theme_gtk3.cc File chrome/browser/ui/libgtkui/native_theme_gtk3.cc (right): https://codereview.chromium.org/2763373002/diff/80001/chrome/browser/ui/libgtkui/native_theme_gtk3.cc#newcode483 chrome/browser/ui/libgtkui/native_theme_gtk3.cc:483: const NativeTheme::ScrollbarThumbExtraParams&) const ...
3 years, 9 months ago (2017-03-28 00:01:56 UTC) #12
chaopeng
Updated. PTAL. Thank you. https://codereview.chromium.org/2763373002/diff/80001/ui/native_theme/native_theme.h File ui/native_theme/native_theme.h (right): https://codereview.chromium.org/2763373002/diff/80001/ui/native_theme/native_theme.h#newcode205 ui/native_theme/native_theme.h:205: bool isLeftVerticalScrollbar; On 2017/03/28 00:01:56, ...
3 years, 9 months ago (2017-03-28 02:58:40 UTC) #13
Evan Stade
https://codereview.chromium.org/2763373002/diff/80001/ui/native_theme/native_theme.h File ui/native_theme/native_theme.h (right): https://codereview.chromium.org/2763373002/diff/80001/ui/native_theme/native_theme.h#newcode205 ui/native_theme/native_theme.h:205: bool isLeftVerticalScrollbar; On 2017/03/28 02:58:40, chaopeng wrote: > On ...
3 years, 9 months ago (2017-03-28 03:14:36 UTC) #16
chaopeng
Change to flip canvas to remove left border for left scrollbar. PTAL. Thank you.
3 years, 8 months ago (2017-03-28 19:31:34 UTC) #20
Evan Stade
nice, lgtm. @bokan, wdyt? https://codereview.chromium.org/2763373002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp File third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp (right): https://codereview.chromium.org/2763373002/diff/120001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp#newcode208 third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp:208: // Filp the canvas if ...
3 years, 8 months ago (2017-03-29 18:05:42 UTC) #21
bokan
Much cleaner, thanks. lgtm % same nit in other file https://codereview.chromium.org/2763373002/diff/120001/ui/native_theme/native_theme_aura.cc File ui/native_theme/native_theme_aura.cc (right): https://codereview.chromium.org/2763373002/diff/120001/ui/native_theme/native_theme_aura.cc#newcode256 ...
3 years, 8 months ago (2017-03-29 18:41:48 UTC) #22
chaopeng
jbroman@chromium.org: Please review changes in blink/platform Thank you.
3 years, 8 months ago (2017-03-29 20:43:22 UTC) #24
jbroman
rs lgtm https://codereview.chromium.org/2763373002/diff/140001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp File third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp (right): https://codereview.chromium.org/2763373002/diff/140001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp#newcode208 third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp:208: // Horizontally flip the canvas if it ...
3 years, 8 months ago (2017-03-29 20:51:35 UTC) #25
chaopeng
On 2017/03/29 20:51:35, jbroman wrote: > rs lgtm > > https://codereview.chromium.org/2763373002/diff/140001/third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp > File third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp > ...
3 years, 8 months ago (2017-03-29 20:58:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2763373002/140001
3 years, 8 months ago (2017-03-29 21:00:03 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:140001) as https://chromium.googlesource.com/chromium/src/+/609da81d151f9eb3bcc94852f10e4ebb649a5bed
3 years, 8 months ago (2017-03-29 23:02:06 UTC) #32
bokan
On 2017/03/29 20:58:16, chaopeng wrote: > On 2017/03/29 20:51:35, jbroman wrote: > > rs lgtm ...
3 years, 8 months ago (2017-03-30 11:57:19 UTC) #33
Evan Stade
3 years, 8 months ago (2017-03-31 00:15:36 UTC) #34
Message was sent while issue was closed.
On 2017/03/30 11:57:19, bokan wrote:
> On 2017/03/29 20:58:16, chaopeng wrote:
> > On 2017/03/29 20:51:35, jbroman wrote:
> > > rs lgtm
> > > 
> > >
> >
>
https://codereview.chromium.org/2763373002/diff/140001/third_party/WebKit/Sou...
> > > File third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp
> > > (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/2763373002/diff/140001/third_party/WebKit/Sou...
> > > third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlay.cpp:208:
//
> > > Horizontally flip the canvas if it is left vertical scrollbar.
> > > Is the scrollbar guaranteed to be horizontally symmetrical? Not everything
> > > should be visually flipped for RTL. (e.g. if we drew shadows, they would
> seem
> > to
> > > look wrong with this flip)
> > 
> > The GraphicsContext context is from scrollbar layer. eg
> >
>
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/layout/co...
> 
> I think Jeremy's point was more that this wouldn't work if we one day decided
we
> wanted a shadow on the scrollbar. While that's a valid point, scrollbars
already
> have plenty of symmetry assumptions baked in - e.g. Aura scroll buttons do
> exactly this. IMO, it's unlikely we'd make scrollbars asymmetric so keeping
the
> theme API simple feels like a better choice to me.

you mean an asymmetric shadow on the scrollbar? Wouldn't a symmetric shadow work
alright? All the shadows I know of in our UI are horizontally symmetric if not
vertically.

Powered by Google App Engine
This is Rietveld 408576698