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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 10831372: Revert 152080 - 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/application_lifetime.h" 9 #include "chrome/browser/lifetime/application_lifetime.h"
10 #include "chrome/browser/ui/base_window.h" 10 #include "chrome/browser/ui/base_window.h"
11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 11 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" 12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
13 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 13 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
14 #include "chrome/browser/ui/zoom/zoom_controller.h"
14 #include "chrome/common/content_settings_types.h" 15 #include "chrome/common/content_settings_types.h"
15 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
16 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
17 18
18 class Browser; 19 class Browser;
19 class BrowserWindowTesting; 20 class BrowserWindowTesting;
20 class DownloadShelf; 21 class DownloadShelf;
21 class FindBar; 22 class FindBar;
22 class GURL; 23 class GURL;
23 class LocationBar; 24 class LocationBar;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; 113 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0;
113 114
114 // Update any loading animations running in the window. |should_animate| is 115 // Update any loading animations running in the window. |should_animate| is
115 // true if there are tabs loading and the animations should continue, false 116 // true if there are tabs loading and the animations should continue, false
116 // if there are no active loads and the animations should end. 117 // if there are no active loads and the animations should end.
117 virtual void UpdateLoadingAnimations(bool should_animate) = 0; 118 virtual void UpdateLoadingAnimations(bool should_animate) = 0;
118 119
119 // Sets the starred state for the current tab. 120 // Sets the starred state for the current tab.
120 virtual void SetStarredState(bool is_starred) = 0; 121 virtual void SetStarredState(bool is_starred) = 0;
121 122
122 // Called to force the zoom state to for the active tab to be recalculated. 123 // Sets the zoom icon state for the current tab.
123 // |can_show_bubble| is true when a user presses the zoom up or down keyboard 124 virtual void SetZoomIconState(ZoomController::ZoomIconState state) = 0;
124 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" 125
125 // + or - in the wrench menu to change zoom). 126 // Sets the zoom icon tooltip zoom percentage for the current tab.
126 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; 127 virtual void SetZoomIconTooltipPercent(int zoom_percent) = 0;
128
129 // Show zoom bubble for the current tab.
130 virtual void ShowZoomBubble(int zoom_percent) = 0;
127 131
128 // Accessors for fullscreen mode state. 132 // Accessors for fullscreen mode state.
129 virtual void EnterFullscreen(const GURL& url, 133 virtual void EnterFullscreen(const GURL& url,
130 FullscreenExitBubbleType bubble_type) = 0; 134 FullscreenExitBubbleType bubble_type) = 0;
131 virtual void ExitFullscreen() = 0; 135 virtual void ExitFullscreen() = 0;
132 virtual void UpdateFullscreenExitBubbleContent( 136 virtual void UpdateFullscreenExitBubbleContent(
133 const GURL& url, 137 const GURL& url,
134 FullscreenExitBubbleType bubble_type) = 0; 138 FullscreenExitBubbleType bubble_type) = 0;
135 139
136 // Returns true if the fullscreen bubble is visible. 140 // Returns true if the fullscreen bubble is visible.
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 410
407 // Returns the ToolbarView. 411 // Returns the ToolbarView.
408 virtual ToolbarView* GetToolbarView() const = 0; 412 virtual ToolbarView* GetToolbarView() const = 0;
409 #endif 413 #endif
410 414
411 protected: 415 protected:
412 virtual ~BrowserWindowTesting() {} 416 virtual ~BrowserWindowTesting() {}
413 }; 417 };
414 418
415 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 419 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_command_controller.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698