Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: chrome/browser/chromeos/login/screens/hid_detection_view.h

Issue 898453002: HID-detection screen moved to screenContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11
12 namespace chromeos {
13
14 class HIDDetectionModel;
15
16 // Interface between HID detection screen and its representation, either WebUI
17 // or Views one. Note, do not forget to call OnViewDestroyed in the
18 // dtor.
19 class HIDDetectionView {
20 public:
21 virtual ~HIDDetectionView() {}
22
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;
32 };
33
34 } // namespace chromeos
35
36 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/hid_detection_screen_actor.h ('k') | chrome/browser/chromeos/login/ui/oobe_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698