| OLD | NEW |
| 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_HOST_PAIRING_SCREEN_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.
h" |
| 9 #include "chrome/browser/chromeos/login/oobe_screen.h" | 10 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 10 | 11 |
| 11 namespace base { | 12 namespace base { |
| 12 class DictionaryValue; | 13 class DictionaryValue; |
| 13 } | 14 } |
| 14 | 15 |
| 16 class GoogleServiceAuthError; |
| 17 |
| 18 namespace policy { |
| 19 class EnrollmentStatus; |
| 20 } |
| 21 |
| 15 namespace chromeos { | 22 namespace chromeos { |
| 16 | 23 |
| 17 namespace host_pairing { | 24 namespace host_pairing { |
| 18 | 25 |
| 19 // Keep these constants synced with corresponding constants defined in | 26 // Keep these constants synced with corresponding constants defined in |
| 20 // oobe_screen_host_pairing.js. | 27 // oobe_screen_host_pairing.js. |
| 21 // Conxtext keys. | 28 // Conxtext keys. |
| 22 extern const char kContextKeyPage[]; | 29 extern const char kContextKeyPage[]; |
| 23 extern const char kContextKeyDeviceName[]; | 30 extern const char kContextKeyDeviceName[]; |
| 24 extern const char kContextKeyConfirmationCode[]; | 31 extern const char kContextKeyConfirmationCode[]; |
| 25 extern const char kContextKeyEnrollmentDomain[]; | 32 extern const char kContextKeyEnrollmentDomain[]; |
| 26 extern const char kContextKeyUpdateProgress[]; | 33 extern const char kContextKeyUpdateProgress[]; |
| 34 extern const char kContextKeyEnrollmentError[]; |
| 27 | 35 |
| 28 // Pages names. | 36 // Pages names. |
| 29 extern const char kPageWelcome[]; | 37 extern const char kPageWelcome[]; |
| 30 extern const char kPageIntializationError[]; | 38 extern const char kPageIntializationError[]; |
| 31 extern const char kPageCodeConfirmation[]; | 39 extern const char kPageCodeConfirmation[]; |
| 32 extern const char kPageConnectionError[]; | 40 extern const char kPageConnectionError[]; |
| 33 extern const char kPageSetupBasicConfiguration[]; | 41 extern const char kPageSetupBasicConfiguration[]; |
| 34 extern const char kPageSetupNetworkError[]; | 42 extern const char kPageSetupNetworkError[]; |
| 35 extern const char kPageUpdate[]; | 43 extern const char kPageUpdate[]; |
| 36 extern const char kPageEnrollmentIntroduction[]; | 44 extern const char kPageEnrollmentIntroduction[]; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 51 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_HOST_PAIRING; | 59 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_HOST_PAIRING; |
| 52 | 60 |
| 53 HostPairingScreenView(); | 61 HostPairingScreenView(); |
| 54 virtual ~HostPairingScreenView(); | 62 virtual ~HostPairingScreenView(); |
| 55 | 63 |
| 56 virtual void Show() = 0; | 64 virtual void Show() = 0; |
| 57 virtual void Hide() = 0; | 65 virtual void Hide() = 0; |
| 58 virtual void SetDelegate(Delegate* delegate) = 0; | 66 virtual void SetDelegate(Delegate* delegate) = 0; |
| 59 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0; | 67 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0; |
| 60 | 68 |
| 69 virtual std::string GetErrorStringFromAuthError( |
| 70 const GoogleServiceAuthError& error) = 0; |
| 71 virtual std::string GetErrorStringFromEnrollmentError( |
| 72 policy::EnrollmentStatus status) = 0; |
| 73 virtual std::string GetErrorStringFromOtherError( |
| 74 EnterpriseEnrollmentHelper::OtherError error) = 0; |
| 75 |
| 61 private: | 76 private: |
| 62 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenView); | 77 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenView); |
| 63 }; | 78 }; |
| 64 | 79 |
| 65 } // namespace chromeos | 80 } // namespace chromeos |
| 66 | 81 |
| 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_ | 82 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_VIEW_H_ |
| OLD | NEW |