| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; | 115 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; |
| 117 | 116 |
| 118 // Update any loading animations running in the window. |should_animate| is | 117 // Update any loading animations running in the window. |should_animate| is |
| 119 // true if there are tabs loading and the animations should continue, false | 118 // true if there are tabs loading and the animations should continue, false |
| 120 // if there are no active loads and the animations should end. | 119 // if there are no active loads and the animations should end. |
| 121 virtual void UpdateLoadingAnimations(bool should_animate) = 0; | 120 virtual void UpdateLoadingAnimations(bool should_animate) = 0; |
| 122 | 121 |
| 123 // Sets the starred state for the current tab. | 122 // Sets the starred state for the current tab. |
| 124 virtual void SetStarredState(bool is_starred) = 0; | 123 virtual void SetStarredState(bool is_starred) = 0; |
| 125 | 124 |
| 126 // Sets the zoom icon state for the current tab. | 125 // Called when the zoom in the active tab is changed. |can_show_bubble| will |
| 127 virtual void SetZoomIconState(ZoomController::ZoomIconState state) = 0; | 126 // be true if showing a zoom bubble would be appropriate (i.e. the change was |
| 128 | 127 // based on a user action, not switching tabs nor from the zoom widget in the |
| 129 // Sets the zoom icon tooltip zoom percentage for the current tab. | 128 // wrench menu). |
| 130 virtual void SetZoomIconTooltipPercent(int zoom_percent) = 0; | 129 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |
| 131 | |
| 132 // Show zoom bubble for the current tab. | |
| 133 virtual void ShowZoomBubble(int zoom_percent) = 0; | |
| 134 | 130 |
| 135 // Accessors for fullscreen mode state. | 131 // Accessors for fullscreen mode state. |
| 136 virtual void EnterFullscreen(const GURL& url, | 132 virtual void EnterFullscreen(const GURL& url, |
| 137 FullscreenExitBubbleType bubble_type) = 0; | 133 FullscreenExitBubbleType bubble_type) = 0; |
| 138 virtual void ExitFullscreen() = 0; | 134 virtual void ExitFullscreen() = 0; |
| 139 virtual void UpdateFullscreenExitBubbleContent( | 135 virtual void UpdateFullscreenExitBubbleContent( |
| 140 const GURL& url, | 136 const GURL& url, |
| 141 FullscreenExitBubbleType bubble_type) = 0; | 137 FullscreenExitBubbleType bubble_type) = 0; |
| 142 | 138 |
| 143 // Returns true if the fullscreen bubble is visible. | 139 // Returns true if the fullscreen bubble is visible. |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 412 |
| 417 // Returns the ToolbarView. | 413 // Returns the ToolbarView. |
| 418 virtual ToolbarView* GetToolbarView() const = 0; | 414 virtual ToolbarView* GetToolbarView() const = 0; |
| 419 #endif | 415 #endif |
| 420 | 416 |
| 421 protected: | 417 protected: |
| 422 virtual ~BrowserWindowTesting() {} | 418 virtual ~BrowserWindowTesting() {} |
| 423 }; | 419 }; |
| 424 | 420 |
| 425 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 421 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |