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

Issue 462373002: Allow the native theme to paint the corner between scrollbars (Closed)

Created:
6 years, 4 months ago by Andre
Modified:
6 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, mac-views-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

For the Mac port of views, we need to draw the corner part to connect the vertical and horizontal tracks together. Update ScrollView to allow the native theme to paint the corner square when both horizontal and vertical scrollbars are showing. This is done by installing a view at the corner and have it call NativeTheme::Paint(..). BUG=401346 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289483

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes for sky #

Total comments: 2

Patch Set 3 : Make the test a friend #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -22 lines) Patch
M ui/native_theme/native_theme_base.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/views/controls/scroll_view.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M ui/views/controls/scroll_view.cc View 1 7 chunks +28 lines, -14 lines 0 comments Download
M ui/views/controls/scroll_view_unittest.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Andre
sky@ PTAL. For MacViews I need to paint the corner square to emulate the native ...
6 years, 4 months ago (2014-08-12 23:55:05 UTC) #1
Andre
I wanted to test this in ScrollViewTest, but corner_view_ feels like an implementation detail that ...
6 years, 4 months ago (2014-08-13 00:10:18 UTC) #2
sky
How about setting an id on the corner_view_ that you can use to get at ...
6 years, 4 months ago (2014-08-13 03:33:11 UTC) #3
sky
6 years, 4 months ago (2014-08-13 03:33:14 UTC) #4
Andre
Thanks Scott. For the test, I decided to look for the corner view based on ...
6 years, 4 months ago (2014-08-13 17:53:36 UTC) #5
sky
https://codereview.chromium.org/462373002/diff/40001/ui/views/controls/scroll_view_unittest.cc File ui/views/controls/scroll_view_unittest.cc (right): https://codereview.chromium.org/462373002/diff/40001/ui/views/controls/scroll_view_unittest.cc#newcode354 ui/views/controls/scroll_view_unittest.cc:354: View* corner_view = NULL; Ick! I would prefer you ...
6 years, 4 months ago (2014-08-13 19:51:10 UTC) #6
Andre
https://codereview.chromium.org/462373002/diff/40001/ui/views/controls/scroll_view_unittest.cc File ui/views/controls/scroll_view_unittest.cc (right): https://codereview.chromium.org/462373002/diff/40001/ui/views/controls/scroll_view_unittest.cc#newcode354 ui/views/controls/scroll_view_unittest.cc:354: View* corner_view = NULL; On 2014/08/13 19:51:10, sky wrote: ...
6 years, 4 months ago (2014-08-13 22:12:39 UTC) #7
sky
LGTM
6 years, 4 months ago (2014-08-13 22:48:36 UTC) #8
Andre
The CQ bit was checked by andresantoso@chromium.org
6 years, 4 months ago (2014-08-13 22:49:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andresantoso@chromium.org/462373002/60001
6 years, 4 months ago (2014-08-13 22:54:10 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 07:56:08 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (60001) as 289483

Powered by Google App Engine
This is Rietveld 408576698