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.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_
10 #include "base/callback.h"
14 class HIDDetectionModel
;
16 // Interface between HID detection screen and its representation, either WebUI
17 // or Views one. Note, do not forget to call OnViewDestroyed in the
19 class HIDDetectionView
{
21 virtual ~HIDDetectionView() {}
23 virtual void PrepareToShow() = 0;
24 virtual void Show() = 0;
25 virtual void Hide() = 0;
26 virtual void Bind(HIDDetectionModel
& model
) = 0;
27 virtual void Unbind() = 0;
28 // Checks if we should show the screen or enough devices already present.
29 // Calls corresponding set of actions based on the bool result.
30 virtual void CheckIsScreenRequired(
31 const base::Callback
<void(bool)>& on_check_done
) = 0;
34 } // namespace chromeos
36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_