| 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/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 10 matching lines...) Expand all Loading... |
| 21 class DownloadShelf; | 21 class DownloadShelf; |
| 22 class FindBar; | 22 class FindBar; |
| 23 class GURL; | 23 class GURL; |
| 24 class LocationBar; | 24 class LocationBar; |
| 25 class Profile; | 25 class Profile; |
| 26 class StatusBubble; | 26 class StatusBubble; |
| 27 class TemplateURL; | 27 class TemplateURL; |
| 28 #if !defined(OS_MACOSX) | 28 #if !defined(OS_MACOSX) |
| 29 class ToolbarView; | 29 class ToolbarView; |
| 30 #endif | 30 #endif |
| 31 class WebContentsModalDialogHost; | |
| 32 | 31 |
| 33 namespace autofill { | 32 namespace autofill { |
| 34 class PasswordGenerator; | 33 class PasswordGenerator; |
| 35 } | 34 } |
| 36 namespace content { | 35 namespace content { |
| 37 class WebContents; | 36 class WebContents; |
| 38 struct NativeWebKeyboardEvent; | 37 struct NativeWebKeyboardEvent; |
| 39 struct PasswordForm; | 38 struct PasswordForm; |
| 40 struct SSLStatus; | 39 struct SSLStatus; |
| 41 } | 40 } |
| 42 | 41 |
| 43 namespace extensions { | 42 namespace extensions { |
| 44 class Extension; | 43 class Extension; |
| 45 } | 44 } |
| 46 | 45 |
| 47 namespace gfx { | 46 namespace gfx { |
| 48 class Rect; | 47 class Rect; |
| 49 class Size; | 48 class Size; |
| 50 } | 49 } |
| 51 | 50 |
| 51 namespace web_modal { |
| 52 class WebContentsModalDialogHost; |
| 53 } |
| 54 |
| 52 //////////////////////////////////////////////////////////////////////////////// | 55 //////////////////////////////////////////////////////////////////////////////// |
| 53 // BrowserWindow interface | 56 // BrowserWindow interface |
| 54 // An interface implemented by the "view" of the Browser window. | 57 // An interface implemented by the "view" of the Browser window. |
| 55 // This interface includes BaseWindow methods as well as Browser window | 58 // This interface includes BaseWindow methods as well as Browser window |
| 56 // specific methods. | 59 // specific methods. |
| 57 // | 60 // |
| 58 // NOTE: All getters may return NULL. | 61 // NOTE: All getters may return NULL. |
| 59 // | 62 // |
| 60 class BrowserWindow : public BaseWindow { | 63 class BrowserWindow : public BaseWindow { |
| 61 public: | 64 public: |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 322 |
| 320 // Return the correct disposition for a popup window based on |bounds|. | 323 // Return the correct disposition for a popup window based on |bounds|. |
| 321 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 324 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
| 322 const gfx::Rect& bounds) = 0; | 325 const gfx::Rect& bounds) = 0; |
| 323 | 326 |
| 324 // Construct a FindBar implementation for the |browser|. | 327 // Construct a FindBar implementation for the |browser|. |
| 325 virtual FindBar* CreateFindBar() = 0; | 328 virtual FindBar* CreateFindBar() = 0; |
| 326 | 329 |
| 327 // Return the WebContentsModalDialogHost for use in positioning web contents | 330 // Return the WebContentsModalDialogHost for use in positioning web contents |
| 328 // modal dialogs within the browser window. | 331 // modal dialogs within the browser window. |
| 329 virtual WebContentsModalDialogHost* GetWebContentsModalDialogHost() = 0; | 332 virtual web_modal::WebContentsModalDialogHost* |
| 333 GetWebContentsModalDialogHost() = 0; |
| 330 | 334 |
| 331 // Invoked when the preferred size of the contents in current tab has been | 335 // Invoked when the preferred size of the contents in current tab has been |
| 332 // changed. We might choose to update the window size to accomodate this | 336 // changed. We might choose to update the window size to accomodate this |
| 333 // change. | 337 // change. |
| 334 // Note that this won't be fired if we change tabs. | 338 // Note that this won't be fired if we change tabs. |
| 335 virtual void UpdatePreferredSize(content::WebContents* web_contents, | 339 virtual void UpdatePreferredSize(content::WebContents* web_contents, |
| 336 const gfx::Size& pref_size) {} | 340 const gfx::Size& pref_size) {} |
| 337 | 341 |
| 338 // Invoked when the contents auto-resized and the container should match it. | 342 // Invoked when the contents auto-resized and the container should match it. |
| 339 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, | 343 virtual void ResizeDueToAutoResize(content::WebContents* web_contents, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 395 |
| 392 // Returns the ToolbarView. | 396 // Returns the ToolbarView. |
| 393 virtual ToolbarView* GetToolbarView() const = 0; | 397 virtual ToolbarView* GetToolbarView() const = 0; |
| 394 #endif | 398 #endif |
| 395 | 399 |
| 396 protected: | 400 protected: |
| 397 virtual ~BrowserWindowTesting() {} | 401 virtual ~BrowserWindowTesting() {} |
| 398 }; | 402 }; |
| 399 | 403 |
| 400 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |