| 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_CONTROLLER_PAIRING_SCREEN_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_VIEW_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 #include "chrome/browser/chromeos/login/oobe_screen.h" |
| 11 | 12 |
| 12 namespace base { | 13 namespace base { |
| 13 class DictionaryValue; | 14 class DictionaryValue; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 class BrowserContext; | 18 class BrowserContext; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace chromeos { | 21 namespace chromeos { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 class ControllerPairingScreenView { | 63 class ControllerPairingScreenView { |
| 63 public: | 64 public: |
| 64 class Delegate { | 65 class Delegate { |
| 65 public: | 66 public: |
| 66 virtual ~Delegate() {} | 67 virtual ~Delegate() {} |
| 67 virtual void OnViewDestroyed(ControllerPairingScreenView* view) = 0; | 68 virtual void OnViewDestroyed(ControllerPairingScreenView* view) = 0; |
| 68 virtual void OnScreenContextChanged(const base::DictionaryValue& diff) = 0; | 69 virtual void OnScreenContextChanged(const base::DictionaryValue& diff) = 0; |
| 69 virtual void OnUserActed(const std::string& action) = 0; | 70 virtual void OnUserActed(const std::string& action) = 0; |
| 70 }; | 71 }; |
| 71 | 72 |
| 73 constexpr static OobeScreen kScreenId = |
| 74 OobeScreen::SCREEN_OOBE_CONTROLLER_PAIRING; |
| 75 |
| 72 ControllerPairingScreenView(); | 76 ControllerPairingScreenView(); |
| 73 virtual ~ControllerPairingScreenView(); | 77 virtual ~ControllerPairingScreenView(); |
| 74 | 78 |
| 75 virtual void Show() = 0; | 79 virtual void Show() = 0; |
| 76 virtual void Hide() = 0; | 80 virtual void Hide() = 0; |
| 77 virtual void SetDelegate(Delegate* delegate) = 0; | 81 virtual void SetDelegate(Delegate* delegate) = 0; |
| 78 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0; | 82 virtual void OnContextChanged(const base::DictionaryValue& diff) = 0; |
| 79 virtual content::BrowserContext* GetBrowserContext() = 0; | 83 virtual content::BrowserContext* GetBrowserContext() = 0; |
| 80 | 84 |
| 81 private: | 85 private: |
| 82 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreenView); | 86 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreenView); |
| 83 }; | 87 }; |
| 84 | 88 |
| 85 } // namespace chromeos | 89 } // namespace chromeos |
| 86 | 90 |
| 87 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_VIEW_
H_ | 91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_VIEW_
H_ |
| OLD | NEW |