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

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

Issue 2713513009: cros: Break BaseScreenHandler into two classes. (Closed)
Patch Set: Add comments, fix compile Created 3 years, 9 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_HID_DETECTION_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "chrome/browser/chromeos/login/oobe_screen.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
13 14
14 class HIDDetectionScreen; 15 class HIDDetectionScreen;
15 16
16 // Interface between HID detection screen and its representation, either WebUI 17 // Interface between HID detection screen and its representation, either WebUI
17 // or Views one. Note, do not forget to call OnViewDestroyed in the 18 // or Views one. Note, do not forget to call OnViewDestroyed in the
18 // dtor. 19 // dtor.
19 class HIDDetectionView { 20 class HIDDetectionView {
20 public: 21 public:
22 constexpr static OobeScreen kScreenId = OobeScreen::SCREEN_OOBE_HID_DETECTION;
23
21 virtual ~HIDDetectionView() {} 24 virtual ~HIDDetectionView() {}
22 25
23 virtual void Show() = 0; 26 virtual void Show() = 0;
24 virtual void Hide() = 0; 27 virtual void Hide() = 0;
25 virtual void Bind(HIDDetectionScreen* screen) = 0; 28 virtual void Bind(HIDDetectionScreen* screen) = 0;
26 virtual void Unbind() = 0; 29 virtual void Unbind() = 0;
27 // Checks if we should show the screen or enough devices already present. 30 // Checks if we should show the screen or enough devices already present.
28 // Calls corresponding set of actions based on the bool result. 31 // Calls corresponding set of actions based on the bool result.
29 virtual void CheckIsScreenRequired( 32 virtual void CheckIsScreenRequired(
30 const base::Callback<void(bool)>& on_check_done) = 0; 33 const base::Callback<void(bool)>& on_check_done) = 0;
31 }; 34 };
32 35
33 } // namespace chromeos 36 } // namespace chromeos
34 37
35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_ 38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/gaia_view.h ('k') | chrome/browser/chromeos/login/screens/host_pairing_screen_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698