| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 const gfx::Rect& rect) = 0; | 365 const gfx::Rect& rect) = 0; |
| 366 | 366 |
| 367 // Shows the avatar bubble on the window frame off of the avatar button with | 367 // Shows the avatar bubble on the window frame off of the avatar button with |
| 368 // the given mode. The Service Type specified by GAIA is provided as well. | 368 // the given mode. The Service Type specified by GAIA is provided as well. |
| 369 enum AvatarBubbleMode { | 369 enum AvatarBubbleMode { |
| 370 AVATAR_BUBBLE_MODE_DEFAULT, | 370 AVATAR_BUBBLE_MODE_DEFAULT, |
| 371 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, | 371 AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT, |
| 372 AVATAR_BUBBLE_MODE_SIGNIN, | 372 AVATAR_BUBBLE_MODE_SIGNIN, |
| 373 AVATAR_BUBBLE_MODE_REAUTH, | 373 AVATAR_BUBBLE_MODE_REAUTH, |
| 374 }; | 374 }; |
| 375 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 375 virtual void ShowAvatarBubbleFromAvatarButton( |
| 376 AvatarBubbleMode mode, |
| 376 signin::GAIAServiceType service_type) = 0; | 377 signin::GAIAServiceType service_type) = 0; |
| 377 | 378 |
| 378 // Show bubble for password generation positioned relative to |rect|. The | 379 // Show bubble for password generation positioned relative to |rect|. The |
| 379 // subclasses implementing this interface do not own the |password_generator| | 380 // subclasses implementing this interface do not own the |password_generator| |
| 380 // object which is passed to generate the password. |form| is the form that | 381 // object which is passed to generate the password. |form| is the form that |
| 381 // contains the password field that the bubble will be associated with. | 382 // contains the password field that the bubble will be associated with. |
| 382 virtual void ShowPasswordGenerationBubble( | 383 virtual void ShowPasswordGenerationBubble( |
| 383 const gfx::Rect& rect, | 384 const gfx::Rect& rect, |
| 384 const autofill::PasswordForm& form, | 385 const autofill::PasswordForm& form, |
| 385 autofill::PasswordGenerator* password_generator) = 0; | 386 autofill::PasswordGenerator* password_generator) = 0; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 438 |
| 438 // Returns the ToolbarView. | 439 // Returns the ToolbarView. |
| 439 virtual ToolbarView* GetToolbarView() const = 0; | 440 virtual ToolbarView* GetToolbarView() const = 0; |
| 440 #endif | 441 #endif |
| 441 | 442 |
| 442 protected: | 443 protected: |
| 443 virtual ~BrowserWindowTesting() {} | 444 virtual ~BrowserWindowTesting() {} |
| 444 }; | 445 }; |
| 445 | 446 |
| 446 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 447 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |