| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 virtual void ConfirmBrowserCloseWithPendingDownloads( | 297 virtual void ConfirmBrowserCloseWithPendingDownloads( |
| 298 int download_count, | 298 int download_count, |
| 299 Browser::DownloadClosePreventionType dialog_type, | 299 Browser::DownloadClosePreventionType dialog_type, |
| 300 bool app_modal, | 300 bool app_modal, |
| 301 const base::Callback<void(bool)>& callback) = 0; | 301 const base::Callback<void(bool)>& callback) = 0; |
| 302 | 302 |
| 303 // ThemeService calls this when a user has changed their theme, indicating | 303 // ThemeService calls this when a user has changed their theme, indicating |
| 304 // that it's time to redraw everything. | 304 // that it's time to redraw everything. |
| 305 virtual void UserChangedTheme() = 0; | 305 virtual void UserChangedTheme() = 0; |
| 306 | 306 |
| 307 // Shows Page Info using the specified information. |virtual_url| | 307 // Shows Page Info using the specified information. |virtual_url| is the |
| 308 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL | 308 // virtual url of the page/frame the info applies to, and |security_info| |
| 309 // information for that page/frame. If |show_history| is true, a section | 309 // contains the security state for that page/frame. |
| 310 // showing how many times that URL has been visited is added to the page info. | |
| 311 virtual void ShowPageInfo( | 310 virtual void ShowPageInfo( |
| 312 Profile* profile, | 311 Profile* profile, |
| 313 content::WebContents* web_contents, | 312 content::WebContents* web_contents, |
| 314 const GURL& virtual_url, | 313 const GURL& virtual_url, |
| 315 const security_state::SecurityInfo& security_info) = 0; | 314 const security_state::SecurityInfo& security_info) = 0; |
| 316 | 315 |
| 317 // Shows the app menu (for accessibility). | 316 // Shows the app menu (for accessibility). |
| 318 virtual void ShowAppMenu() = 0; | 317 virtual void ShowAppMenu() = 0; |
| 319 | 318 |
| 320 // Allows the BrowserWindow object to handle the specified keyboard event | 319 // Allows the BrowserWindow object to handle the specified keyboard event |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 virtual std::string GetWorkspace() const = 0; | 388 virtual std::string GetWorkspace() const = 0; |
| 390 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 389 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
| 391 | 390 |
| 392 protected: | 391 protected: |
| 393 friend class BrowserCloseManager; | 392 friend class BrowserCloseManager; |
| 394 friend class BrowserView; | 393 friend class BrowserView; |
| 395 virtual void DestroyBrowser() = 0; | 394 virtual void DestroyBrowser() = 0; |
| 396 }; | 395 }; |
| 397 | 396 |
| 398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 397 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |