gpu: Tweak Android WebGL test expectations
[chromium-blink-merge.git] / ui / app_list / signin_delegate.h
blobeda67f410e8dea7a182890c8b000356f4c7d36ca
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 UI_APP_LIST_SIGNIN_DELEGATE_H_
6 #define UI_APP_LIST_SIGNIN_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "base/observer_list.h"
10 #include "base/strings/string16.h"
11 #include "ui/app_list/app_list_export.h"
13 namespace app_list {
15 class SigninDelegateObserver;
17 class APP_LIST_EXPORT SigninDelegate {
18 public:
19 SigninDelegate();
20 virtual ~SigninDelegate();
22 virtual bool NeedSignin() = 0;
23 virtual void ShowSignin() = 0;
24 virtual void OpenLearnMore() = 0;
25 virtual void OpenSettings() = 0;
27 virtual base::string16 GetSigninHeading() = 0;
28 virtual base::string16 GetSigninText() = 0;
29 virtual base::string16 GetSigninButtonText() = 0;
30 virtual base::string16 GetLearnMoreLinkText() = 0;
31 virtual base::string16 GetSettingsLinkText() = 0;
33 void AddObserver(SigninDelegateObserver* observer);
34 void RemoveObserver(SigninDelegateObserver* observer);
36 protected:
37 void NotifySigninSuccess();
39 private:
40 ObserverList<SigninDelegateObserver, true> observers_;
42 DISALLOW_COPY_AND_ASSIGN(SigninDelegate);
45 } // namespace app_list
47 #endif // UI_APP_LIST_SIGNIN_DELEGATE_H_