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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 10736028: Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index 46452efe9ee236de448f45c14b11d8be7d28efde..016a4ed862ba7252838c1a48e138fc30cd7e8a4e 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -249,16 +249,8 @@ void BrowserWindowCocoa::SetStarredState(bool is_starred) {
[controller_ setStarredState:is_starred ? YES : NO];
}
-void BrowserWindowCocoa::SetZoomIconState(ZoomController::ZoomIconState state) {
- // TODO(khorimoto): Find someone to implement this.
-}
-
-void BrowserWindowCocoa::SetZoomIconTooltipPercent(int zoom_percent) {
- // TODO(khorimoto): Find someone to implement this.
-}
-
-void BrowserWindowCocoa::ShowZoomBubble(int zoom_percent) {
- // TODO(khorimoto): Find someone to implement this.
+void BrowserWindowCocoa::ZoomChangedForActiveTab(bool can_show_bubble) {
+ [controller_ zoomChangedForActiveTab:can_show_bubble ? YES : NO];
}
gfx::Rect BrowserWindowCocoa::GetRestoredBounds() const {
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698