| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ | 6 #define CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "third_party/skia/include/core/SkColor.h" |
| 9 | 10 |
| 10 class Profile; | 11 class Profile; |
| 11 | 12 |
| 12 namespace ui { | 13 namespace ui { |
| 13 | 14 |
| 15 // Blend parameters for the dialog prompt bar. |
| 16 const SkAlpha kSigninConfirmationPromptBarBackgroundAlpha = 0x0A; |
| 17 const SkAlpha kSigninConfirmationPromptBarBorderAlpha = 0x1F; |
| 18 |
| 19 // Create slightly different colors for the dialog prompt bar. |
| 20 SkColor GetSigninConfirmationPromptBarColor(SkAlpha alpha); |
| 21 |
| 14 // Determines whether the browser has ever been shutdown since the | 22 // Determines whether the browser has ever been shutdown since the |
| 15 // profile was created. | 23 // profile was created. |
| 16 bool HasBeenShutdown(Profile* profile); | 24 bool HasBeenShutdown(Profile* profile); |
| 17 | 25 |
| 18 // Determines whether the user should be prompted to create a new | 26 // Determines whether the user should be prompted to create a new |
| 19 // profile before signin. | 27 // profile before signin. |
| 20 void CheckShouldPromptForNewProfile( | 28 void CheckShouldPromptForNewProfile( |
| 21 Profile* profile, | 29 Profile* profile, |
| 22 const base::Callback<void(bool)>& cb); | 30 const base::Callback<void(bool)>& cb); |
| 23 | 31 |
| 24 } // namespace ui | 32 } // namespace ui |
| 25 | 33 |
| 26 #endif // CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ | 34 #endif // CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_ |
| OLD | NEW |