| 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/lifetime/browser_close_manager.h" | 10 #include "chrome/browser/lifetime/browser_close_manager.h" |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 virtual void ConfirmBrowserCloseWithPendingDownloads( | 276 virtual void ConfirmBrowserCloseWithPendingDownloads( |
| 277 int download_count, | 277 int download_count, |
| 278 Browser::DownloadClosePreventionType dialog_type, | 278 Browser::DownloadClosePreventionType dialog_type, |
| 279 bool app_modal, | 279 bool app_modal, |
| 280 const base::Callback<void(bool)>& callback) = 0; | 280 const base::Callback<void(bool)>& callback) = 0; |
| 281 | 281 |
| 282 // ThemeService calls this when a user has changed his or her theme, | 282 // ThemeService calls this when a user has changed his or her theme, |
| 283 // indicating that it's time to redraw everything. | 283 // indicating that it's time to redraw everything. |
| 284 virtual void UserChangedTheme() = 0; | 284 virtual void UserChangedTheme() = 0; |
| 285 | 285 |
| 286 // Shows the website settings using the specified information. |url| is the | 286 // Shows the website settings using the specified information. |virtual_url| |
| 287 // url of the page/frame the info applies to, |ssl| is the SSL information for | 287 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL |
| 288 // that page/frame. If |show_history| is true, a section showing how many | 288 // information for that page/frame. If |show_history| is true, a section |
| 289 // times that URL has been visited is added to the page info. | 289 // showing how many times that URL has been visited is added to the page info. |
| 290 virtual void ShowWebsiteSettings( | 290 virtual void ShowWebsiteSettings( |
| 291 Profile* profile, | 291 Profile* profile, |
| 292 content::WebContents* web_contents, | 292 content::WebContents* web_contents, |
| 293 const GURL& url, | 293 const GURL& virtual_url, |
| 294 const security_state::SecurityStateModel::SecurityInfo& | 294 const security_state::SecurityStateModel::SecurityInfo& |
| 295 security_info) = 0; | 295 security_info) = 0; |
| 296 | 296 |
| 297 // Shows the app menu (for accessibility). | 297 // Shows the app menu (for accessibility). |
| 298 virtual void ShowAppMenu() = 0; | 298 virtual void ShowAppMenu() = 0; |
| 299 | 299 |
| 300 // Allows the BrowserWindow object to handle the specified keyboard event | 300 // Allows the BrowserWindow object to handle the specified keyboard event |
| 301 // before sending it to the renderer. | 301 // before sending it to the renderer. |
| 302 // Returns true if the |event| was handled. Otherwise, if the |event| would | 302 // Returns true if the |event| was handled. Otherwise, if the |event| would |
| 303 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, | 303 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // currently resides in. | 382 // currently resides in. |
| 383 virtual std::string GetWorkspace() const = 0; | 383 virtual std::string GetWorkspace() const = 0; |
| 384 | 384 |
| 385 protected: | 385 protected: |
| 386 friend class BrowserCloseManager; | 386 friend class BrowserCloseManager; |
| 387 friend class BrowserView; | 387 friend class BrowserView; |
| 388 virtual void DestroyBrowser() = 0; | 388 virtual void DestroyBrowser() = 0; |
| 389 }; | 389 }; |
| 390 | 390 |
| 391 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 391 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |