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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/oobe_display_chooser.h

Issue 2885153004: React to primary display change instead of removal (Closed)
Patch Set: Remove the probably unnecessary safe guards for test shutdown Created 3 years, 7 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
9 10
10 namespace chromeos { 11 namespace chromeos {
11 12
12 // Tries to put the OOBE UI on a connected touch display (if available). 13 // Tries to put the OOBE UI on a connected touch display (if available).
13 class OobeDisplayChooser { 14 class OobeDisplayChooser {
14 public: 15 public:
15 OobeDisplayChooser(); 16 OobeDisplayChooser();
16 ~OobeDisplayChooser(); 17 ~OobeDisplayChooser();
17 18
19 // Must be called on the BrowserThread::UI thread.
achuithb 2017/05/23 20:14:22 I think a comment describing what this function do
Felix Ekblom 2017/05/23 20:42:19 Done.
18 void TryToPlaceUiOnTouchDisplay(); 20 void TryToPlaceUiOnTouchDisplay();
19 21
20 private: 22 private:
21 void MoveToTouchDisplay(); 23 void MoveToTouchDisplay();
22 24
25 base::WeakPtrFactory<OobeDisplayChooser> weak_ptr_factory_;
26
23 DISALLOW_COPY_AND_ASSIGN(OobeDisplayChooser); 27 DISALLOW_COPY_AND_ASSIGN(OobeDisplayChooser);
24 }; 28 };
25 29
26 } // namespace chromeos 30 } // namespace chromeos
27 31
28 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_ 32 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698