| 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_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/chromeos/login/screens/host_pairing_screen_view.h" | 9 #include "chrome/browser/chromeos/login/screens/host_pairing_screen_view.h" |
| 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 10 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 ::login::LocalizedValuesBuilder* builder) override; | 27 ::login::LocalizedValuesBuilder* builder) override; |
| 28 | 28 |
| 29 // Overridden from content::WebUIMessageHandler: | 29 // Overridden from content::WebUIMessageHandler: |
| 30 void RegisterMessages() override; | 30 void RegisterMessages() override; |
| 31 | 31 |
| 32 // Overridden from HostPairingScreenActor: | 32 // Overridden from HostPairingScreenActor: |
| 33 void Show() override; | 33 void Show() override; |
| 34 void Hide() override; | 34 void Hide() override; |
| 35 void SetDelegate(Delegate* delegate) override; | 35 void SetDelegate(Delegate* delegate) override; |
| 36 void OnContextChanged(const base::DictionaryValue& diff) override; | 36 void OnContextChanged(const base::DictionaryValue& diff) override; |
| 37 std::string GetErrorStringFromAuthError( |
| 38 const GoogleServiceAuthError& error) override; |
| 39 std::string GetErrorStringFromEnrollmentError( |
| 40 policy::EnrollmentStatus status) override; |
| 41 std::string GetErrorStringFromOtherError( |
| 42 EnterpriseEnrollmentHelper::OtherError error) override; |
| 37 | 43 |
| 38 HostPairingScreenView::Delegate* delegate_ = nullptr; | 44 HostPairingScreenView::Delegate* delegate_ = nullptr; |
| 39 bool show_on_init_ = false; | 45 bool show_on_init_ = false; |
| 40 bool js_context_ready_ = false; | 46 bool js_context_ready_ = false; |
| 41 | 47 |
| 42 // Caches context changes while JS part is not ready to receive messages. | 48 // Caches context changes while JS part is not ready to receive messages. |
| 43 ::login::ScreenContext context_cache_; | 49 ::login::ScreenContext context_cache_; |
| 44 | 50 |
| 45 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenHandler); | 51 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenHandler); |
| 46 }; | 52 }; |
| 47 | 53 |
| 48 } // namespace chromeos | 54 } // namespace chromeos |
| 49 | 55 |
| 50 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ | 56 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ |
| OLD | NEW |