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

Side by Side Diff: chrome/browser/chromeos/login/screens/controller_pairing_screen.h

Issue 647043004: WizardScreen is merged to BaseScreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: 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 unified diff | Download patch
OLDNEW
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/controller_pairing_screen_actor. h" 11 #include "chrome/browser/chromeos/login/screens/controller_pairing_screen_actor. h"
11 #include "chrome/browser/chromeos/login/screens/screen_context.h" 12 #include "chrome/browser/chromeos/login/screens/screen_context.h"
12 #include "chrome/browser/chromeos/login/screens/wizard_screen.h"
13 #include "components/pairing/controller_pairing_controller.h" 13 #include "components/pairing/controller_pairing_controller.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 class ControllerPairingScreen : 17 class ControllerPairingScreen
18 public WizardScreen, 18 : public BaseScreen,
19 public pairing_chromeos::ControllerPairingController::Observer, 19 public pairing_chromeos::ControllerPairingController::Observer,
20 public ControllerPairingScreenActor::Delegate { 20 public ControllerPairingScreenActor::Delegate {
21 public: 21 public:
22 ControllerPairingScreen( 22 ControllerPairingScreen(
23 ScreenObserver* observer, 23 ScreenObserver* observer,
24 ControllerPairingScreenActor* actor, 24 ControllerPairingScreenActor* actor,
25 pairing_chromeos::ControllerPairingController* shark_controller); 25 pairing_chromeos::ControllerPairingController* shark_controller);
26 virtual ~ControllerPairingScreen(); 26 virtual ~ControllerPairingScreen();
27 27
28 private: 28 private:
29 typedef pairing_chromeos::ControllerPairingController::Stage Stage; 29 typedef pairing_chromeos::ControllerPairingController::Stage Stage;
30 30
31 void CommitContextChanges(); 31 void CommitContextChanges();
32 bool ExpectStageIs(Stage stage) const; 32 bool ExpectStageIs(Stage stage) const;
33 33
34 // Overridden from WizardScreen: 34 // Overridden from BaseScreen:
35 virtual void PrepareToShow() override; 35 virtual void PrepareToShow() override;
36 virtual void Show() override; 36 virtual void Show() override;
37 virtual void Hide() override; 37 virtual void Hide() override;
38 virtual std::string GetName() const override; 38 virtual std::string GetName() const override;
39 39
40 // Overridden from pairing_chromeos::ControllerPairingController::Observer: 40 // Overridden from pairing_chromeos::ControllerPairingController::Observer:
41 virtual void PairingStageChanged(Stage new_stage) override; 41 virtual void PairingStageChanged(Stage new_stage) override;
42 virtual void DiscoveredDevicesListChanged() override; 42 virtual void DiscoveredDevicesListChanged() override;
43 43
44 // Overridden from ControllerPairingView::Delegate: 44 // Overridden from ControllerPairingView::Delegate:
(...skipping 17 matching lines...) Expand all
62 // If this one is |false| first device in device list will be preselected on 62 // If this one is |false| first device in device list will be preselected on
63 // next device list update. 63 // next device list update.
64 bool device_preselected_; 64 bool device_preselected_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreen); 66 DISALLOW_COPY_AND_ASSIGN(ControllerPairingScreen);
67 }; 67 };
68 68
69 } // namespace chromeos 69 } // namespace chromeos
70 70
71 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_ 71 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_CONTROLLER_PAIRING_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698