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 "chrome/browser/lifetime/browser_close_manager.h" | 9 #include "chrome/browser/lifetime/browser_close_manager.h" |
10 #include "chrome/browser/signin/signin_header_helper.h" | 10 #include "chrome/browser/signin/signin_header_helper.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Shows the Bookmark App bubble. | 218 // Shows the Bookmark App bubble. |
219 // See Extension::InitFromValueFlags::FROM_BOOKMARK for a description of | 219 // See Extension::InitFromValueFlags::FROM_BOOKMARK for a description of |
220 // bookmark apps. | 220 // bookmark apps. |
221 // | 221 // |
222 // |web_app_info| is the WebApplicationInfo being converted into an app. | 222 // |web_app_info| is the WebApplicationInfo being converted into an app. |
223 // |extension_id| is the id of the bookmark app. | 223 // |extension_id| is the id of the bookmark app. |
224 virtual void ShowBookmarkAppBubble(const WebApplicationInfo& web_app_info, | 224 virtual void ShowBookmarkAppBubble(const WebApplicationInfo& web_app_info, |
225 const std::string& extension_id) = 0; | 225 const std::string& extension_id) = 0; |
226 | 226 |
227 // Shows the translate bubble. | 227 // Shows the translate bubble. |
228 virtual void ShowTranslateBubble(content::WebContents* contents, | 228 virtual void ShowTranslateBubble( |
229 translate::TranslateStep step, | 229 content::WebContents* contents, |
230 TranslateErrors::Type error_type) = 0; | 230 translate::TranslateStep step, |
| 231 translate::TranslateErrors::Type error_type) = 0; |
231 | 232 |
232 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 233 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
233 enum OneClickSigninBubbleType { | 234 enum OneClickSigninBubbleType { |
234 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, | 235 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, |
235 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, | 236 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, |
236 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG | 237 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG |
237 }; | 238 }; |
238 | 239 |
239 // Callback type used with the ShowOneClickSigninBubble() method. If the | 240 // Callback type used with the ShowOneClickSigninBubble() method. If the |
240 // user chooses to accept the sign in, the callback is called to start the | 241 // user chooses to accept the sign in, the callback is called to start the |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 virtual void ShowBrowserActionPopup( | 405 virtual void ShowBrowserActionPopup( |
405 const extensions::Extension* extension) = 0; | 406 const extensions::Extension* extension) = 0; |
406 | 407 |
407 protected: | 408 protected: |
408 friend class BrowserCloseManager; | 409 friend class BrowserCloseManager; |
409 friend class BrowserView; | 410 friend class BrowserView; |
410 virtual void DestroyBrowser() = 0; | 411 virtual void DestroyBrowser() = 0; |
411 }; | 412 }; |
412 | 413 |
413 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 414 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |