| 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Sets the presentation mode for the window. If the window is not already in | 304 // Sets the presentation mode for the window. If the window is not already in |
| 305 // fullscreen, also enters fullscreen mode. | 305 // fullscreen, also enters fullscreen mode. |
| 306 virtual void SetPresentationMode(bool presentation_mode) = 0; | 306 virtual void SetPresentationMode(bool presentation_mode) = 0; |
| 307 virtual bool InPresentationMode() = 0; | 307 virtual bool InPresentationMode() = 0; |
| 308 #endif | 308 #endif |
| 309 | 309 |
| 310 // Invoked when instant's tab contents should be shown. | 310 // Invoked when instant's tab contents should be shown. |
| 311 virtual void ShowInstant(TabContentsWrapper* preview) = 0; | 311 virtual void ShowInstant(TabContentsWrapper* preview) = 0; |
| 312 | 312 |
| 313 // Invoked when the instant's tab contents should be hidden. | 313 // Invoked when the instant's tab contents should be hidden. |
| 314 // |instant_is_active| indicates if instant is still active. | 314 virtual void HideInstant() = 0; |
| 315 virtual void HideInstant(bool instant_is_active) = 0; | |
| 316 | 315 |
| 317 // Returns the desired bounds for instant in screen coordinates. Note that if | 316 // Returns the desired bounds for instant in screen coordinates. Note that if |
| 318 // instant isn't currently visible this returns the bounds instant would be | 317 // instant isn't currently visible this returns the bounds instant would be |
| 319 // placed at. | 318 // placed at. |
| 320 virtual gfx::Rect GetInstantBounds() = 0; | 319 virtual gfx::Rect GetInstantBounds() = 0; |
| 321 | 320 |
| 322 // Return the correct disposition for a popup window based on |bounds|. | 321 // Return the correct disposition for a popup window based on |bounds|. |
| 323 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 322 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| 324 const gfx::Rect& bounds) = 0; | 323 const gfx::Rect& bounds) = 0; |
| 325 | 324 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 | 380 |
| 382 // Returns the ToolbarView. | 381 // Returns the ToolbarView. |
| 383 virtual ToolbarView* GetToolbarView() const = 0; | 382 virtual ToolbarView* GetToolbarView() const = 0; |
| 384 #endif | 383 #endif |
| 385 | 384 |
| 386 protected: | 385 protected: |
| 387 virtual ~BrowserWindowTesting() {} | 386 virtual ~BrowserWindowTesting() {} |
| 388 }; | 387 }; |
| 389 | 388 |
| 390 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 389 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |