| 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 26 matching lines...) Expand all Loading... |
| 37 pairing_chromeos::ControllerPairingController* shark_controller); | 37 pairing_chromeos::ControllerPairingController* shark_controller); |
| 38 ~ControllerPairingScreen() override; | 38 ~ControllerPairingScreen() override; |
| 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 PrepareToShow() override; | |
| 48 void Show() override; | 47 void Show() override; |
| 49 void Hide() override; | 48 void Hide() override; |
| 50 std::string GetName() const override; | 49 std::string GetName() const override; |
| 51 | 50 |
| 52 // Overridden from pairing_chromeos::ControllerPairingController::Observer: | 51 // Overridden from pairing_chromeos::ControllerPairingController::Observer: |
| 53 void PairingStageChanged(Stage new_stage) override; | 52 void PairingStageChanged(Stage new_stage) override; |
| 54 void DiscoveredDevicesListChanged() override; | 53 void DiscoveredDevicesListChanged() override; |
| 55 | 54 |
| 56 // Overridden from ControllerPairingView::Delegate: | 55 // Overridden from ControllerPairingView::Delegate: |
| 57 void OnActorDestroyed(ControllerPairingScreenActor* actor) override; | 56 void OnActorDestroyed(ControllerPairingScreenActor* actor) override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 // If this one is |false| first device in device list will be preselected on | 70 // If this one is |false| first device in device list will be preselected on |
| 72 // next device list update. | 71 // next device list update. |
| 73 bool device_preselected_; | 72 bool device_preselected_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreen); | 74 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreen); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace chromeos | 77 } // namespace chromeos |
| 79 | 78 |
| 80 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ | 79 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ |
| OLD | NEW |