| 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" |
| 11 #include "chrome/browser/signin/chrome_signin_helper.h" | 11 #include "chrome/browser/signin/chrome_signin_helper.h" |
| 12 #include "chrome/browser/ssl/security_state_model.h" | |
| 13 #include "chrome/browser/translate/chrome_translate_client.h" | 12 #include "chrome/browser/translate/chrome_translate_client.h" |
| 14 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
| 17 #include "chrome/browser/ui/host_desktop.h" | 16 #include "chrome/browser/ui/host_desktop.h" |
| 18 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 17 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| 19 #include "components/content_settings/core/common/content_settings_types.h" | 18 #include "components/content_settings/core/common/content_settings_types.h" |
| 19 #include "components/security_state/security_state_model.h" |
| 20 #include "components/signin/core/browser/signin_header_helper.h" | 20 #include "components/signin/core/browser/signin_header_helper.h" |
| 21 #include "components/translate/core/common/translate_errors.h" | 21 #include "components/translate/core/common/translate_errors.h" |
| 22 #include "ui/base/base_window.h" | 22 #include "ui/base/base_window.h" |
| 23 #include "ui/base/window_open_disposition.h" | 23 #include "ui/base/window_open_disposition.h" |
| 24 #include "ui/gfx/native_widget_types.h" | 24 #include "ui/gfx/native_widget_types.h" |
| 25 | 25 |
| 26 class Browser; | 26 class Browser; |
| 27 class DownloadShelf; | 27 class DownloadShelf; |
| 28 class ExclusiveAccessContext; | 28 class ExclusiveAccessContext; |
| 29 class FindBar; | 29 class FindBar; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 virtual void UserChangedTheme() = 0; | 304 virtual void UserChangedTheme() = 0; |
| 305 | 305 |
| 306 // Shows the website settings using the specified information. |url| is the | 306 // Shows the website settings using the specified information. |url| is the |
| 307 // url of the page/frame the info applies to, |ssl| is the SSL information for | 307 // url of the page/frame the info applies to, |ssl| is the SSL information for |
| 308 // that page/frame. If |show_history| is true, a section showing how many | 308 // that page/frame. If |show_history| is true, a section showing how many |
| 309 // times that URL has been visited is added to the page info. | 309 // times that URL has been visited is added to the page info. |
| 310 virtual void ShowWebsiteSettings( | 310 virtual void ShowWebsiteSettings( |
| 311 Profile* profile, | 311 Profile* profile, |
| 312 content::WebContents* web_contents, | 312 content::WebContents* web_contents, |
| 313 const GURL& url, | 313 const GURL& url, |
| 314 const SecurityStateModel::SecurityInfo& security_info) = 0; | 314 const security_state::SecurityStateModel::SecurityInfo& |
| 315 security_info) = 0; |
| 315 | 316 |
| 316 // Shows the app menu (for accessibility). | 317 // Shows the app menu (for accessibility). |
| 317 virtual void ShowAppMenu() = 0; | 318 virtual void ShowAppMenu() = 0; |
| 318 | 319 |
| 319 // Allows the BrowserWindow object to handle the specified keyboard event | 320 // Allows the BrowserWindow object to handle the specified keyboard event |
| 320 // before sending it to the renderer. | 321 // before sending it to the renderer. |
| 321 // Returns true if the |event| was handled. Otherwise, if the |event| would | 322 // Returns true if the |event| was handled. Otherwise, if the |event| would |
| 322 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, | 323 // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut, |
| 323 // |*is_keyboard_shortcut| should be set to true. | 324 // |*is_keyboard_shortcut| should be set to true. |
| 324 virtual bool PreHandleKeyboardEvent( | 325 virtual bool PreHandleKeyboardEvent( |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 // Returns object implementing ExclusiveAccessContext interface. | 409 // Returns object implementing ExclusiveAccessContext interface. |
| 409 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 410 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 410 | 411 |
| 411 protected: | 412 protected: |
| 412 friend class BrowserCloseManager; | 413 friend class BrowserCloseManager; |
| 413 friend class BrowserView; | 414 friend class BrowserView; |
| 414 virtual void DestroyBrowser() = 0; | 415 virtual void DestroyBrowser() = 0; |
| 415 }; | 416 }; |
| 416 | 417 |
| 417 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |