| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_CONSTRAINED_WINDOW_H__ | 5 #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_H__ |
| 6 #define CHROME_BROWSER_CONSTRAINED_WINDOW_H__ | 6 #define CHROME_BROWSER_CONSTRAINED_WINDOW_H__ |
| 7 | 7 |
| 8 #include "chrome/common/page_transition_types.h" | 8 #include "chrome/common/page_transition_types.h" |
| 9 #include "webkit/glue/window_open_disposition.h" | 9 #include "webkit/glue/window_open_disposition.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // lets the delegate decide what to do. | 34 // lets the delegate decide what to do. |
| 35 virtual void AddNewContents(ConstrainedWindow* window, | 35 virtual void AddNewContents(ConstrainedWindow* window, |
| 36 TabContents* new_contents, | 36 TabContents* new_contents, |
| 37 WindowOpenDisposition disposition, | 37 WindowOpenDisposition disposition, |
| 38 const gfx::Rect& initial_pos, | 38 const gfx::Rect& initial_pos, |
| 39 bool user_gesture) = 0; | 39 bool user_gesture) = 0; |
| 40 | 40 |
| 41 // Called to open a URL in a the specified manner. | 41 // Called to open a URL in a the specified manner. |
| 42 virtual void OpenURL(ConstrainedWindow* window, | 42 virtual void OpenURL(ConstrainedWindow* window, |
| 43 const GURL& url, | 43 const GURL& url, |
| 44 const GURL& referrer, |
| 44 WindowOpenDisposition disposition, | 45 WindowOpenDisposition disposition, |
| 45 PageTransition::Type transition) = 0; | 46 PageTransition::Type transition) = 0; |
| 46 | 47 |
| 47 // Called when the window is about to be closed. | 48 // Called when the window is about to be closed. |
| 48 virtual void WillClose(ConstrainedWindow* window) = 0; | 49 virtual void WillClose(ConstrainedWindow* window) = 0; |
| 49 | 50 |
| 50 // Called when the window's contents should be detached into a top-level | 51 // Called when the window's contents should be detached into a top-level |
| 51 // window. The delegate is expected to have re-parented the TabContents by | 52 // window. The delegate is expected to have re-parented the TabContents by |
| 52 // the time this method returns. | 53 // the time this method returns. |
| 53 // |contents_bounds| is the bounds of the TabContents after the detach | 54 // |contents_bounds| is the bounds of the TabContents after the detach |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 virtual void UpdateWindowTitle() = 0; | 130 virtual void UpdateWindowTitle() = 0; |
| 130 | 131 |
| 131 // Returns the current display rectangle (relative to its | 132 // Returns the current display rectangle (relative to its |
| 132 // parent). This method is only called from the unit tests to check | 133 // parent). This method is only called from the unit tests to check |
| 133 // the location/size of a constrained window. | 134 // the location/size of a constrained window. |
| 134 virtual const gfx::Rect& GetCurrentBounds() const = 0; | 135 virtual const gfx::Rect& GetCurrentBounds() const = 0; |
| 135 }; | 136 }; |
| 136 | 137 |
| 137 #endif // #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_H__ | 138 #endif // #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_H__ |
| 138 | 139 |
| OLD | NEW |