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, |
| 140 const GURL& url, |
| 141 bool ask_permission) = 0; |
140 virtual bool IsFullscreen() const = 0; | 142 virtual bool IsFullscreen() const = 0; |
141 | 143 |
142 // Returns true if the fullscreen bubble is visible. | 144 // Returns true if the fullscreen bubble is visible. |
143 virtual bool IsFullscreenBubbleVisible() const = 0; | 145 virtual bool IsFullscreenBubbleVisible() const = 0; |
144 | 146 |
145 // Returns the location bar. | 147 // Returns the location bar. |
146 virtual LocationBar* GetLocationBar() const = 0; | 148 virtual LocationBar* GetLocationBar() const = 0; |
147 | 149 |
148 // Tries to focus the location bar. Clears the window focus (to avoid | 150 // Tries to focus the location bar. Clears the window focus (to avoid |
149 // inconsistent state) if this fails. | 151 // inconsistent state) if this fails. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 virtual void Cut() = 0; | 299 virtual void Cut() = 0; |
298 virtual void Copy() = 0; | 300 virtual void Copy() = 0; |
299 virtual void Paste() = 0; | 301 virtual void Paste() = 0; |
300 | 302 |
301 #if defined(OS_MACOSX) | 303 #if defined(OS_MACOSX) |
302 // Opens the tabpose view. | 304 // Opens the tabpose view. |
303 virtual void OpenTabpose() = 0; | 305 virtual void OpenTabpose() = 0; |
304 | 306 |
305 // Sets the presentation mode for the window. If the window is not already in | 307 // Sets the presentation mode for the window. If the window is not already in |
306 // fullscreen, also enters fullscreen mode. | 308 // fullscreen, also enters fullscreen mode. |
307 virtual void SetPresentationMode(bool presentation_mode) = 0; | 309 virtual void SetPresentationMode(bool presentation_mode, |
| 310 const GURL& url, |
| 311 bool ask_permission) = 0; |
308 virtual bool InPresentationMode() = 0; | 312 virtual bool InPresentationMode() = 0; |
309 #endif | 313 #endif |
310 | 314 |
311 // See InstantDelegate for details. | 315 // See InstantDelegate for details. |
312 virtual void PrepareForInstant() = 0; | 316 virtual void PrepareForInstant() = 0; |
313 | 317 |
314 // Invoked when instant's tab contents should be shown. | 318 // Invoked when instant's tab contents should be shown. |
315 virtual void ShowInstant(TabContentsWrapper* preview) = 0; | 319 virtual void ShowInstant(TabContentsWrapper* preview) = 0; |
316 | 320 |
317 // Invoked when the instant's tab contents should be hidden. | 321 // Invoked when the instant's tab contents should be hidden. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 389 |
386 // Returns the ToolbarView. | 390 // Returns the ToolbarView. |
387 virtual ToolbarView* GetToolbarView() const = 0; | 391 virtual ToolbarView* GetToolbarView() const = 0; |
388 #endif | 392 #endif |
389 | 393 |
390 protected: | 394 protected: |
391 virtual ~BrowserWindowTesting() {} | 395 virtual ~BrowserWindowTesting() {} |
392 }; | 396 }; |
393 | 397 |
394 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |