Chromium Code Reviews| 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 #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_exit_bubble_type.h" | 13 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" |
| 14 #include "chrome/browser/ui/zoom/zoom_tab_helper.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 13 matching lines...) Expand all Loading... | |
| 37 | 38 |
| 38 namespace extensions { | 39 namespace extensions { |
| 39 class Extension; | 40 class Extension; |
| 40 } | 41 } |
| 41 | 42 |
| 42 namespace gfx { | 43 namespace gfx { |
| 43 class Rect; | 44 class Rect; |
| 44 class Size; | 45 class Size; |
| 45 } | 46 } |
| 46 | 47 |
| 47 | |
| 48 enum DevToolsDockSide { | 48 enum DevToolsDockSide { |
| 49 DEVTOOLS_DOCK_SIDE_BOTTOM = 0, | 49 DEVTOOLS_DOCK_SIDE_BOTTOM = 0, |
| 50 DEVTOOLS_DOCK_SIDE_RIGHT = 1 | 50 DEVTOOLS_DOCK_SIDE_RIGHT = 1 |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 //////////////////////////////////////////////////////////////////////////////// | 53 //////////////////////////////////////////////////////////////////////////////// |
| 54 // BrowserWindow interface | 54 // BrowserWindow interface |
| 55 // An interface implemented by the "view" of the Browser window. | 55 // An interface implemented by the "view" of the Browser window. |
| 56 // This interface includes BaseWindow methods as well as Browser window | 56 // This interface includes BaseWindow methods as well as Browser window |
| 57 // specific methods. | 57 // specific methods. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; | 117 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; |
| 118 | 118 |
| 119 // Update any loading animations running in the window. |should_animate| is | 119 // Update any loading animations running in the window. |should_animate| is |
| 120 // true if there are tabs loading and the animations should continue, false | 120 // true if there are tabs loading and the animations should continue, false |
| 121 // if there are no active loads and the animations should end. | 121 // if there are no active loads and the animations should end. |
| 122 virtual void UpdateLoadingAnimations(bool should_animate) = 0; | 122 virtual void UpdateLoadingAnimations(bool should_animate) = 0; |
| 123 | 123 |
| 124 // Sets the starred state for the current tab. | 124 // Sets the starred state for the current tab. |
| 125 virtual void SetStarredState(bool is_starred) = 0; | 125 virtual void SetStarredState(bool is_starred) = 0; |
| 126 | 126 |
| 127 // Sets the zoom icon state for the current tab. | |
| 128 virtual void SetZoomIconState(ZoomTabHelper::ZoomIconState state, | |
| 129 int zoomPercent) = 0; | |
|
Ben Goodger (Google)
2012/05/29 18:04:41
zoom_percent, here and everywhere else.
Kyle Horimoto
2012/05/31 23:13:52
Done.
| |
| 130 | |
| 131 // Show zoom bubble for the current tab. | |
| 132 virtual void ShowZoomBubble(int zoomPercent) = 0; | |
| 133 | |
| 127 // Accessors for fullscreen mode state. | 134 // Accessors for fullscreen mode state. |
| 128 virtual void EnterFullscreen(const GURL& url, | 135 virtual void EnterFullscreen(const GURL& url, |
| 129 FullscreenExitBubbleType bubble_type) = 0; | 136 FullscreenExitBubbleType bubble_type) = 0; |
| 130 virtual void ExitFullscreen() = 0; | 137 virtual void ExitFullscreen() = 0; |
| 131 virtual void UpdateFullscreenExitBubbleContent( | 138 virtual void UpdateFullscreenExitBubbleContent( |
| 132 const GURL& url, | 139 const GURL& url, |
| 133 FullscreenExitBubbleType bubble_type) = 0; | 140 FullscreenExitBubbleType bubble_type) = 0; |
| 134 | 141 |
| 135 // Returns true if the fullscreen bubble is visible. | 142 // Returns true if the fullscreen bubble is visible. |
| 136 virtual bool IsFullscreenBubbleVisible() const = 0; | 143 virtual bool IsFullscreenBubbleVisible() const = 0; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 394 | 401 |
| 395 // Returns the ToolbarView. | 402 // Returns the ToolbarView. |
| 396 virtual ToolbarView* GetToolbarView() const = 0; | 403 virtual ToolbarView* GetToolbarView() const = 0; |
| 397 #endif | 404 #endif |
| 398 | 405 |
| 399 protected: | 406 protected: |
| 400 virtual ~BrowserWindowTesting() {} | 407 virtual ~BrowserWindowTesting() {} |
| 401 }; | 408 }; |
| 402 | 409 |
| 403 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 410 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |