OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/common/content_settings_types.h" | 9 #include "chrome/common/content_settings_types.h" |
10 #include "content/browser/tab_contents/navigation_entry.h" | 10 #include "content/browser/tab_contents/navigation_entry.h" |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 // Show the bubble that indicates to the user that a theme is being installed. | 243 // Show the bubble that indicates to the user that a theme is being installed. |
244 virtual void ShowThemeInstallBubble() = 0; | 244 virtual void ShowThemeInstallBubble() = 0; |
245 | 245 |
246 // Shows the confirmation dialog box warning that the browser is closing with | 246 // Shows the confirmation dialog box warning that the browser is closing with |
247 // in-progress downloads. | 247 // in-progress downloads. |
248 // This method should call Browser::InProgressDownloadResponse once the user | 248 // This method should call Browser::InProgressDownloadResponse once the user |
249 // has confirmed. | 249 // has confirmed. |
250 virtual void ConfirmBrowserCloseWithPendingDownloads() = 0; | 250 virtual void ConfirmBrowserCloseWithPendingDownloads() = 0; |
251 | 251 |
252 // Shows a dialog box with HTML content, e.g. for Gears. |parent_window| is | 252 // Shows a dialog box with HTML content. |parent_window| is the window the |
253 // the window the dialog should be opened modal to and is a native window | 253 // dialog should be opened modal to and is a native window handle. |
254 // handle. | |
255 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 254 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
256 gfx::NativeWindow parent_window) = 0; | 255 gfx::NativeWindow parent_window) = 0; |
257 | 256 |
258 // BrowserThemeProvider calls this when a user has changed his or her theme, | 257 // BrowserThemeProvider calls this when a user has changed his or her theme, |
259 // indicating that it's time to redraw everything. | 258 // indicating that it's time to redraw everything. |
260 virtual void UserChangedTheme() = 0; | 259 virtual void UserChangedTheme() = 0; |
261 | 260 |
262 // Get extra vertical height that the render view should add to its requests | 261 // Get extra vertical height that the render view should add to its requests |
263 // to webkit. This can help prevent sending extraneous layout/repaint requests | 262 // to webkit. This can help prevent sending extraneous layout/repaint requests |
264 // when the delegate is in the process of resizing the tab contents view (e.g. | 263 // when the delegate is in the process of resizing the tab contents view (e.g. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 374 |
376 // Returns the ToolbarView. | 375 // Returns the ToolbarView. |
377 virtual ToolbarView* GetToolbarView() const = 0; | 376 virtual ToolbarView* GetToolbarView() const = 0; |
378 #endif | 377 #endif |
379 | 378 |
380 protected: | 379 protected: |
381 virtual ~BrowserWindowTesting() {} | 380 virtual ~BrowserWindowTesting() {} |
382 }; | 381 }; |
383 | 382 |
384 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 383 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |