| 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 // 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 |
| 308 // fullscreen, also enters fullscreen mode. | 308 // fullscreen, also enters fullscreen mode. |
| 309 virtual void EnterPresentationMode( | 309 virtual void EnterPresentationMode( |
| 310 const GURL& url, | 310 const GURL& url, |
| 311 FullscreenExitBubbleType bubble_type) = 0; | 311 FullscreenExitBubbleType bubble_type) = 0; |
| 312 virtual void ExitPresentationMode() = 0; | 312 virtual void ExitPresentationMode() = 0; |
| 313 virtual bool InPresentationMode() = 0; | 313 virtual bool InPresentationMode() = 0; |
| 314 #endif | 314 #endif |
| 315 | 315 |
| 316 #if defined(USE_ASH) |
| 317 // Returns true if the browser is in a maximized immersive view similar to |
| 318 // Mac OS presentation mode, with auto-hidden top-views and bottom launcher. |
| 319 virtual bool IsImmersiveMode() const = 0; |
| 320 #endif |
| 321 |
| 316 // Returns the desired bounds for Instant in screen coordinates. Note that if | 322 // 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 | 323 // Instant isn't currently visible this returns the bounds Instant would be |
| 318 // placed at. | 324 // placed at. |
| 319 virtual gfx::Rect GetInstantBounds() = 0; | 325 virtual gfx::Rect GetInstantBounds() = 0; |
| 320 | 326 |
| 321 // Checks if an Instant's tab contents is being shown. | 327 // Checks if an Instant's tab contents is being shown. |
| 322 virtual bool IsInstantTabShowing() = 0; | 328 virtual bool IsInstantTabShowing() = 0; |
| 323 | 329 |
| 324 // Return the correct disposition for a popup window based on |bounds|. | 330 // Return the correct disposition for a popup window based on |bounds|. |
| 325 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 331 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 | 403 |
| 398 // Returns the ToolbarView. | 404 // Returns the ToolbarView. |
| 399 virtual ToolbarView* GetToolbarView() const = 0; | 405 virtual ToolbarView* GetToolbarView() const = 0; |
| 400 #endif | 406 #endif |
| 401 | 407 |
| 402 protected: | 408 protected: |
| 403 virtual ~BrowserWindowTesting() {} | 409 virtual ~BrowserWindowTesting() {} |
| 404 }; | 410 }; |
| 405 | 411 |
| 406 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 412 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |