OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ | |
7 | |
8 #include "base/callback_forward.h" | |
9 #include "chrome/browser/chromeos/login/screens/base_screen.h" | |
10 | |
11 namespace chromeos { | |
12 | |
13 class BaseScreenDelegate; | |
14 class HIDDetectionView; | |
15 | |
16 class HIDDetectionModel : public BaseScreen { | |
17 public: | |
18 static const char kContextKeyKeyboardState[]; | |
19 static const char kContextKeyMouseState[]; | |
20 static const char kContextKeyEnteredPartPincode[]; | |
Denis Kuznetsov (DE-MUC)
2015/02/03 13:31:42
1) PartialPincode / PartiallyEntered
2) Please sen
merkulova
2015/02/03 14:41:01
Renamed.
It's number of keys entered, so it's inte
| |
21 static const char kContextKeyPincode[]; | |
22 static const char kContextKeyMouseDeviceName[]; | |
23 static const char kContextKeyKeyboardDeviceName[]; | |
24 static const char kContextKeyKeyboardLabel[]; | |
25 static const char kContextKeyContinueButtonEnabled[]; | |
26 | |
27 explicit HIDDetectionModel(BaseScreenDelegate* base_screen_delegate); | |
28 ~HIDDetectionModel() override; | |
29 | |
30 // BaseScreen implementation: | |
31 std::string GetName() const override; | |
32 | |
33 // Called when continue button was clicked. | |
34 virtual void OnContinueButtonClicked() = 0; | |
35 | |
36 // Checks if we should show the screen or enough devices already present. | |
37 // Calls corresponding set of actions based on the bool result. | |
38 virtual void CheckIsScreenRequired( | |
39 const base::Callback<void(bool)>& on_check_done) = 0; | |
40 | |
41 // This method is called, when view is being destroyed. Note, if model | |
42 // is destroyed earlier then it has to call Unbind(). | |
43 virtual void OnViewDestroyed(HIDDetectionView* view) = 0; | |
44 }; | |
45 | |
46 } // namespace chromeos | |
47 | |
48 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ | |
OLD | NEW |