Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 327 virtual void ShowInstant(TabContents* preview) = 0; | 327 virtual void ShowInstant(TabContents* preview) = 0; |
| 328 | 328 |
| 329 // Invoked when the instant's tab contents should be hidden. | 329 // Invoked when the instant's tab contents should be hidden. |
| 330 virtual void HideInstant() = 0; | 330 virtual void HideInstant() = 0; |
| 331 | 331 |
| 332 // Returns the desired bounds for instant in screen coordinates. Note that if | 332 // Returns the desired bounds for instant in screen coordinates. Note that if |
| 333 // instant isn't currently visible this returns the bounds instant would be | 333 // instant isn't currently visible this returns the bounds instant would be |
| 334 // placed at. | 334 // placed at. |
| 335 virtual gfx::Rect GetInstantBounds() = 0; | 335 virtual gfx::Rect GetInstantBounds() = 0; |
| 336 | 336 |
| 337 // Checks if an instant's tab contents is being shown. | |
| 338 virtual bool GetIsShowingInstant() = 0; | |
|
Robert Sesek
2012/08/31 21:22:36
I'm not a fan of this name. I think the "Get" is u
sail
2012/09/02 22:43:11
Done.
| |
| 339 | |
| 337 // Return the correct disposition for a popup window based on |bounds|. | 340 // Return the correct disposition for a popup window based on |bounds|. |
| 338 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 341 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| 339 const gfx::Rect& bounds) = 0; | 342 const gfx::Rect& bounds) = 0; |
| 340 | 343 |
| 341 // Construct a FindBar implementation for the |browser|. | 344 // Construct a FindBar implementation for the |browser|. |
| 342 virtual FindBar* CreateFindBar() = 0; | 345 virtual FindBar* CreateFindBar() = 0; |
| 343 | 346 |
| 344 // Invoked when the preferred size of the contents in current tab has been | 347 // Invoked when the preferred size of the contents in current tab has been |
| 345 // changed. We might choose to update the window size to accomodate this | 348 // changed. We might choose to update the window size to accomodate this |
| 346 // change. | 349 // change. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 406 | 409 |
| 407 // Returns the ToolbarView. | 410 // Returns the ToolbarView. |
| 408 virtual ToolbarView* GetToolbarView() const = 0; | 411 virtual ToolbarView* GetToolbarView() const = 0; |
| 409 #endif | 412 #endif |
| 410 | 413 |
| 411 protected: | 414 protected: |
| 412 virtual ~BrowserWindowTesting() {} | 415 virtual ~BrowserWindowTesting() {} |
| 413 }; | 416 }; |
| 414 | 417 |
| 415 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |