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

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

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, 5 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 #pragma once 7 #pragma once
8 8
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "chrome/browser/lifetime/application_lifetime.h" 10 #include "chrome/browser/lifetime/application_lifetime.h"
11 #include "chrome/browser/ui/base_window.h" 11 #include "chrome/browser/ui/base_window.h"
12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
13 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" 13 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
15 #include "chrome/browser/ui/zoom/zoom_controller.h"
16 #include "chrome/common/content_settings_types.h" 15 #include "chrome/common/content_settings_types.h"
17 #include "ui/gfx/native_widget_types.h" 16 #include "ui/gfx/native_widget_types.h"
18 #include "webkit/glue/window_open_disposition.h" 17 #include "webkit/glue/window_open_disposition.h"
19 18
20 class Browser; 19 class Browser;
21 class BrowserWindowTesting; 20 class BrowserWindowTesting;
22 class DownloadShelf; 21 class DownloadShelf;
23 class FindBar; 22 class FindBar;
24 class GURL; 23 class GURL;
25 class LocationBar; 24 class LocationBar;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; 116 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0;
118 117
119 // Update any loading animations running in the window. |should_animate| is 118 // Update any loading animations running in the window. |should_animate| is
120 // true if there are tabs loading and the animations should continue, false 119 // true if there are tabs loading and the animations should continue, false
121 // if there are no active loads and the animations should end. 120 // if there are no active loads and the animations should end.
122 virtual void UpdateLoadingAnimations(bool should_animate) = 0; 121 virtual void UpdateLoadingAnimations(bool should_animate) = 0;
123 122
124 // Sets the starred state for the current tab. 123 // Sets the starred state for the current tab.
125 virtual void SetStarredState(bool is_starred) = 0; 124 virtual void SetStarredState(bool is_starred) = 0;
126 125
127 // Sets the zoom icon state for the current tab. 126 // Called when the zoom in the active tab is changed.
Evan Stade 2012/07/13 05:31:00 docs for can_show_bubble.
Dan Beam 2012/07/24 03:00:49 Done.
128 virtual void SetZoomIconState(ZoomController::ZoomIconState state) = 0; 127 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0;
129
130 // Sets the zoom icon tooltip zoom percentage for the current tab.
131 virtual void SetZoomIconTooltipPercent(int zoom_percent) = 0;
132
133 // Show zoom bubble for the current tab.
134 virtual void ShowZoomBubble(int zoom_percent) = 0;
135 128
136 // Accessors for fullscreen mode state. 129 // Accessors for fullscreen mode state.
137 virtual void EnterFullscreen(const GURL& url, 130 virtual void EnterFullscreen(const GURL& url,
138 FullscreenExitBubbleType bubble_type) = 0; 131 FullscreenExitBubbleType bubble_type) = 0;
139 virtual void ExitFullscreen() = 0; 132 virtual void ExitFullscreen() = 0;
140 virtual void UpdateFullscreenExitBubbleContent( 133 virtual void UpdateFullscreenExitBubbleContent(
141 const GURL& url, 134 const GURL& url,
142 FullscreenExitBubbleType bubble_type) = 0; 135 FullscreenExitBubbleType bubble_type) = 0;
143 136
144 // Returns true if the fullscreen bubble is visible. 137 // Returns true if the fullscreen bubble is visible.
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 410
418 // Returns the ToolbarView. 411 // Returns the ToolbarView.
419 virtual ToolbarView* GetToolbarView() const = 0; 412 virtual ToolbarView* GetToolbarView() const = 0;
420 #endif 413 #endif
421 414
422 protected: 415 protected:
423 virtual ~BrowserWindowTesting() {} 416 virtual ~BrowserWindowTesting() {}
424 }; 417 };
425 418
426 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 419 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698