OLD | NEW |
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" | |
15 #include "chrome/common/content_settings_types.h" | 14 #include "chrome/common/content_settings_types.h" |
16 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
17 #include "webkit/glue/window_open_disposition.h" | 16 #include "webkit/glue/window_open_disposition.h" |
18 | 17 |
19 class Browser; | 18 class Browser; |
20 class BrowserWindowTesting; | 19 class BrowserWindowTesting; |
21 class DownloadShelf; | 20 class DownloadShelf; |
22 class FindBar; | 21 class FindBar; |
23 class GURL; | 22 class GURL; |
24 class LocationBar; | 23 class LocationBar; |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; | 112 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; |
114 | 113 |
115 // Update any loading animations running in the window. |should_animate| is | 114 // Update any loading animations running in the window. |should_animate| is |
116 // true if there are tabs loading and the animations should continue, false | 115 // true if there are tabs loading and the animations should continue, false |
117 // if there are no active loads and the animations should end. | 116 // if there are no active loads and the animations should end. |
118 virtual void UpdateLoadingAnimations(bool should_animate) = 0; | 117 virtual void UpdateLoadingAnimations(bool should_animate) = 0; |
119 | 118 |
120 // Sets the starred state for the current tab. | 119 // Sets the starred state for the current tab. |
121 virtual void SetStarredState(bool is_starred) = 0; | 120 virtual void SetStarredState(bool is_starred) = 0; |
122 | 121 |
123 // Sets the zoom icon state for the current tab. | 122 // Called to force the zoom state to for the active tab to be recalculated. |
124 virtual void SetZoomIconState(ZoomController::ZoomIconState state) = 0; | 123 // |can_show_bubble| is true when a user presses the zoom up or down keyboard |
125 | 124 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" |
126 // Sets the zoom icon tooltip zoom percentage for the current tab. | 125 // + or - in the wrench menu to change zoom). |
127 virtual void SetZoomIconTooltipPercent(int zoom_percent) = 0; | 126 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |
128 | |
129 // Show zoom bubble for the current tab. | |
130 virtual void ShowZoomBubble(int zoom_percent) = 0; | |
131 | 127 |
132 // Accessors for fullscreen mode state. | 128 // Accessors for fullscreen mode state. |
133 virtual void EnterFullscreen(const GURL& url, | 129 virtual void EnterFullscreen(const GURL& url, |
134 FullscreenExitBubbleType bubble_type) = 0; | 130 FullscreenExitBubbleType bubble_type) = 0; |
135 virtual void ExitFullscreen() = 0; | 131 virtual void ExitFullscreen() = 0; |
136 virtual void UpdateFullscreenExitBubbleContent( | 132 virtual void UpdateFullscreenExitBubbleContent( |
137 const GURL& url, | 133 const GURL& url, |
138 FullscreenExitBubbleType bubble_type) = 0; | 134 FullscreenExitBubbleType bubble_type) = 0; |
139 | 135 |
140 // Returns true if the fullscreen bubble is visible. | 136 // Returns true if the fullscreen bubble is visible. |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 406 |
411 // Returns the ToolbarView. | 407 // Returns the ToolbarView. |
412 virtual ToolbarView* GetToolbarView() const = 0; | 408 virtual ToolbarView* GetToolbarView() const = 0; |
413 #endif | 409 #endif |
414 | 410 |
415 protected: | 411 protected: |
416 virtual ~BrowserWindowTesting() {} | 412 virtual ~BrowserWindowTesting() {} |
417 }; | 413 }; |
418 | 414 |
419 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 415 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |