Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: chrome/browser/ui/sync/profile_signin_confirmation_helper.h

Issue 14846020: Add Views implementation of ProfileSigninConfirmationDialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nits Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_starter.cc ('k') | chrome/browser/ui/sync/profile_signin_confirmation_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698