Chromium Code Reviews| Index: chrome/browser/chromeos/login/screens/hid_detection_model.h |
| diff --git a/chrome/browser/chromeos/login/screens/hid_detection_model.h b/chrome/browser/chromeos/login/screens/hid_detection_model.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ca75d3f5ba327567e3c7389e2f78b21b7754f023 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/screens/hid_detection_model.h |
| @@ -0,0 +1,48 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ |
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ |
| + |
| +#include "base/callback_forward.h" |
| +#include "chrome/browser/chromeos/login/screens/base_screen.h" |
| + |
| +namespace chromeos { |
| + |
| +class BaseScreenDelegate; |
| +class HIDDetectionView; |
| + |
| +class HIDDetectionModel : public BaseScreen { |
| + public: |
| + static const char kContextKeyKeyboardState[]; |
| + static const char kContextKeyMouseState[]; |
| + 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
|
| + static const char kContextKeyPincode[]; |
| + static const char kContextKeyMouseDeviceName[]; |
| + static const char kContextKeyKeyboardDeviceName[]; |
| + static const char kContextKeyKeyboardLabel[]; |
| + static const char kContextKeyContinueButtonEnabled[]; |
| + |
| + explicit HIDDetectionModel(BaseScreenDelegate* base_screen_delegate); |
| + ~HIDDetectionModel() override; |
| + |
| + // BaseScreen implementation: |
| + std::string GetName() const override; |
| + |
| + // Called when continue button was clicked. |
| + virtual void OnContinueButtonClicked() = 0; |
| + |
| + // Checks if we should show the screen or enough devices already present. |
| + // Calls corresponding set of actions based on the bool result. |
| + virtual void CheckIsScreenRequired( |
| + const base::Callback<void(bool)>& on_check_done) = 0; |
| + |
| + // This method is called, when view is being destroyed. Note, if model |
| + // is destroyed earlier then it has to call Unbind(). |
| + virtual void OnViewDestroyed(HIDDetectionView* view) = 0; |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ |