| 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 ChromeSigninDelegate(); |
| 17 virtual ~ChromeSigninDelegate(); |
| 18 void SetProfile(Profile* profile); |
| 17 | 19 |
| 18 private: | 20 private: |
| 19 virtual ~ChromeSigninDelegate(); | |
| 20 | |
| 21 bool IsActiveSignin(); | |
| 22 void FinishSignin(); | |
| 23 | |
| 24 // Overridden from app_list::SigninDelegate: | 21 // Overridden from app_list::SigninDelegate: |
| 25 virtual bool NeedSignin() OVERRIDE; | 22 virtual bool NeedSignin() OVERRIDE; |
| 26 virtual void ShowSignin() OVERRIDE; | 23 virtual void ShowSignin() OVERRIDE; |
| 27 virtual void OpenLearnMore() OVERRIDE; | 24 virtual void OpenLearnMore() OVERRIDE; |
| 28 virtual void OpenSettings() OVERRIDE; | 25 virtual void OpenSettings() OVERRIDE; |
| 29 virtual string16 GetSigninHeading() OVERRIDE; | 26 virtual string16 GetSigninHeading() OVERRIDE; |
| 30 virtual string16 GetSigninText() OVERRIDE; | 27 virtual string16 GetSigninText() OVERRIDE; |
| 31 virtual string16 GetSigninButtonText() OVERRIDE; | 28 virtual string16 GetSigninButtonText() OVERRIDE; |
| 32 virtual string16 GetLearnMoreLinkText() OVERRIDE; | 29 virtual string16 GetLearnMoreLinkText() OVERRIDE; |
| 33 virtual string16 GetSettingsLinkText() OVERRIDE; | 30 virtual string16 GetSettingsLinkText() OVERRIDE; |
| 34 | 31 |
| 35 Profile* profile_; | 32 Profile* profile_; |
| 36 | 33 |
| 37 DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate); | 34 DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate); |
| 38 }; | 35 }; |
| 39 | 36 |
| 40 #endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ | 37 #endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ |
| OLD | NEW |