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/browser_close_manager.h" | 9 #include "chrome/browser/lifetime/browser_close_manager.h" |
10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 #endif | 315 #endif |
316 | 316 |
317 // Return the correct disposition for a popup window based on |bounds|. | 317 // Return the correct disposition for a popup window based on |bounds|. |
318 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 318 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
319 const gfx::Rect& bounds) = 0; | 319 const gfx::Rect& bounds) = 0; |
320 | 320 |
321 // Construct a FindBar implementation for the |browser|. | 321 // Construct a FindBar implementation for the |browser|. |
322 virtual FindBar* CreateFindBar() = 0; | 322 virtual FindBar* CreateFindBar() = 0; |
323 | 323 |
324 // Return the WebContentsModalDialogHost for use in positioning web contents | 324 // Return the WebContentsModalDialogHost for use in positioning web contents |
325 // modal dialogs within the browser window. | 325 // modal dialogs within the browser window. This can sometimes be NULL (for |
| 326 // instance during tab drag on Views/Win32). |
326 virtual web_modal::WebContentsModalDialogHost* | 327 virtual web_modal::WebContentsModalDialogHost* |
327 GetWebContentsModalDialogHost() = 0; | 328 GetWebContentsModalDialogHost() = 0; |
328 | 329 |
329 // Invoked when the preferred size of the contents in current tab has been | 330 // Invoked when the preferred size of the contents in current tab has been |
330 // changed. We might choose to update the window size to accomodate this | 331 // changed. We might choose to update the window size to accomodate this |
331 // change. | 332 // change. |
332 // Note that this won't be fired if we change tabs. | 333 // Note that this won't be fired if we change tabs. |
333 virtual void UpdatePreferredSize(content::WebContents* web_contents, | 334 virtual void UpdatePreferredSize(content::WebContents* web_contents, |
334 const gfx::Size& pref_size) {} | 335 const gfx::Size& pref_size) {} |
335 | 336 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 399 |
399 // Returns the ToolbarView. | 400 // Returns the ToolbarView. |
400 virtual ToolbarView* GetToolbarView() const = 0; | 401 virtual ToolbarView* GetToolbarView() const = 0; |
401 #endif | 402 #endif |
402 | 403 |
403 protected: | 404 protected: |
404 virtual ~BrowserWindowTesting() {} | 405 virtual ~BrowserWindowTesting() {} |
405 }; | 406 }; |
406 | 407 |
407 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |