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

Issue 62873007: [Toolbar] Base toolbar button class with background images for button states (Closed)

Created:
7 years, 1 month ago by Greg Billock
Modified:
7 years ago
CC:
chromium-reviews, tfarina, oshima+watch_chromium.org
Visibility:
Public.

Description

[Toolbar] Base toolbar button class with background images for button states R=pkasting@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238218

Patch Set 1 #

Patch Set 2 : Graphics from UI. #

Total comments: 16

Patch Set 3 : Switch over back and forward buttons #

Patch Set 4 : Rebase to 74483002 #

Patch Set 5 : Fix rebase #

Patch Set 6 : Add home button #

Total comments: 62

Patch Set 7 : Rebase #

Patch Set 8 : . #

Patch Set 9 : Account for maximized state. #

Total comments: 20

Patch Set 10 : tweaks #

Total comments: 4

Patch Set 11 : . #

Patch Set 12 : Unit test update #

Patch Set 13 : Add back button subclass #

Total comments: 14

Patch Set 14 : . #

Patch Set 15 : Rebase #

Total comments: 4

Patch Set 16 : Remove 'overridden' #

Patch Set 17 : overriding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -647 lines) Patch
A chrome/browser/ui/views/toolbar/back_button.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/toolbar/back_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +45 lines, -0 lines 0 comments Download
D chrome/browser/ui/views/toolbar/button_dropdown.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -92 lines 0 comments Download
D chrome/browser/ui/views/toolbar/button_dropdown.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -233 lines 0 comments Download
D chrome/browser/ui/views/toolbar/button_dropdown_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -131 lines 0 comments Download
M chrome/browser/ui/views/toolbar/home_button.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar/home_button.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/toolbar/reload_button.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/toolbar/reload_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +15 lines, -27 lines 0 comments Download
A + chrome/browser/ui/views/toolbar/toolbar_button.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +24 lines, -30 lines 0 comments Download
A + chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +57 lines, -50 lines 0 comments Download
A + chrome/browser/ui/views/toolbar/toolbar_button_test.cc View 1 2 3 4 5 6 7 8 9 7 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +21 lines, -31 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +8 lines, -5 lines 0 comments Download
M ui/views/controls/button/label_button_border.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
Greg Billock
7 years, 1 month ago (2013-11-14 21:49:02 UTC) #1
Greg Billock
On 2013/11/14 21:49:02, Greg Billock wrote: Here's the sense of what a toolbar button base ...
7 years, 1 month ago (2013-11-14 21:52:52 UTC) #2
Peter Kasting
https://codereview.chromium.org/62873007/diff/240001/chrome/browser/ui/views/toolbar/reload_button.cc File chrome/browser/ui/views/toolbar/reload_button.cc (right): https://codereview.chromium.org/62873007/diff/240001/chrome/browser/ui/views/toolbar/reload_button.cc#newcode64 chrome/browser/ui/views/toolbar/reload_button.cc:64: Nit: Extra semicolon and newline https://codereview.chromium.org/62873007/diff/240001/chrome/browser/ui/views/toolbar/reload_button.cc#newcode258 chrome/browser/ui/views/toolbar/reload_button.cc:258: std::swap(images_[i], alternate_images_[i]); ...
7 years, 1 month ago (2013-11-15 03:28:57 UTC) #3
Greg Billock
This is looking pretty ok to me now. B/F/R buttons look good. Reload is definitely ...
7 years, 1 month ago (2013-11-15 19:36:50 UTC) #4
Peter Kasting
https://codereview.chromium.org/62873007/diff/240001/chrome/browser/ui/views/toolbar/site_chip_view.h File chrome/browser/ui/views/toolbar/site_chip_view.h (right): https://codereview.chromium.org/62873007/diff/240001/chrome/browser/ui/views/toolbar/site_chip_view.h#newcode26 chrome/browser/ui/views/toolbar/site_chip_view.h:26: class SiteChipView : public ToolbarButton { On 2013/11/15 19:36:50, ...
7 years, 1 month ago (2013-11-15 22:11:55 UTC) #5
Greg Billock
https://codereview.chromium.org/62873007/diff/240001/chrome/browser/ui/views/toolbar/site_chip_view.h File chrome/browser/ui/views/toolbar/site_chip_view.h (right): https://codereview.chromium.org/62873007/diff/240001/chrome/browser/ui/views/toolbar/site_chip_view.h#newcode26 chrome/browser/ui/views/toolbar/site_chip_view.h:26: class SiteChipView : public ToolbarButton { On 2013/11/15 22:11:56, ...
7 years, 1 month ago (2013-11-19 00:07:58 UTC) #6
Peter Kasting
https://codereview.chromium.org/62873007/diff/1470001/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/62873007/diff/1470001/chrome/app/theme/theme_resources.grd#newcode858 chrome/app/theme/theme_resources.grd:858: <structure type="chrome_scaled_image" name="IDR_RELOAD" file="common/browser_reload_normal.png" /> Are these old resources ...
7 years, 1 month ago (2013-11-19 02:28:50 UTC) #7
Greg Billock
On 2013/11/19 02:28:50, Peter Kasting wrote: > https://codereview.chromium.org/62873007/diff/1470001/chrome/app/theme/theme_resources.grd > File chrome/app/theme/theme_resources.grd (right): > > https://codereview.chromium.org/62873007/diff/1470001/chrome/app/theme/theme_resources.grd#newcode858 ...
7 years, 1 month ago (2013-11-19 20:16:12 UTC) #8
Greg Billock
https://codereview.chromium.org/62873007/diff/1470001/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/62873007/diff/1470001/chrome/app/theme/theme_resources.grd#newcode923 chrome/app/theme/theme_resources.grd:923: <structure type="chrome_scaled_image" name="IDR_STOP_INNER_D" file="common/browser_stop_inner_disabled.png" /> On 2013/11/19 02:28:50, Peter ...
7 years, 1 month ago (2013-11-20 00:59:03 UTC) #9
Peter Kasting
https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode23 chrome/browser/ui/views/toolbar/toolbar_button.cc:23: // TODO(gbillock): replace with virtual method. On 2013/11/20 00:59:03, ...
7 years, 1 month ago (2013-11-20 01:10:20 UTC) #10
Greg Billock
(Tackling other points tomorrow.) https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (left): https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_view.cc#oldcode172 chrome/browser/ui/views/toolbar/toolbar_view.cc:172: views::ImageButton::ALIGN_TOP); On 2013/11/20 01:10:20, Peter ...
7 years, 1 month ago (2013-11-20 01:30:45 UTC) #11
Peter Kasting
https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (left): https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_view.cc#oldcode172 chrome/browser/ui/views/toolbar/toolbar_view.cc:172: views::ImageButton::ALIGN_TOP); On 2013/11/20 01:30:46, Greg Billock wrote: > On ...
7 years, 1 month ago (2013-11-20 01:42:19 UTC) #12
Greg Billock
https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_button.cc File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode23 chrome/browser/ui/views/toolbar/toolbar_button.cc:23: // TODO(gbillock): replace with virtual method. On 2013/11/20 01:10:20, ...
7 years, 1 month ago (2013-11-20 23:13:22 UTC) #13
Greg Billock
On 2013/11/20 23:13:22, Greg Billock wrote: > https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_button.cc > File chrome/browser/ui/views/toolbar/toolbar_button.cc (right): > > https://codereview.chromium.org/62873007/diff/1470001/chrome/browser/ui/views/toolbar/toolbar_button.cc#newcode23 ...
7 years, 1 month ago (2013-11-21 23:37:15 UTC) #14
Greg Billock
Want to have another look?
7 years, 1 month ago (2013-11-22 22:14:08 UTC) #15
Peter Kasting
https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/reload_button.cc File chrome/browser/ui/views/toolbar/reload_button.cc (right): https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/reload_button.cc#newcode237 chrome/browser/ui/views/toolbar/reload_button.cc:237: Nit: Blank line here not necessary https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/reload_button.h File chrome/browser/ui/views/toolbar/reload_button.h ...
7 years, 1 month ago (2013-11-23 00:23:54 UTC) #16
Greg Billock
OK, I've checked this out on Windows. Looks good. Fullscreen back button behavior is right. ...
7 years ago (2013-11-25 15:59:51 UTC) #17
Greg Billock
https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/reload_button.cc File chrome/browser/ui/views/toolbar/reload_button.cc (right): https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/reload_button.cc#newcode237 chrome/browser/ui/views/toolbar/reload_button.cc:237: On 2013/11/23 00:23:55, Peter Kasting wrote: > Nit: Blank ...
7 years ago (2013-11-25 17:16:30 UTC) #18
Greg Billock
On 2013/11/25 17:16:30, Greg Billock wrote: > https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/reload_button.cc > File chrome/browser/ui/views/toolbar/reload_button.cc (right): > > https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/reload_button.cc#newcode237 ...
7 years ago (2013-11-25 22:41:45 UTC) #19
Peter Kasting
Really the only major remaining thing is the whole left margin bit. LGTM if you ...
7 years ago (2013-11-26 02:25:46 UTC) #20
Greg Billock
+sky for views owners https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/toolbar_button.h File chrome/browser/ui/views/toolbar/toolbar_button.h (right): https://codereview.chromium.org/62873007/diff/1780001/chrome/browser/ui/views/toolbar/toolbar_button.h#newcode48 chrome/browser/ui/views/toolbar/toolbar_button.h:48: virtual gfx::Rect GetThemePaintRect() const OVERRIDE; ...
7 years ago (2013-11-26 16:58:32 UTC) #21
Greg Billock
On 2013/11/26 02:25:46, Peter Kasting wrote: > Really the only major remaining thing is the ...
7 years ago (2013-11-26 22:09:23 UTC) #22
Peter Kasting
LGTM https://codereview.chromium.org/62873007/diff/2030001/chrome/browser/ui/views/toolbar/back_button.cc File chrome/browser/ui/views/toolbar/back_button.cc (right): https://codereview.chromium.org/62873007/diff/2030001/chrome/browser/ui/views/toolbar/back_button.cc#newcode20 chrome/browser/ui/views/toolbar/back_button.cc:20: gfx::Rect rect = LabelButton::GetThemePaintRect(); Nit: Prefer () to ...
7 years ago (2013-11-26 22:24:31 UTC) #23
Greg Billock
https://codereview.chromium.org/62873007/diff/2030001/chrome/browser/ui/views/toolbar/back_button.cc File chrome/browser/ui/views/toolbar/back_button.cc (right): https://codereview.chromium.org/62873007/diff/2030001/chrome/browser/ui/views/toolbar/back_button.cc#newcode20 chrome/browser/ui/views/toolbar/back_button.cc:20: gfx::Rect rect = LabelButton::GetThemePaintRect(); On 2013/11/26 22:24:31, Peter Kasting ...
7 years ago (2013-11-27 14:22:34 UTC) #24
Greg Billock
On 2013/11/27 14:22:34, Greg Billock wrote: > https://codereview.chromium.org/62873007/diff/2030001/chrome/browser/ui/views/toolbar/back_button.cc > File chrome/browser/ui/views/toolbar/back_button.cc (right): > > https://codereview.chromium.org/62873007/diff/2030001/chrome/browser/ui/views/toolbar/back_button.cc#newcode20 ...
7 years ago (2013-11-27 18:34:34 UTC) #25
sadrul
lgtm https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h File ui/views/controls/button/label_button.h (right): https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h#newcode68 ui/views/controls/button/label_button.h:68: // View: Mind keeping this consistent with the ...
7 years ago (2013-12-02 17:34:54 UTC) #26
Peter Kasting
https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h File ui/views/controls/button/label_button.h (right): https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h#newcode68 ui/views/controls/button/label_button.h:68: // View: On 2013/12/02 17:34:55, sadrul wrote: > Mind ...
7 years ago (2013-12-02 17:38:53 UTC) #27
sadrul
https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h File ui/views/controls/button/label_button.h (right): https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h#newcode68 ui/views/controls/button/label_button.h:68: // View: On 2013/12/02 17:38:53, Peter Kasting wrote: > ...
7 years ago (2013-12-02 17:41:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/62873007/2090001
7 years ago (2013-12-02 18:40:31 UTC) #29
Greg Billock
https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h File ui/views/controls/button/label_button.h (right): https://codereview.chromium.org/62873007/diff/2070001/ui/views/controls/button/label_button.h#newcode68 ui/views/controls/button/label_button.h:68: // View: On 2013/12/02 17:41:48, sadrul wrote: > On ...
7 years ago (2013-12-02 18:40:36 UTC) #30
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=60843
7 years ago (2013-12-02 19:55:22 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/62873007/2110001
7 years ago (2013-12-02 20:27:15 UTC) #32
commit-bot: I haz the power
7 years ago (2013-12-02 23:06:02 UTC) #33
Message was sent while issue was closed.
Change committed as 238218

Powered by Google App Engine
This is Rietveld 408576698