Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Unified Diff: chrome/browser/chromeos/login/screens/controller_pairing_screen.h

Issue 673813003: SetHostConfiguration() and ConfigureHost() are moved from ScreenObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698