| 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 AVATAR_BUBBLE_MODE_CONFIRM_SIGNIN, |
| 378 AVATAR_BUBBLE_MODE_SHOW_ERROR, |
| 378 }; | 379 }; |
| 379 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 380 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
| 380 const signin::ManageAccountsParams& manage_accounts_params) = 0; | 381 const signin::ManageAccountsParams& manage_accounts_params) = 0; |
| 381 | 382 |
| 382 // Show bubble for password generation positioned relative to |rect|. The | 383 // Show bubble for password generation positioned relative to |rect|. The |
| 383 // subclasses implementing this interface do not own the |password_generator| | 384 // subclasses implementing this interface do not own the |password_generator| |
| 384 // object which is passed to generate the password. |form| is the form that | 385 // object which is passed to generate the password. |form| is the form that |
| 385 // contains the password field that the bubble will be associated with. | 386 // contains the password field that the bubble will be associated with. |
| 386 virtual void ShowPasswordGenerationBubble( | 387 virtual void ShowPasswordGenerationBubble( |
| 387 const gfx::Rect& rect, | 388 const gfx::Rect& rect, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 410 virtual void ShowBrowserActionPopup( | 411 virtual void ShowBrowserActionPopup( |
| 411 const extensions::Extension* extension) = 0; | 412 const extensions::Extension* extension) = 0; |
| 412 | 413 |
| 413 protected: | 414 protected: |
| 414 friend class BrowserCloseManager; | 415 friend class BrowserCloseManager; |
| 415 friend class BrowserView; | 416 friend class BrowserView; |
| 416 virtual void DestroyBrowser() = 0; | 417 virtual void DestroyBrowser() = 0; |
| 417 }; | 418 }; |
| 418 | 419 |
| 419 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 420 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |