Chromium Code Reviews| Index: chrome/browser/chromeos/login/screens/controller_pairing_screen.h |
| diff --git a/chrome/browser/chromeos/login/screens/controller_pairing_screen.h b/chrome/browser/chromeos/login/screens/controller_pairing_screen.h |
| index 3b02cfc77d18bd18a593118c538c3040c46b2511..ac76d7598bd8524d1eba6b4f3649ba6807099a01 100644 |
| --- a/chrome/browser/chromeos/login/screens/controller_pairing_screen.h |
| +++ b/chrome/browser/chromeos/login/screens/controller_pairing_screen.h |
| @@ -19,12 +19,22 @@ class ControllerPairingScreen |
| public pairing_chromeos::ControllerPairingController::Observer, |
| public ControllerPairingScreenActor::Delegate { |
| public: |
| + class Delegate { |
| + public: |
| + virtual ~Delegate() {} |
|
achuithb
2014/10/27 18:50:57
nit: I believe this could be made protected
|
| + |
| + // Set remora configuration from shark. |
| + virtual void SetHostConfiguration() = 0; |
| + }; |
| + |
| ControllerPairingScreen( |
| ScreenObserver* observer, |
| ControllerPairingScreenActor* actor, |
| pairing_chromeos::ControllerPairingController* shark_controller); |
| virtual ~ControllerPairingScreen(); |
| + void SetDelegate(Delegate* delegate); |
|
achuithb
2014/10/27 18:50:57
I would just pass in the delegate in the ctor inst
|
| + |
| private: |
| typedef pairing_chromeos::ControllerPairingController::Stage Stage; |
| @@ -56,6 +66,8 @@ class ControllerPairingScreen |
| // Controller performing pairing. Owned by the wizard controller. |
| pairing_chromeos::ControllerPairingController* shark_controller_; |
| + Delegate* delegate_; |
| + |
| // Current stage of pairing process. |
| Stage current_stage_; |