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

Side by Side Diff: chrome/browser/chromeos/login/screens/controller_pairing_screen_view.h

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_ACTOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_ACTOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace base { 12 namespace base {
13 class DictionaryValue; 13 class DictionaryValue;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 extern const char kActionChooseDevice[]; 52 extern const char kActionChooseDevice[];
53 extern const char kActionRepeatDiscovery[]; 53 extern const char kActionRepeatDiscovery[];
54 extern const char kActionAcceptCode[]; 54 extern const char kActionAcceptCode[];
55 extern const char kActionRejectCode[]; 55 extern const char kActionRejectCode[];
56 extern const char kActionProceedToAuthentication[]; 56 extern const char kActionProceedToAuthentication[];
57 extern const char kActionEnroll[]; 57 extern const char kActionEnroll[];
58 extern const char kActionStartSession[]; 58 extern const char kActionStartSession[];
59 59
60 } // namespace controller_pairing 60 } // namespace controller_pairing
61 61
62 class ControllerPairingScreenActor { 62 class ControllerPairingScreenView {
63 public: 63 public:
64 class Delegate { 64 class Delegate {
65 public: 65 public:
66 virtual ~Delegate() {} 66 virtual ~Delegate() {}
67 virtual void OnActorDestroyed(ControllerPairingScreenActor* actor) = 0; 67 virtual void OnViewDestroyed(ControllerPairingScreenView* view) = 0;
68 virtual void OnScreenContextChanged(const base::DictionaryValue& diff) = 0; 68 virtual void OnScreenContextChanged(const base::DictionaryValue& diff) = 0;
69 virtual void OnUserActed(const std::string& action) = 0; 69 virtual void OnUserActed(const std::string& action) = 0;
70 }; 70 };
71 71
72 ControllerPairingScreenActor(); 72 ControllerPairingScreenView();
73 virtual ~ControllerPairingScreenActor(); 73 virtual ~ControllerPairingScreenView();
74 74
75 virtual void Show() = 0; 75 virtual void Show() = 0;
76 virtual void Hide() = 0; 76 virtual void Hide() = 0;
77 virtual void SetDelegate(Delegate* delegate) = 0; 77 virtual void SetDelegate(Delegate* delegate) = 0;
78 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0; 78 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0;
79 virtual content::BrowserContext* GetBrowserContext() = 0; 79 virtual content::BrowserContext* GetBrowserContext() = 0;
80 80
81 private: 81 private:
82 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreenActor); 82 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreenView);
83 }; 83 };
84 84
85 } // namespace chromeos 85 } // namespace chromeos
86 86
87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_ACTOR _H_ 87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_VIEW_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698