| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/gfx/native_widget_types.h" | 8 #include "base/gfx/native_widget_types.h" |
| 9 | 9 |
| 10 class Browser; | 10 class Browser; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // This method should call Browser::InProgressDownloadResponse once the user | 188 // This method should call Browser::InProgressDownloadResponse once the user |
| 189 // has confirmed. | 189 // has confirmed. |
| 190 virtual void ConfirmBrowserCloseWithPendingDownloads() = 0; | 190 virtual void ConfirmBrowserCloseWithPendingDownloads() = 0; |
| 191 | 191 |
| 192 // Shows a dialog box with HTML content, e.g. for Gears. |parent_window| is | 192 // Shows a dialog box with HTML content, e.g. for Gears. |parent_window| is |
| 193 // the window the dialog should be opened modal to and is a native window | 193 // the window the dialog should be opened modal to and is a native window |
| 194 // handle. | 194 // handle. |
| 195 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 195 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
| 196 gfx::NativeWindow parent_window) = 0; | 196 gfx::NativeWindow parent_window) = 0; |
| 197 | 197 |
| 198 // Asks the window to continue a drag operation begun in a different browser |
| 199 // window. |tab_bounds| are the bounds of the Tab view that was dragged from |
| 200 // the source window, in screen coordinates. The corresponding Tab view in |
| 201 // this new window will be positioned at these bounds for a seamless |
| 202 // appearance. |
| 203 virtual void ContinueDraggingDetachedTab(const gfx::Rect& tab_bounds) {} |
| 204 |
| 198 // BrowserThemeProvider calls this when a user has changed his or her theme, | 205 // BrowserThemeProvider calls this when a user has changed his or her theme, |
| 199 // indicating that it's time to redraw everything. | 206 // indicating that it's time to redraw everything. |
| 200 virtual void UserChangedTheme() = 0; | 207 virtual void UserChangedTheme() = 0; |
| 201 | 208 |
| 202 // Get extra vertical height that the render view should add to its requests | 209 // Get extra vertical height that the render view should add to its requests |
| 203 // to webkit. This can help prevent sending extraneous layout/repaint requests | 210 // to webkit. This can help prevent sending extraneous layout/repaint requests |
| 204 // when the delegate is in the process of resizing the tab contents view (e.g. | 211 // when the delegate is in the process of resizing the tab contents view (e.g. |
| 205 // during infobar animations). | 212 // during infobar animations). |
| 206 virtual int GetExtraRenderViewHeight() const = 0; | 213 virtual int GetExtraRenderViewHeight() const = 0; |
| 207 | 214 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 247 |
| 241 // Returns the LocationBarView. | 248 // Returns the LocationBarView. |
| 242 virtual LocationBarView* GetLocationBarView() const = 0; | 249 virtual LocationBarView* GetLocationBarView() const = 0; |
| 243 | 250 |
| 244 // Returns the TabContentsContainer. | 251 // Returns the TabContentsContainer. |
| 245 virtual views::View* GetTabContentsContainerView() const = 0; | 252 virtual views::View* GetTabContentsContainerView() const = 0; |
| 246 #endif | 253 #endif |
| 247 }; | 254 }; |
| 248 | 255 |
| 249 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 256 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
| OLD | NEW |