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_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/app_list/signin_delegate.h" | 10 #include "ui/app_list/signin_delegate.h" |
11 | 11 |
12 class Profile; | 12 class Profile; |
13 | 13 |
14 class ChromeSigninDelegate : public app_list::SigninDelegate { | 14 class ChromeSigninDelegate : public app_list::SigninDelegate { |
15 public: | 15 public: |
16 explicit ChromeSigninDelegate(Profile* profile); | 16 explicit ChromeSigninDelegate(Profile* profile); |
17 virtual ~ChromeSigninDelegate(); | |
18 void SetProfile(Profile* profile); | |
17 | 19 |
18 private: | 20 private: |
19 virtual ~ChromeSigninDelegate(); | |
20 | 21 |
tapted
2013/09/11 05:50:26
nit: no blank line here
calamity
2013/09/13 18:02:35
Done.
| |
21 bool IsActiveSignin(); | 22 bool IsActiveSignin(); |
tapted
2013/09/11 05:50:26
hm - is this defined/used? maybe delete while you'
calamity
2013/09/13 18:02:35
Done.
| |
22 void FinishSignin(); | 23 void FinishSignin(); |
23 | 24 |
24 // Overridden from app_list::SigninDelegate: | 25 // Overridden from app_list::SigninDelegate: |
25 virtual bool NeedSignin() OVERRIDE; | 26 virtual bool NeedSignin() OVERRIDE; |
26 virtual void ShowSignin() OVERRIDE; | 27 virtual void ShowSignin() OVERRIDE; |
27 virtual void OpenLearnMore() OVERRIDE; | 28 virtual void OpenLearnMore() OVERRIDE; |
28 virtual void OpenSettings() OVERRIDE; | 29 virtual void OpenSettings() OVERRIDE; |
29 virtual string16 GetSigninHeading() OVERRIDE; | 30 virtual string16 GetSigninHeading() OVERRIDE; |
30 virtual string16 GetSigninText() OVERRIDE; | 31 virtual string16 GetSigninText() OVERRIDE; |
31 virtual string16 GetSigninButtonText() OVERRIDE; | 32 virtual string16 GetSigninButtonText() OVERRIDE; |
32 virtual string16 GetLearnMoreLinkText() OVERRIDE; | 33 virtual string16 GetLearnMoreLinkText() OVERRIDE; |
33 virtual string16 GetSettingsLinkText() OVERRIDE; | 34 virtual string16 GetSettingsLinkText() OVERRIDE; |
34 | 35 |
35 Profile* profile_; | 36 Profile* profile_; |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate); | 38 DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate); |
38 }; | 39 }; |
39 | 40 |
40 #endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ | 41 #endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ |
OLD | NEW |