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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 const gfx::Rect& rect) = 0; | 367 const gfx::Rect& rect) = 0; |
368 | 368 |
369 // Shows the avatar bubble on the window frame off of the avatar button with | 369 // Shows the avatar bubble on the window frame off of the avatar button with |
370 // the given mode. The Service Type specified by GAIA is provided as well. | 370 // the given mode. The Service Type specified by GAIA is provided as well. |
371 enum AvatarBubbleMode { | 371 enum AvatarBubbleMode { |
372 AVATAR_BUBBLE_MODE_DEFAULT, | 372 AVATAR_BUBBLE_MODE_DEFAULT, |
373 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 373 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
374 AVATAR_BUBBLE_MODE_SIGNIN, | 374 AVATAR_BUBBLE_MODE_SIGNIN, |
375 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, | 375 AVATAR_BUBBLE_MODE_ADD_ACCOUNT, |
376 AVATAR_BUBBLE_MODE_REAUTH, | 376 AVATAR_BUBBLE_MODE_REAUTH, |
| 377 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
377 }; | 378 }; |
378 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 379 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
379 const signin::ManageAccountsParams& manage_accounts_params) = 0; | 380 const signin::ManageAccountsParams& manage_accounts_params) = 0; |
380 | 381 |
381 // Show bubble for password generation positioned relative to |rect|. The | 382 // Show bubble for password generation positioned relative to |rect|. The |
382 // subclasses implementing this interface do not own the |password_generator| | 383 // subclasses implementing this interface do not own the |password_generator| |
383 // object which is passed to generate the password. |form| is the form that | 384 // object which is passed to generate the password. |form| is the form that |
384 // contains the password field that the bubble will be associated with. | 385 // contains the password field that the bubble will be associated with. |
385 virtual void ShowPasswordGenerationBubble( | 386 virtual void ShowPasswordGenerationBubble( |
386 const gfx::Rect& rect, | 387 const gfx::Rect& rect, |
(...skipping 22 matching lines...) Expand all Loading... |
409 virtual void ShowBrowserActionPopup( | 410 virtual void ShowBrowserActionPopup( |
410 const extensions::Extension* extension) = 0; | 411 const extensions::Extension* extension) = 0; |
411 | 412 |
412 protected: | 413 protected: |
413 friend class BrowserCloseManager; | 414 friend class BrowserCloseManager; |
414 friend class BrowserView; | 415 friend class BrowserView; |
415 virtual void DestroyBrowser() = 0; | 416 virtual void DestroyBrowser() = 0; |
416 }; | 417 }; |
417 | 418 |
418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 419 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |