Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / sync / profile_signin_confirmation_helper.h
blobd0d0c21cd12d54c9794221db4bb3fdde0f5cac08
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_
6 #define CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_
8 #include "base/callback.h"
9 #include "third_party/skia/include/core/SkColor.h"
11 class Profile;
13 namespace ui {
15 // Blend parameters for the dialog prompt bar.
16 const SkAlpha kSigninConfirmationPromptBarBackgroundAlpha = 0x0A;
17 const SkAlpha kSigninConfirmationPromptBarBorderAlpha = 0x1F;
19 // Create slightly different colors for the dialog prompt bar.
20 SkColor GetSigninConfirmationPromptBarColor(SkAlpha alpha);
22 // Determines whether the browser has ever been shutdown since the
23 // profile was created.
24 bool HasBeenShutdown(Profile* profile);
26 // Determines whether there are any synced extensions installed (that
27 // shouldn't be ignored).
28 bool HasSyncedExtensions(Profile* profile);
30 // Determines whether the user should be prompted to create a new
31 // profile before signin.
32 void CheckShouldPromptForNewProfile(
33 Profile* profile,
34 const base::Callback<void(bool)>& cb);
36 // Handles user input from confirmation dialog.
37 class ProfileSigninConfirmationDelegate {
38 public:
39 virtual void OnCancelSignin() = 0;
40 virtual void OnContinueSignin() = 0;
41 virtual void OnSigninWithNewProfile() = 0;
44 } // namespace ui
46 #endif // CHROME_BROWSER_UI_SYNC_PROFILE_SIGNIN_CONFIRMATION_HELPER_H_