Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
|
oshima
2017/05/09 05:58:45
nit: nuke "(c)"
It's old style and obsolete. Same
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 namespace ash { | |
| 13 class DisplayConfigurationController; | |
| 14 } // namespace ash | |
| 15 | |
| 16 namespace display { | |
| 17 class Display; | |
| 18 class DisplayManager; | |
| 19 class Screen; | |
| 20 } // namespace display | |
| 21 | |
| 22 namespace chromeos { | |
| 23 | |
| 24 // Tries to put the OOBE UI on a connected touch display (if available). | |
| 25 class OobeDisplayChooser { | |
| 26 public: | |
| 27 static std::unique_ptr<OobeDisplayChooser> CreateDefault(); | |
|
oshima
2017/05/09 05:58:45
Since this is the only usage, you can just call it
| |
| 28 | |
| 29 OobeDisplayChooser(ash::DisplayConfigurationController* dcc, | |
|
jdufault
2017/05/08 17:44:58
Add comment
| |
| 30 display::DisplayManager* display_manager, | |
| 31 display::Screen* screen); | |
|
oshima
2017/05/09 05:58:45
does this have to be public?
| |
| 32 ~OobeDisplayChooser(); | |
| 33 | |
| 34 void TryToPlaceUIOnTouchDisplay(); | |
| 35 void OnDisplayAdded(const display::Display& new_display); | |
| 36 | |
| 37 private: | |
| 38 void MoveToTouchDisplay(); | |
| 39 | |
| 40 ash::DisplayConfigurationController* configuration_controller_; | |
| 41 display::DisplayManager* display_manager_; | |
| 42 display::Screen* screen_; | |
| 43 | |
| 44 DISALLOW_COPY_AND_ASSIGN(OobeDisplayChooser); | |
| 45 }; | |
| 46 | |
| 47 } // namespace chromeos | |
| 48 | |
| 49 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_ | |
| OLD | NEW |