| 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/translate/chrome_translate_client.h" | 12 #include "chrome/browser/translate/chrome_translate_client.h" |
| 13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
| 16 #include "chrome/browser/ui/host_desktop.h" | 16 #include "chrome/browser/ui/host_desktop.h" |
| 17 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 17 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
| 18 #include "chrome/common/features.h" |
| 18 #include "components/content_settings/core/common/content_settings_types.h" | 19 #include "components/content_settings/core/common/content_settings_types.h" |
| 19 #include "components/security_state/security_state_model.h" | 20 #include "components/security_state/security_state_model.h" |
| 20 #include "components/signin/core/browser/signin_header_helper.h" | 21 #include "components/signin/core/browser/signin_header_helper.h" |
| 21 #include "components/translate/core/common/translate_errors.h" | 22 #include "components/translate/core/common/translate_errors.h" |
| 22 #include "ui/base/base_window.h" | 23 #include "ui/base/base_window.h" |
| 23 #include "ui/base/window_open_disposition.h" | 24 #include "ui/base/window_open_disposition.h" |
| 24 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
| 25 | 26 |
| 26 class Browser; | 27 class Browser; |
| 27 class DownloadShelf; | 28 class DownloadShelf; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // Shows the translate bubble. | 251 // Shows the translate bubble. |
| 251 // | 252 // |
| 252 // |is_user_gesture| is true when the bubble is shown on the user's deliberate | 253 // |is_user_gesture| is true when the bubble is shown on the user's deliberate |
| 253 // action. | 254 // action. |
| 254 virtual void ShowTranslateBubble( | 255 virtual void ShowTranslateBubble( |
| 255 content::WebContents* contents, | 256 content::WebContents* contents, |
| 256 translate::TranslateStep step, | 257 translate::TranslateStep step, |
| 257 translate::TranslateErrors::Type error_type, | 258 translate::TranslateErrors::Type error_type, |
| 258 bool is_user_gesture) = 0; | 259 bool is_user_gesture) = 0; |
| 259 | 260 |
| 260 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 261 #if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN) |
| 261 enum OneClickSigninBubbleType { | 262 enum OneClickSigninBubbleType { |
| 262 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, | 263 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, |
| 263 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, | 264 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, |
| 264 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG | 265 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 // Callback type used with the ShowOneClickSigninBubble() method. If the | 268 // Callback type used with the ShowOneClickSigninBubble() method. If the |
| 268 // user chooses to accept the sign in, the callback is called to start the | 269 // user chooses to accept the sign in, the callback is called to start the |
| 269 // sync process. | 270 // sync process. |
| 270 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> | 271 typedef base::Callback<void(OneClickSigninSyncStarter::StartSyncMode)> |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 // Returns object implementing ExclusiveAccessContext interface. | 388 // Returns object implementing ExclusiveAccessContext interface. |
| 388 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 389 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 389 | 390 |
| 390 protected: | 391 protected: |
| 391 friend class BrowserCloseManager; | 392 friend class BrowserCloseManager; |
| 392 friend class BrowserView; | 393 friend class BrowserView; |
| 393 virtual void DestroyBrowser() = 0; | 394 virtual void DestroyBrowser() = 0; |
| 394 }; | 395 }; |
| 395 | 396 |
| 396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 397 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |