Chromium Code Reviews| 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 SetFullscreen(bool fullscreen, const GURL& url, |
|
Peter Kasting
2011/10/11 23:08:32
Nit: One arg per line, aligned
koz (OOO until 15th September)
2011/10/12 05:38:23
Done.
| |
| 140 bool ask_permission) = 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 297 virtual void Cut() = 0; | 298 virtual void Cut() = 0; |
| 298 virtual void Copy() = 0; | 299 virtual void Copy() = 0; |
| 299 virtual void Paste() = 0; | 300 virtual void Paste() = 0; |
| 300 | 301 |
| 301 #if defined(OS_MACOSX) | 302 #if defined(OS_MACOSX) |
| 302 // Opens the tabpose view. | 303 // Opens the tabpose view. |
| 303 virtual void OpenTabpose() = 0; | 304 virtual void OpenTabpose() = 0; |
| 304 | 305 |
| 305 // Sets the presentation mode for the window. If the window is not already in | 306 // Sets the presentation mode for the window. If the window is not already in |
| 306 // fullscreen, also enters fullscreen mode. | 307 // fullscreen, also enters fullscreen mode. |
| 307 virtual void SetPresentationMode(bool presentation_mode) = 0; | 308 virtual void SetPresentationMode(bool presentation_mode, |
| 309 const GURL& url, | |
| 310 bool ask_permission) = 0; | |
| 308 virtual bool InPresentationMode() = 0; | 311 virtual bool InPresentationMode() = 0; |
| 309 #endif | 312 #endif |
| 310 | 313 |
| 311 // See InstantDelegate for details. | 314 // See InstantDelegate for details. |
| 312 virtual void PrepareForInstant() = 0; | 315 virtual void PrepareForInstant() = 0; |
| 313 | 316 |
| 314 // Invoked when instant's tab contents should be shown. | 317 // Invoked when instant's tab contents should be shown. |
| 315 virtual void ShowInstant(TabContentsWrapper* preview) = 0; | 318 virtual void ShowInstant(TabContentsWrapper* preview) = 0; |
| 316 | 319 |
| 317 // Invoked when the instant's tab contents should be hidden. | 320 // Invoked when the instant's tab contents should be hidden. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 385 | 388 |
| 386 // Returns the ToolbarView. | 389 // Returns the ToolbarView. |
| 387 virtual ToolbarView* GetToolbarView() const = 0; | 390 virtual ToolbarView* GetToolbarView() const = 0; |
| 388 #endif | 391 #endif |
| 389 | 392 |
| 390 protected: | 393 protected: |
| 391 virtual ~BrowserWindowTesting() {} | 394 virtual ~BrowserWindowTesting() {} |
| 392 }; | 395 }; |
| 393 | 396 |
| 394 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 397 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |