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