| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_ACTOR_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_ACTOR_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 | |
| 10 namespace base { | |
| 11 class DictionaryValue; | |
| 12 } | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 namespace host_pairing { | |
| 17 | |
| 18 // Keep these constants synced with corresponding constants defined in | |
| 19 // oobe_screen_host_pairing.js. | |
| 20 // Conxtext keys. | |
| 21 extern const char kContextKeyPage[]; | |
| 22 extern const char kContextKeyDeviceName[]; | |
| 23 extern const char kContextKeyConfirmationCode[]; | |
| 24 extern const char kContextKeyEnrollmentDomain[]; | |
| 25 extern const char kContextKeyUpdateProgress[]; | |
| 26 | |
| 27 // Pages names. | |
| 28 extern const char kPageWelcome[]; | |
| 29 extern const char kPageIntializationError[]; | |
| 30 extern const char kPageCodeConfirmation[]; | |
| 31 extern const char kPageConnectionError[]; | |
| 32 extern const char kPageSetupBasicConfiguration[]; | |
| 33 extern const char kPageSetupNetworkError[]; | |
| 34 extern const char kPageUpdate[]; | |
| 35 extern const char kPageEnrollmentIntroduction[]; | |
| 36 extern const char kPageEnrollment[]; | |
| 37 extern const char kPageEnrollmentError[]; | |
| 38 extern const char kPagePairingDone[]; | |
| 39 | |
| 40 } // namespace host_pairing | |
| 41 | |
| 42 class HostPairingScreenActor { | |
| 43 public: | |
| 44 class Delegate { | |
| 45 public: | |
| 46 virtual ~Delegate() {} | |
| 47 virtual void OnActorDestroyed(HostPairingScreenActor* actor) = 0; | |
| 48 }; | |
| 49 | |
| 50 HostPairingScreenActor(); | |
| 51 virtual ~HostPairingScreenActor(); | |
| 52 | |
| 53 virtual void Show() = 0; | |
| 54 virtual void Hide() = 0; | |
| 55 virtual void SetDelegate(Delegate* delegate) = 0; | |
| 56 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0; | |
| 57 | |
| 58 private: | |
| 59 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenActor); | |
| 60 }; | |
| 61 | |
| 62 } // namespace chromeos | |
| 63 | |
| 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_ACTOR_H_ | |
| OLD | NEW |