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

Issue 12315069: Mac: Update zoom bubble UI (Closed)

Created:
7 years, 10 months ago by sail
Modified:
7 years, 9 months ago
CC:
chromium-reviews, sail+watch_chromium.org
Visibility:
Public.

Description

Mac: Update zoom bubble UI This CL updates the Mac zoom bubble UI. It makes the following change: - add a zoom in and zoom out button - if bubble is open don't hide the bubble or omnibox icon when zoom level is default - reset auto close timer - disable animation when showing bubble because user clicked on icon - hide the zoom omnibox icon when user types in the omnibox Screenshot: http://i.imgur.com/PjGBQvv.png BUG=177931, 177544, 178227 TEST=Opened a tab and zoomed in, verified that the bubble still opened. Clicked on the zoom icon. Pressed reset and verified that the bubble didn't close. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185301

Patch Set 1 #

Patch Set 2 : fix copyright year #

Patch Set 3 : remove highlight #

Patch Set 4 : hide zoom decoration on input #

Total comments: 2

Patch Set 5 : " #

Patch Set 6 : use normal icon #

Total comments: 2

Patch Set 7 : address review comments #

Total comments: 20

Patch Set 8 : address review comments #

Total comments: 8

Patch Set 9 : enum for animation #

Patch Set 10 : rebase #

Total comments: 13

Patch Set 11 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -103 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/zoom_bubble_controller.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm View 1 2 3 4 5 6 7 8 9 10 7 chunks +182 lines, -41 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/action_box_menu_bubble_controller.mm View 1 2 3 4 5 6 7 8 9 10 7 chunks +27 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac_browsertest.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -42 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/mock_toolbar_model.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration.mm View 1 2 3 4 5 6 7 8 9 10 5 chunks +30 lines, -9 lines 0 comments Download
A chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +116 lines, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A ui/native_theme/native_theme_mac.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
A ui/native_theme/native_theme_mac.mm View 1 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
sail
7 years, 10 months ago (2013-02-24 02:09:35 UTC) #1
sail
Updated UI based on feedback from sgabriel.
7 years, 10 months ago (2013-02-25 20:06:23 UTC) #2
sail
+dbeam: for chrome/browser/ui/zoom OWNERS review
7 years, 10 months ago (2013-02-26 00:16:27 UTC) #3
Dan Beam
https://codereview.chromium.org/12315069/diff/12001/chrome/browser/ui/zoom/zoom_controller.cc File chrome/browser/ui/zoom/zoom_controller.cc (left): https://codereview.chromium.org/12315069/diff/12001/chrome/browser/ui/zoom/zoom_controller.cc#oldcode59 chrome/browser/ui/zoom/zoom_controller.cc:59: return zoom > default_zoom_level_.GetValue() ? IDR_ZOOM_PLUS : IDR_ZOOM_MINUS; is ...
7 years, 10 months ago (2013-02-26 00:17:49 UTC) #4
sail
https://codereview.chromium.org/12315069/diff/12001/chrome/browser/ui/zoom/zoom_controller.cc File chrome/browser/ui/zoom/zoom_controller.cc (left): https://codereview.chromium.org/12315069/diff/12001/chrome/browser/ui/zoom/zoom_controller.cc#oldcode59 chrome/browser/ui/zoom/zoom_controller.cc:59: return zoom > default_zoom_level_.GetValue() ? IDR_ZOOM_PLUS : IDR_ZOOM_MINUS; On ...
7 years, 10 months ago (2013-02-26 03:10:35 UTC) #5
Dan Beam
IDR_ZOOM_NORMAL doesn't seem to exist. What would the icon for *default* zoom be, and where ...
7 years, 10 months ago (2013-02-26 04:03:16 UTC) #6
sail
On 2013/02/26 04:03:16, Dan Beam wrote: > IDR_ZOOM_NORMAL doesn't seem to exist. I'm updating all ...
7 years, 10 months ago (2013-02-26 04:53:21 UTC) #7
Robert Sesek
https://codereview.chromium.org/12315069/diff/1017/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm File chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm (right): https://codereview.chromium.org/12315069/diff/1017/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm#newcode136 chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm:136: - (void)performLayout { This method is a bit too ...
7 years, 10 months ago (2013-02-26 16:08:24 UTC) #8
Dan Beam
lgtm w/nit https://codereview.chromium.org/12315069/diff/1017/chrome/browser/ui/zoom/zoom_controller.cc File chrome/browser/ui/zoom/zoom_controller.cc (right): https://codereview.chromium.org/12315069/diff/1017/chrome/browser/ui/zoom/zoom_controller.cc#newcode59 chrome/browser/ui/zoom/zoom_controller.cc:59: return IDR_ZOOM_NORMAL; if (IsAtDefaultZoom()) return IDR_ZOOM_NORMAL; double ...
7 years, 10 months ago (2013-02-26 18:36:31 UTC) #9
sail
https://codereview.chromium.org/12315069/diff/1017/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm File chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm (right): https://codereview.chromium.org/12315069/diff/1017/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm#newcode136 chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm:136: - (void)performLayout { On 2013/02/26 16:08:24, rsesek wrote: > ...
7 years, 10 months ago (2013-02-26 22:04:15 UTC) #10
Robert Sesek
Scott should probably also review some of those location_bar changes. https://codereview.chromium.org/12315069/diff/2023/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm File chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm (right): https://codereview.chromium.org/12315069/diff/2023/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm#newcode35 ...
7 years, 10 months ago (2013-02-26 23:15:16 UTC) #11
sail
shess: could you take a look at the chrome/browser/ui/cocoa/location_bar changes? Thanks! https://codereview.chromium.org/12315069/diff/2023/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm File chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm (right): ...
7 years, 9 months ago (2013-02-27 00:35:34 UTC) #12
sail
+thakis for src/ui/* OWNERS review
7 years, 9 months ago (2013-02-27 01:41:39 UTC) #13
Nico
Don't we have a theme service below chrome/ already? Since this is all chrome code, ...
7 years, 9 months ago (2013-02-27 12:46:46 UTC) #14
Scott Hess - ex-Googler
LGTM, though, just style sorts of nits. https://codereview.chromium.org/12315069/diff/14006/chrome/browser/ui/cocoa/location_bar/action_box_menu_bubble_controller.mm File chrome/browser/ui/cocoa/location_bar/action_box_menu_bubble_controller.mm (right): https://codereview.chromium.org/12315069/diff/14006/chrome/browser/ui/cocoa/location_bar/action_box_menu_bubble_controller.mm#newcode165 chrome/browser/ui/cocoa/location_bar/action_box_menu_bubble_controller.mm:165: const CGFloat ...
7 years, 9 months ago (2013-02-27 15:22:10 UTC) #15
Robert Sesek
LGTM https://codereview.chromium.org/12315069/diff/14006/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm File chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm (right): https://codereview.chromium.org/12315069/diff/14006/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm#newcode99 chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm:99: ? info_bubble::kAnimateOrderIn | info_bubble::kAnimateOrderOut nit: should only be ...
7 years, 9 months ago (2013-02-27 17:14:40 UTC) #16
Elliot Glaysher
On 2013/02/27 12:46:46, Nico wrote: > Don't we have a theme service below chrome/ already? ...
7 years, 9 months ago (2013-02-27 17:39:46 UTC) #17
sail
On 2013/02/27 17:39:46, Elliot Glaysher wrote: > On 2013/02/27 12:46:46, Nico wrote: > > Don't ...
7 years, 9 months ago (2013-02-27 17:57:42 UTC) #18
sail
https://codereview.chromium.org/12315069/diff/14006/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm File chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm (right): https://codereview.chromium.org/12315069/diff/14006/chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm#newcode99 chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm:99: ? info_bubble::kAnimateOrderIn | info_bubble::kAnimateOrderOut On 2013/02/27 17:14:40, rsesek wrote: ...
7 years, 9 months ago (2013-02-27 18:48:17 UTC) #19
Scott Hess - ex-Googler
still lgtm for location/bar stuff. https://codereview.chromium.org/12315069/diff/14006/ui/native_theme/native_theme_mac.h File ui/native_theme/native_theme_mac.h (right): https://codereview.chromium.org/12315069/diff/14006/ui/native_theme/native_theme_mac.h#newcode15 ui/native_theme/native_theme_mac.h:15: static NativeThemeMac* instance(); On ...
7 years, 9 months ago (2013-02-27 19:01:58 UTC) #20
Nico
ui lgtm from an owners perspective.
7 years, 9 months ago (2013-02-28 12:53:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12315069/9007
7 years, 9 months ago (2013-02-28 16:30:26 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-02-28 16:56:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/12315069/9007
7 years, 9 months ago (2013-02-28 18:06:48 UTC) #24
commit-bot: I haz the power
Change committed as 185301
7 years, 9 months ago (2013-02-28 19:52:37 UTC) #25
rohitrao (ping after 24h)
7 years, 9 months ago (2013-03-05 19:53:06 UTC) #26
Message was sent while issue was closed.
We added a TestToolbarModel class in
https://chromiumcodereview.appspot.com/11040055/.  Can that replace
MockToolbarModel?

Powered by Google App Engine
This is Rietveld 408576698