OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ | |
6 #define CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "ui/app_list/signin_delegate.h" | |
11 | |
12 class Profile; | |
13 | |
14 class ChromeSigninDelegate : public app_list::SigninDelegate { | |
15 public: | |
16 ChromeSigninDelegate(); | |
17 virtual ~ChromeSigninDelegate(); | |
18 void SetProfile(Profile* profile); | |
19 | |
20 private: | |
21 // Overridden from app_list::SigninDelegate: | |
22 virtual bool NeedSignin() OVERRIDE; | |
23 virtual void ShowSignin() OVERRIDE; | |
24 virtual void OpenLearnMore() OVERRIDE; | |
25 virtual void OpenSettings() OVERRIDE; | |
26 virtual base::string16 GetSigninHeading() OVERRIDE; | |
27 virtual base::string16 GetSigninText() OVERRIDE; | |
28 virtual base::string16 GetSigninButtonText() OVERRIDE; | |
29 virtual base::string16 GetLearnMoreLinkText() OVERRIDE; | |
30 virtual base::string16 GetSettingsLinkText() OVERRIDE; | |
31 | |
32 Profile* profile_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(ChromeSigninDelegate); | |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_UI_APP_LIST_CHROME_SIGNIN_DELEGATE_H_ | |
OLD | NEW |