| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PASSWORDS_PASSWORD_DIALOG_PROMPTS_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_PROMPTS_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_PROMPTS_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_PROMPTS_H_ |
| 7 | 7 |
| 8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 class WebContents; | 11 class WebContents; |
| 12 } | 12 } |
| 13 | 13 |
| 14 class PasswordDialogController; | 14 class PasswordDialogController; |
| 15 | 15 |
| 16 // Layout constants | 16 // Layout constants |
| 17 const int kDesiredWidth = 370; | 17 const int kDesiredWidth = 370; |
| 18 | 18 |
| 19 // The default inset from BubbleFrameView. | 19 // The default inset from BubbleFrameView. |
| 20 const int kTitleTopInset = 12; | 20 const int kTitleTopInset = 12; |
| 21 | 21 |
| 22 // The color of the content in the autosign-in first run prompt. | 22 // The color of the content in the autosign-in first run prompt. |
| 23 const SkColor kAutoSigninTextColor = SkColorSetRGB(0x64, 0x64, 0x64); | 23 const SkColor kAutoSigninTextColor = SkColorSetRGB(0x64, 0x64, 0x64); |
| 24 | 24 |
| 25 // The hover color of the account chooser. |
| 26 const SkColor kButtonHoverColor = SkColorSetRGB(0xEA, 0xEA, 0xEA); |
| 27 |
| 25 // A platform-independent interface for the account chooser dialog. | 28 // A platform-independent interface for the account chooser dialog. |
| 26 class AccountChooserPrompt { | 29 class AccountChooserPrompt { |
| 27 public: | 30 public: |
| 28 // Shows the account chooser dialog. | 31 // Shows the account chooser dialog. |
| 29 virtual void ShowAccountChooser() = 0; | 32 virtual void ShowAccountChooser() = 0; |
| 30 | 33 |
| 31 // Notifies the UI element that it's controller is no longer managing the UI | 34 // Notifies the UI element that it's controller is no longer managing the UI |
| 32 // element. The dialog should close. | 35 // element. The dialog should close. |
| 33 virtual void ControllerGone() = 0; | 36 virtual void ControllerGone() = 0; |
| 34 protected: | 37 protected: |
| (...skipping 15 matching lines...) Expand all Loading... |
| 50 | 53 |
| 51 // Factory function for AccountChooserPrompt on desktop platforms. | 54 // Factory function for AccountChooserPrompt on desktop platforms. |
| 52 AccountChooserPrompt* CreateAccountChooserPromptView( | 55 AccountChooserPrompt* CreateAccountChooserPromptView( |
| 53 PasswordDialogController* controller, content::WebContents* web_contents); | 56 PasswordDialogController* controller, content::WebContents* web_contents); |
| 54 | 57 |
| 55 // Factory function for AutoSigninFirstRunPrompt on desktop platforms. | 58 // Factory function for AutoSigninFirstRunPrompt on desktop platforms. |
| 56 AutoSigninFirstRunPrompt* CreateAutoSigninPromptView( | 59 AutoSigninFirstRunPrompt* CreateAutoSigninPromptView( |
| 57 PasswordDialogController* controller, content::WebContents* web_contents); | 60 PasswordDialogController* controller, content::WebContents* web_contents); |
| 58 | 61 |
| 59 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_PROMPTS_H_ | 62 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_DIALOG_PROMPTS_H_ |
| OLD | NEW |