| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/ui/bookmarks/bookmark_bar.h" | 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 10 #include "chrome/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 virtual gfx::Rect GetBounds() const = 0; | 129 virtual gfx::Rect GetBounds() const = 0; |
| 130 | 130 |
| 131 // TODO(beng): REMOVE? | 131 // TODO(beng): REMOVE? |
| 132 // Returns true if the frame is maximized (aka zoomed). | 132 // Returns true if the frame is maximized (aka zoomed). |
| 133 virtual bool IsMaximized() const = 0; | 133 virtual bool IsMaximized() const = 0; |
| 134 | 134 |
| 135 // Returns true if the frame is minimized. | 135 // Returns true if the frame is minimized. |
| 136 virtual bool IsMinimized() const = 0; | 136 virtual bool IsMinimized() const = 0; |
| 137 | 137 |
| 138 // Accessors for fullscreen mode state. | 138 // Accessors for fullscreen mode state. |
| 139 virtual void SetFullscreen(bool fullscreen) = 0; | 139 virtual void EnterFullscreen(const GURL& url, bool ask_permission) = 0; |
| 140 virtual void ExitFullscreen() = 0; |
| 140 virtual bool IsFullscreen() const = 0; | 141 virtual bool IsFullscreen() const = 0; |
| 141 | 142 |
| 142 // Returns true if the fullscreen bubble is visible. | 143 // Returns true if the fullscreen bubble is visible. |
| 143 virtual bool IsFullscreenBubbleVisible() const = 0; | 144 virtual bool IsFullscreenBubbleVisible() const = 0; |
| 144 | 145 |
| 145 // Returns the location bar. | 146 // Returns the location bar. |
| 146 virtual LocationBar* GetLocationBar() const = 0; | 147 virtual LocationBar* GetLocationBar() const = 0; |
| 147 | 148 |
| 148 // Tries to focus the location bar. Clears the window focus (to avoid | 149 // Tries to focus the location bar. Clears the window focus (to avoid |
| 149 // inconsistent state) if this fails. | 150 // inconsistent state) if this fails. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 virtual void Cut() = 0; | 297 virtual void Cut() = 0; |
| 297 virtual void Copy() = 0; | 298 virtual void Copy() = 0; |
| 298 virtual void Paste() = 0; | 299 virtual void Paste() = 0; |
| 299 | 300 |
| 300 #if defined(OS_MACOSX) | 301 #if defined(OS_MACOSX) |
| 301 // Opens the tabpose view. | 302 // Opens the tabpose view. |
| 302 virtual void OpenTabpose() = 0; | 303 virtual void OpenTabpose() = 0; |
| 303 | 304 |
| 304 // Sets the presentation mode for the window. If the window is not already in | 305 // Sets the presentation mode for the window. If the window is not already in |
| 305 // fullscreen, also enters fullscreen mode. | 306 // fullscreen, also enters fullscreen mode. |
| 306 virtual void SetPresentationMode(bool presentation_mode) = 0; | 307 virtual void SetPresentationMode(bool presentation_mode, |
| 308 const GURL& url, |
| 309 bool ask_permission) = 0; |
| 307 virtual bool InPresentationMode() = 0; | 310 virtual bool InPresentationMode() = 0; |
| 308 #endif | 311 #endif |
| 309 | 312 |
| 310 // Invoked when instant's tab contents should be shown. | 313 // Invoked when instant's tab contents should be shown. |
| 311 virtual void ShowInstant(TabContentsWrapper* preview) = 0; | 314 virtual void ShowInstant(TabContentsWrapper* preview) = 0; |
| 312 | 315 |
| 313 // Invoked when the instant's tab contents should be hidden. | 316 // Invoked when the instant's tab contents should be hidden. |
| 314 // |instant_is_active| indicates if instant is still active. | 317 // |instant_is_active| indicates if instant is still active. |
| 315 virtual void HideInstant(bool instant_is_active) = 0; | 318 virtual void HideInstant(bool instant_is_active) = 0; |
| 316 | 319 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 384 |
| 382 // Returns the ToolbarView. | 385 // Returns the ToolbarView. |
| 383 virtual ToolbarView* GetToolbarView() const = 0; | 386 virtual ToolbarView* GetToolbarView() const = 0; |
| 384 #endif | 387 #endif |
| 385 | 388 |
| 386 protected: | 389 protected: |
| 387 virtual ~BrowserWindowTesting() {} | 390 virtual ~BrowserWindowTesting() {} |
| 388 }; | 391 }; |
| 389 | 392 |
| 390 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 393 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |