| 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_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/login/screens/base_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 typedef pairing_chromeos::ControllerPairingController::Stage Stage; | 41 typedef pairing_chromeos::ControllerPairingController::Stage Stage; |
| 42 | 42 |
| 43 void CommitContextChanges(); | 43 void CommitContextChanges(); |
| 44 bool ExpectStageIs(Stage stage) const; | 44 bool ExpectStageIs(Stage stage) const; |
| 45 | 45 |
| 46 // Overridden from BaseScreen: | 46 // Overridden from BaseScreen: |
| 47 void Show() override; | 47 void Show() override; |
| 48 void Hide() override; | 48 void Hide() override; |
| 49 std::string GetName() const override; | |
| 50 | 49 |
| 51 // Overridden from pairing_chromeos::ControllerPairingController::Observer: | 50 // Overridden from pairing_chromeos::ControllerPairingController::Observer: |
| 52 void PairingStageChanged(Stage new_stage) override; | 51 void PairingStageChanged(Stage new_stage) override; |
| 53 void DiscoveredDevicesListChanged() override; | 52 void DiscoveredDevicesListChanged() override; |
| 54 | 53 |
| 55 // Overridden from ControllerPairingView::Delegate: | 54 // Overridden from ControllerPairingView::Delegate: |
| 56 void OnActorDestroyed(ControllerPairingScreenActor* actor) override; | 55 void OnActorDestroyed(ControllerPairingScreenActor* actor) override; |
| 57 void OnScreenContextChanged(const base::DictionaryValue& diff) override; | 56 void OnScreenContextChanged(const base::DictionaryValue& diff) override; |
| 58 void OnUserActed(const std::string& action) override; | 57 void OnUserActed(const std::string& action) override; |
| 59 | 58 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 70 // If this one is |false| first device in device list will be preselected on | 69 // If this one is |false| first device in device list will be preselected on |
| 71 // next device list update. | 70 // next device list update. |
| 72 bool device_preselected_; | 71 bool device_preselected_; |
| 73 | 72 |
| 74 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreen); | 73 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreen); |
| 75 }; | 74 }; |
| 76 | 75 |
| 77 } // namespace chromeos | 76 } // namespace chromeos |
| 78 | 77 |
| 79 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ | 78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ |
| OLD | NEW |