| 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_actor.h" | 9 #include "chrome/browser/chromeos/login/screens/host_pairing_screen_actor.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 17 matching lines...) Expand all Loading... |
| 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 | 37 |
| 38 HostPairingScreenActor::Delegate* delegate_; | 38 HostPairingScreenActor::Delegate* delegate_ = nullptr; |
| 39 bool show_on_init_; | 39 bool show_on_init_ = false; |
| 40 bool js_context_ready_; | 40 bool js_context_ready_ = false; |
| 41 | 41 |
| 42 // Caches context changes while JS part is not ready to receive messages. | 42 // Caches context changes while JS part is not ready to receive messages. |
| 43 ::login::ScreenContext context_cache_; | 43 ::login::ScreenContext context_cache_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenHandler); | 45 DISALLOW_COPY_AND_ASSIGN(HostPairingScreenHandler); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace chromeos | 48 } // namespace chromeos |
| 49 | 49 |
| 50 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ | 50 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HOST_PAIRING_SCREEN_HANDLER_H_ |
| OLD | NEW |