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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 // Checks if an instant's tab contents is being shown. | 337 // Checks if an instant's tab contents is being shown. |
338 virtual bool IsInstantTabShowing() = 0; | 338 virtual bool IsInstantTabShowing() = 0; |
339 | 339 |
340 // Return the correct disposition for a popup window based on |bounds|. | 340 // Return the correct disposition for a popup window based on |bounds|. |
341 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 341 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
342 const gfx::Rect& bounds) = 0; | 342 const gfx::Rect& bounds) = 0; |
343 | 343 |
344 // Construct a FindBar implementation for the |browser|. | 344 // Construct a FindBar implementation for the |browser|. |
345 virtual FindBar* CreateFindBar() = 0; | 345 virtual FindBar* CreateFindBar() = 0; |
346 | 346 |
| 347 // Returns the y where the top of the constrained window should be |
| 348 // positioned. |
| 349 virtual int GetConstrainedWindowTopY() = 0; |
| 350 |
347 // Invoked when the preferred size of the contents in current tab has been | 351 // Invoked when the preferred size of the contents in current tab has been |
348 // changed. We might choose to update the window size to accomodate this | 352 // changed. We might choose to update the window size to accomodate this |
349 // change. | 353 // change. |
350 // Note that this won't be fired if we change tabs. | 354 // Note that this won't be fired if we change tabs. |
351 virtual void UpdatePreferredSize(content::WebContents* web_contents, | 355 virtual void UpdatePreferredSize(content::WebContents* web_contents, |
352 const gfx::Size& pref_size) {} | 356 const gfx::Size& pref_size) {} |
353 | 357 |
354 // Invoked when the contents auto-resized and the container should match it. | 358 // Invoked when the contents auto-resized and the container should match it. |
355 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, | 359 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, |
356 const gfx::Size& new_size) {} | 360 const gfx::Size& new_size) {} |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 413 |
410 // Returns the ToolbarView. | 414 // Returns the ToolbarView. |
411 virtual ToolbarView* GetToolbarView() const = 0; | 415 virtual ToolbarView* GetToolbarView() const = 0; |
412 #endif | 416 #endif |
413 | 417 |
414 protected: | 418 protected: |
415 virtual ~BrowserWindowTesting() {} | 419 virtual ~BrowserWindowTesting() {} |
416 }; | 420 }; |
417 | 421 |
418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 422 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |