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

Issue 1971333002: Views: factor out Combobox background and const-ify style (Closed)

Created:
4 years, 7 months ago by Elly Fong-Jones
Modified:
4 years, 7 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Views: factor out Combobox background and const-ify style This change: * Factors background sizing out of Combobox * Makes ComboboxBackgroundMac reusable for other controls * Removes the ability to change the style of comboboxes dynamically * Introduces caching of arrow images for comboboxes BUG=605161 Committed: https://crrev.com/9412ffff054dd142ec06804e1e1303d3f6f064cf Cr-Commit-Position: refs/heads/master@{#394250}

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix position of action arrows #

Total comments: 4

Patch Set 3 : Redo PositionArrowWithinShoulder #

Total comments: 10

Patch Set 4 : shoulder -> arrow container #

Patch Set 5 : fix ios build break #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -139 lines) Patch
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ui/gfx/gfx.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/scoped_canvas.h View 2 chunks +18 lines, -1 line 0 comments Download
A ui/gfx/scoped_canvas.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download
M ui/views/controls/combobox/combobox.h View 1 2 3 6 chunks +9 lines, -8 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 2 3 14 chunks +49 lines, -72 lines 0 comments Download
M ui/views/controls/combobox/combobox_unittest.cc View 28 chunks +73 lines, -41 lines 0 comments Download
M ui/views/examples/combobox_example.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/examples/examples.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/style/mac/combobox_background_mac.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M ui/views/style/mac/combobox_background_mac.cc View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M ui/views/style/platform_style.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/style/platform_style.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/style/platform_style_mac.mm View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
Elly Fong-Jones
tapted: ptal? This is the Combobox part of https://codereview.chromium.org/1904753002/
4 years, 7 months ago (2016-05-12 20:36:42 UTC) #3
tapted
looks good - we just need to check that alignment. I'm pretty sure we will ...
4 years, 7 months ago (2016-05-13 07:51:02 UTC) #4
Elly Fong-Jones
tapted: ptal? https://codereview.chromium.org/1971333002/diff/1/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (left): https://codereview.chromium.org/1971333002/diff/1/ui/views/controls/combobox/combobox.cc#oldcode61 ui/views/controls/combobox/combobox.cc:61: const int kDisclosureArrowButtonRightPadding = 12; On 2016/05/13 ...
4 years, 7 months ago (2016-05-16 21:45:44 UTC) #5
tapted
https://codereview.chromium.org/1971333002/diff/20001/ui/gfx/gfx.gyp File ui/gfx/gfx.gyp (right): https://codereview.chromium.org/1971333002/diff/20001/ui/gfx/gfx.gyp#newcode281 ui/gfx/gfx.gyp:281: 'scoped_canvas.cc', looks like this is needed in ui/gfx/BUILD.gn as ...
4 years, 7 months ago (2016-05-17 08:10:39 UTC) #6
Elly Fong-Jones
tapted, sky: ptal? :) https://codereview.chromium.org/1971333002/diff/20001/ui/gfx/gfx.gyp File ui/gfx/gfx.gyp (right): https://codereview.chromium.org/1971333002/diff/20001/ui/gfx/gfx.gyp#newcode281 ui/gfx/gfx.gyp:281: 'scoped_canvas.cc', On 2016/05/17 08:10:39, tapted ...
4 years, 7 months ago (2016-05-17 14:00:55 UTC) #8
sky
https://codereview.chromium.org/1971333002/diff/40001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/1971333002/diff/40001/ui/views/controls/combobox/combobox.cc#newcode90 ui/views/controls/combobox/combobox.cc:90: gfx::Rect PositionArrowWithinShoulder(const gfx::Rect& shoulder_bounds, similar comment about naming. https://codereview.chromium.org/1971333002/diff/40001/ui/views/controls/combobox/combobox.cc#newcode370 ...
4 years, 7 months ago (2016-05-17 16:49:22 UTC) #9
Elly Fong-Jones
sky: ptal? :) https://codereview.chromium.org/1971333002/diff/40001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/1971333002/diff/40001/ui/views/controls/combobox/combobox.cc#newcode90 ui/views/controls/combobox/combobox.cc:90: gfx::Rect PositionArrowWithinShoulder(const gfx::Rect& shoulder_bounds, On 2016/05/17 ...
4 years, 7 months ago (2016-05-17 17:35:05 UTC) #10
sky
LGTM
4 years, 7 months ago (2016-05-17 19:21:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971333002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971333002/60001
4 years, 7 months ago (2016-05-17 19:38:55 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/7044)
4 years, 7 months ago (2016-05-17 19:51:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971333002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971333002/80001
4 years, 7 months ago (2016-05-17 20:33:06 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-17 22:41:21 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 22:44:02 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9412ffff054dd142ec06804e1e1303d3f6f064cf
Cr-Commit-Position: refs/heads/master@{#394250}

Powered by Google App Engine
This is Rietveld 408576698