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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 virtual void ConfirmBrowserCloseWithPendingDownloads( | 287 virtual void ConfirmBrowserCloseWithPendingDownloads( |
288 int download_count, | 288 int download_count, |
289 Browser::DownloadClosePreventionType dialog_type, | 289 Browser::DownloadClosePreventionType dialog_type, |
290 bool app_modal, | 290 bool app_modal, |
291 const base::Callback<void(bool)>& callback) = 0; | 291 const base::Callback<void(bool)>& callback) = 0; |
292 | 292 |
293 // ThemeService calls this when a user has changed their theme, indicating | 293 // ThemeService calls this when a user has changed their theme, indicating |
294 // that it's time to redraw everything. | 294 // that it's time to redraw everything. |
295 virtual void UserChangedTheme() = 0; | 295 virtual void UserChangedTheme() = 0; |
296 | 296 |
297 // Shows the website settings using the specified information. |virtual_url| | 297 // Shows Page Info using the specified information. |virtual_url| |
298 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL | 298 // is the virtual url of the page/frame the info applies to, |ssl| is the SSL |
299 // information for that page/frame. If |show_history| is true, a section | 299 // information for that page/frame. If |show_history| is true, a section |
300 // showing how many times that URL has been visited is added to the page info. | 300 // showing how many times that URL has been visited is added to the page info. |
301 virtual void ShowWebsiteSettings( | 301 virtual void ShowPageInfo( |
302 Profile* profile, | 302 Profile* profile, |
303 content::WebContents* web_contents, | 303 content::WebContents* web_contents, |
304 const GURL& virtual_url, | 304 const GURL& virtual_url, |
305 const security_state::SecurityInfo& security_info) = 0; | 305 const security_state::SecurityInfo& security_info) = 0; |
306 | 306 |
307 // Shows the app menu (for accessibility). | 307 // Shows the app menu (for accessibility). |
308 virtual void ShowAppMenu() = 0; | 308 virtual void ShowAppMenu() = 0; |
309 | 309 |
310 // Allows the BrowserWindow object to handle the specified keyboard event | 310 // Allows the BrowserWindow object to handle the specified keyboard event |
311 // before sending it to the renderer. | 311 // before sending it to the renderer. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 virtual std::string GetWorkspace() const = 0; | 379 virtual std::string GetWorkspace() const = 0; |
380 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 380 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
381 | 381 |
382 protected: | 382 protected: |
383 friend class BrowserCloseManager; | 383 friend class BrowserCloseManager; |
384 friend class BrowserView; | 384 friend class BrowserView; |
385 virtual void DestroyBrowser() = 0; | 385 virtual void DestroyBrowser() = 0; |
386 }; | 386 }; |
387 | 387 |
388 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 388 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |