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

Issue 736613002: Makes Separator more configurable. (Closed)

Created:
6 years, 1 month ago by melandory
Modified:
6 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Makes Separator more configurable. Height and color of Separator now can be specified during creation R=sky@chromium.org BUG=434395 Committed: https://crrev.com/e488e57d01b79c4fa937a1ba1e26f00b32427e97 Cr-Commit-Position: refs/heads/master@{#304924}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Setters for color/size instead of specifying in constructor #

Patch Set 3 : Removed empty line between ctor and dtor #

Total comments: 5

Patch Set 4 : Schedule paint on SetColor and notify that preferred size has changed on size change #

Patch Set 5 : Add missing space before { #

Patch Set 6 : Use new SetSize to set separator size #

Patch Set 7 : Width from layout #

Total comments: 1

Patch Set 8 : :%s/SetSize/SettPreferredSize #

Patch Set 9 : Comment to Separator::SetPreferredSize #

Patch Set 10 : fix typos #

Patch Set 11 : SetPrefferedize and then SetSize of separator #

Total comments: 2

Patch Set 12 : REmoves changes from try_chrome_dialog_view.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -6 lines) Patch
M ui/views/controls/separator.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M ui/views/controls/separator.cc View 1 2 3 4 5 6 7 2 chunks +21 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (7 generated)
melandory
6 years, 1 month ago (2014-11-18 06:57:38 UTC) #1
tfarina
Why do you need this flexibility? Is there a crbug.com/ track this? Is it going ...
6 years, 1 month ago (2014-11-18 15:44:04 UTC) #2
melandory
On 2014/11/18 15:44:04, tfarina wrote: > Why do you need this flexibility? Is there a ...
6 years, 1 month ago (2014-11-18 15:49:28 UTC) #3
sky
If you make the BUG= section point to a bug describing why you need this ...
6 years, 1 month ago (2014-11-18 17:42:02 UTC) #4
sky
https://codereview.chromium.org/736613002/diff/1/ui/views/controls/separator.h File ui/views/controls/separator.h (right): https://codereview.chromium.org/736613002/diff/1/ui/views/controls/separator.h#newcode28 ui/views/controls/separator.h:28: Separator(Orientation orientation, SkColor color); We generally don't have constructors ...
6 years, 1 month ago (2014-11-18 18:04:06 UTC) #5
melandory
https://codereview.chromium.org/736613002/diff/1/ui/views/controls/separator.h File ui/views/controls/separator.h (right): https://codereview.chromium.org/736613002/diff/1/ui/views/controls/separator.h#newcode28 ui/views/controls/separator.h:28: Separator(Orientation orientation, SkColor color); On 2014/11/18 18:04:06, sky wrote: ...
6 years, 1 month ago (2014-11-18 19:12:48 UTC) #6
sky
https://codereview.chromium.org/736613002/diff/40001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/736613002/diff/40001/ui/views/controls/separator.cc#newcode32 ui/views/controls/separator.cc:32: color_ = color; SchedulePaint. https://codereview.chromium.org/736613002/diff/40001/ui/views/controls/separator.cc#newcode36 ui/views/controls/separator.cc:36: size_ = size; ...
6 years, 1 month ago (2014-11-18 20:05:33 UTC) #7
melandory
https://codereview.chromium.org/736613002/diff/40001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/736613002/diff/40001/ui/views/controls/separator.cc#newcode32 ui/views/controls/separator.cc:32: color_ = color; On 2014/11/18 20:05:33, sky wrote: > ...
6 years, 1 month ago (2014-11-18 20:22:40 UTC) #8
sky
LGTM https://codereview.chromium.org/736613002/diff/40001/ui/views/controls/separator.cc File ui/views/controls/separator.cc (right): https://codereview.chromium.org/736613002/diff/40001/ui/views/controls/separator.cc#newcode36 ui/views/controls/separator.cc:36: size_ = size; On 2014/11/18 20:22:40, melandory wrote: ...
6 years, 1 month ago (2014-11-18 22:05:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/736613002/80001
6 years, 1 month ago (2014-11-19 06:03:30 UTC) #15
melandory
On 2014/11/18 22:05:26, sky wrote: > LGTM Can you look one more time, I've added ...
6 years, 1 month ago (2014-11-19 07:39:41 UTC) #17
sky
https://codereview.chromium.org/736613002/diff/120001/chrome/browser/first_run/try_chrome_dialog_view.cc File chrome/browser/first_run/try_chrome_dialog_view.cc (right): https://codereview.chromium.org/736613002/diff/120001/chrome/browser/first_run/try_chrome_dialog_view.cc#newcode272 chrome/browser/first_run/try_chrome_dialog_view.cc:272: separator->SetSize(preferred.width()); Separator::SetSize is much different than View::SetSize, which makes ...
6 years, 1 month ago (2014-11-19 16:10:17 UTC) #18
melandory
On 2014/11/19 16:10:17, sky wrote: > https://codereview.chromium.org/736613002/diff/120001/chrome/browser/first_run/try_chrome_dialog_view.cc > File chrome/browser/first_run/try_chrome_dialog_view.cc (right): > > https://codereview.chromium.org/736613002/diff/120001/chrome/browser/first_run/try_chrome_dialog_view.cc#newcode272 > ...
6 years, 1 month ago (2014-11-19 20:01:15 UTC) #19
melandory
On 2014/11/19 16:10:17, sky wrote: > https://codereview.chromium.org/736613002/diff/120001/chrome/browser/first_run/try_chrome_dialog_view.cc > File chrome/browser/first_run/try_chrome_dialog_view.cc (right): > > https://codereview.chromium.org/736613002/diff/120001/chrome/browser/first_run/try_chrome_dialog_view.cc#newcode272 > ...
6 years, 1 month ago (2014-11-19 20:01:16 UTC) #20
sky
LGTM https://codereview.chromium.org/736613002/diff/200001/ui/views/controls/separator.h File ui/views/controls/separator.h (right): https://codereview.chromium.org/736613002/diff/200001/ui/views/controls/separator.h#newcode34 ui/views/controls/separator.h:34: // Preferred size of one axis: height for ...
6 years, 1 month ago (2014-11-19 20:29:02 UTC) #21
sky
Sorry, NO LGTM. No need to change first_run. https://codereview.chromium.org/736613002/diff/200001/chrome/browser/first_run/try_chrome_dialog_view.cc File chrome/browser/first_run/try_chrome_dialog_view.cc (left): https://codereview.chromium.org/736613002/diff/200001/chrome/browser/first_run/try_chrome_dialog_view.cc#oldcode273 chrome/browser/first_run/try_chrome_dialog_view.cc:273: separator->SetSize(gfx::Size(preferred.width(), ...
6 years, 1 month ago (2014-11-19 20:30:19 UTC) #22
sky
or not lgtm
6 years, 1 month ago (2014-11-19 20:30:26 UTC) #23
melandory
On 2014/11/19 20:30:19, sky wrote: > Sorry, NO LGTM. No need to change first_run. > ...
6 years, 1 month ago (2014-11-19 21:06:41 UTC) #24
melandory
On 2014/11/19 20:30:19, sky wrote: > Sorry, NO LGTM. No need to change first_run. > ...
6 years, 1 month ago (2014-11-19 21:06:43 UTC) #25
sky
LGTM
6 years, 1 month ago (2014-11-19 22:52:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/736613002/220001
6 years, 1 month ago (2014-11-19 22:55:13 UTC) #28
commit-bot: I haz the power
Committed patchset #12 (id:220001)
6 years, 1 month ago (2014-11-19 23:41:16 UTC) #29
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 23:43:03 UTC) #30
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/e488e57d01b79c4fa937a1ba1e26f00b32427e97
Cr-Commit-Position: refs/heads/master@{#304924}

Powered by Google App Engine
This is Rietveld 408576698