| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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" |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 // Clipboard commands applied to the whole browser window. | 298 // Clipboard commands applied to the whole browser window. |
| 299 virtual void Cut() = 0; | 299 virtual void Cut() = 0; |
| 300 virtual void Copy() = 0; | 300 virtual void Copy() = 0; |
| 301 virtual void Paste() = 0; | 301 virtual void Paste() = 0; |
| 302 | 302 |
| 303 #if defined(OS_MACOSX) | 303 #if defined(OS_MACOSX) |
| 304 // Opens the tabpose view. | 304 // Opens the tabpose view. |
| 305 virtual void OpenTabpose() = 0; | 305 virtual void OpenTabpose() = 0; |
| 306 | 306 |
| 307 // Sets the presentation mode for the window. If the window is not already in | 307 // Enters Mac specific fullscreen mode with chrome displayed (e.g. omnibox). |
| 308 // fullscreen, also enters fullscreen mode. | 308 // Enter either from non fullscreen, or from fullscreen without chrome. |
| 309 virtual void EnterPresentationMode( | 309 // Exit to normal fullscreen with EnterFullscreen(). |
| 310 virtual void EnterFullscreenWithChrome( |
| 310 const GURL& url, | 311 const GURL& url, |
| 311 FullscreenExitBubbleType bubble_type) = 0; | 312 FullscreenExitBubbleType bubble_type) = 0; |
| 312 virtual void ExitPresentationMode() = 0; | 313 virtual bool IsFullscreenWithChrome() = 0; |
| 313 virtual bool InPresentationMode() = 0; | 314 virtual bool IsFullscreenWithoutChrome() = 0; |
| 314 #endif | 315 #endif |
| 315 | 316 |
| 316 // Returns the desired bounds for Instant in screen coordinates. Note that if | 317 // Returns the desired bounds for Instant in screen coordinates. Note that if |
| 317 // Instant isn't currently visible this returns the bounds Instant would be | 318 // Instant isn't currently visible this returns the bounds Instant would be |
| 318 // placed at. | 319 // placed at. |
| 319 virtual gfx::Rect GetInstantBounds() = 0; | 320 virtual gfx::Rect GetInstantBounds() = 0; |
| 320 | 321 |
| 321 // Checks if an Instant's tab contents is being shown. | 322 // Checks if an Instant's tab contents is being shown. |
| 322 virtual bool IsInstantTabShowing() = 0; | 323 virtual bool IsInstantTabShowing() = 0; |
| 323 | 324 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 398 |
| 398 // Returns the ToolbarView. | 399 // Returns the ToolbarView. |
| 399 virtual ToolbarView* GetToolbarView() const = 0; | 400 virtual ToolbarView* GetToolbarView() const = 0; |
| 400 #endif | 401 #endif |
| 401 | 402 |
| 402 protected: | 403 protected: |
| 403 virtual ~BrowserWindowTesting() {} | 404 virtual ~BrowserWindowTesting() {} |
| 404 }; | 405 }; |
| 405 | 406 |
| 406 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 407 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |