OLD | NEW |
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 #include "chrome/browser/chromeos/login/screens/hid_detection_model.h" | 5 #include "chrome/browser/chromeos/login/screens/hid_detection_model.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/login/wizard_controller.h" | 7 #include "chrome/browser/chromeos/login/wizard_controller.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 const char HIDDetectionModel::kContextKeyKeyboardState[] = "keyboard-state"; | 11 const char HIDDetectionModel::kContextKeyKeyboardState[] = "keyboard-state"; |
12 const char HIDDetectionModel::kContextKeyMouseState[] = "mouse-state"; | 12 const char HIDDetectionModel::kContextKeyMouseState[] = "mouse-state"; |
13 const char HIDDetectionModel::kContextKeyPinCode[] = "keyboard-pincode"; | 13 const char HIDDetectionModel::kContextKeyPinCode[] = "keyboard-pincode"; |
14 const char HIDDetectionModel::kContextKeyNumKeysEnteredExpected[] = | 14 const char HIDDetectionModel::kContextKeyNumKeysEnteredExpected[] = |
15 "num-keys-entered-expected"; | 15 "num-keys-entered-expected"; |
16 const char HIDDetectionModel::kContextKeyNumKeysEnteredPinCode[] = | 16 const char HIDDetectionModel::kContextKeyNumKeysEnteredPinCode[] = |
17 "num-keys-entered-pincode"; | 17 "num-keys-entered-pincode"; |
18 const char HIDDetectionModel::kContextKeyMouseDeviceName[] = | 18 const char HIDDetectionModel::kContextKeyMouseDeviceName[] = |
19 "mouse-device-name"; | 19 "mouse-device-name"; |
20 const char HIDDetectionModel::kContextKeyKeyboardDeviceName[] = | 20 const char HIDDetectionModel::kContextKeyKeyboardDeviceName[] = |
21 "keyboard-device-name"; | 21 "keyboard-device-name"; |
22 const char HIDDetectionModel::kContextKeyKeyboardLabel[] = | 22 const char HIDDetectionModel::kContextKeyKeyboardLabel[] = |
23 "keyboard-device-label"; | 23 "keyboard-device-label"; |
24 const char HIDDetectionModel::kContextKeyContinueButtonEnabled[] = | 24 const char HIDDetectionModel::kContextKeyContinueButtonEnabled[] = |
25 "continue-button-enabled"; | 25 "continue-button-enabled"; |
26 | 26 |
27 HIDDetectionModel::HIDDetectionModel(BaseScreenDelegate* base_screen_delegate) | 27 HIDDetectionModel::HIDDetectionModel(BaseScreenDelegate* base_screen_delegate) |
28 : BaseScreen(base_screen_delegate) { | 28 : BaseScreen(base_screen_delegate, |
29 } | 29 WizardController::kHIDDetectionScreenName) {} |
30 | 30 |
31 HIDDetectionModel::~HIDDetectionModel() { | 31 HIDDetectionModel::~HIDDetectionModel() { |
32 } | 32 } |
33 | 33 |
34 std::string HIDDetectionModel::GetName() const { | |
35 return WizardController::kHIDDetectionScreenName; | |
36 } | |
37 | |
38 } // namespace chromeos | 34 } // namespace chromeos |
OLD | NEW |