Index: chrome/browser/chromeos/login/screens/hid_detection_view.h |
diff --git a/chrome/browser/chromeos/login/screens/hid_detection_view.h b/chrome/browser/chromeos/login/screens/hid_detection_view.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..affe37a2db67caad485165f2de7ca4f6b3180fdb |
--- /dev/null |
+++ b/chrome/browser/chromeos/login/screens/hid_detection_view.h |
@@ -0,0 +1,36 @@ |
+// 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_VIEW_H_ |
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_ |
+ |
+#include <string> |
+ |
+#include "base/callback.h" |
+ |
+namespace chromeos { |
+ |
+class HIDDetectionModel; |
+ |
+// Interface between HID detection screen and its representation, either WebUI |
+// or Views one. Note, do not forget to call OnViewDestroyed in the |
+// dtor. |
+class HIDDetectionView { |
+ public: |
+ virtual ~HIDDetectionView() {} |
+ |
+ virtual void PrepareToShow() = 0; |
+ virtual void Show() = 0; |
+ virtual void Hide() = 0; |
+ virtual void Bind(HIDDetectionModel& model) = 0; |
+ virtual void Unbind() = 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; |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_ |