| 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/browser/ui/bookmarks/bookmark_bar.h" | 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 10 #include "chrome/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 virtual void ShowThemeInstallBubble() = 0; | 237 virtual void ShowThemeInstallBubble() = 0; |
| 238 | 238 |
| 239 // Shows the confirmation dialog box warning that the browser is closing with | 239 // Shows the confirmation dialog box warning that the browser is closing with |
| 240 // in-progress downloads. | 240 // in-progress downloads. |
| 241 // This method should call Browser::InProgressDownloadResponse once the user | 241 // This method should call Browser::InProgressDownloadResponse once the user |
| 242 // has confirmed. | 242 // has confirmed. |
| 243 virtual void ConfirmBrowserCloseWithPendingDownloads() = 0; | 243 virtual void ConfirmBrowserCloseWithPendingDownloads() = 0; |
| 244 | 244 |
| 245 // Shows a dialog box with HTML content. |parent_window| is the window the | 245 // Shows a dialog box with HTML content. |parent_window| is the window the |
| 246 // dialog should be opened modal to and is a native window handle. | 246 // dialog should be opened modal to and is a native window handle. |
| 247 virtual void ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 247 virtual gfx::NativeWindow ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
| 248 gfx::NativeWindow parent_window) = 0; | 248 gfx::NativeWindow parent_window) = 0; |
| 249 | 249 |
| 250 // ThemeService calls this when a user has changed his or her theme, | 250 // ThemeService calls this when a user has changed his or her theme, |
| 251 // indicating that it's time to redraw everything. | 251 // indicating that it's time to redraw everything. |
| 252 virtual void UserChangedTheme() = 0; | 252 virtual void UserChangedTheme() = 0; |
| 253 | 253 |
| 254 // Get extra vertical height that the render view should add to its requests | 254 // Get extra vertical height that the render view should add to its requests |
| 255 // to webkit. This can help prevent sending extraneous layout/repaint requests | 255 // to webkit. This can help prevent sending extraneous layout/repaint requests |
| 256 // when the delegate is in the process of resizing the tab contents view (e.g. | 256 // when the delegate is in the process of resizing the tab contents view (e.g. |
| 257 // during infobar animations). | 257 // during infobar animations). |
| 258 virtual int GetExtraRenderViewHeight() const = 0; | 258 virtual int GetExtraRenderViewHeight() const = 0; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 // Returns the ToolbarView. | 379 // Returns the ToolbarView. |
| 380 virtual ToolbarView* GetToolbarView() const = 0; | 380 virtual ToolbarView* GetToolbarView() const = 0; |
| 381 #endif | 381 #endif |
| 382 | 382 |
| 383 protected: | 383 protected: |
| 384 virtual ~BrowserWindowTesting() {} | 384 virtual ~BrowserWindowTesting() {} |
| 385 }; | 385 }; |
| 386 | 386 |
| 387 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 387 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |