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

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

Issue 2549373005: cros: Refactor of BaseScreen::GetName to BaseScreen::screen_id. (Closed)
Patch Set: Nits Created 3 years, 11 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
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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/chromeos/login/screens/base_screen.h" 9 #include "chrome/browser/chromeos/login/screens/base_screen.h"
10 10
(...skipping 10 matching lines...) Expand all
21 static const char kContextKeyNumKeysEnteredPinCode[]; 21 static const char kContextKeyNumKeysEnteredPinCode[];
22 static const char kContextKeyPinCode[]; 22 static const char kContextKeyPinCode[];
23 static const char kContextKeyMouseDeviceName[]; 23 static const char kContextKeyMouseDeviceName[];
24 static const char kContextKeyKeyboardDeviceName[]; 24 static const char kContextKeyKeyboardDeviceName[];
25 static const char kContextKeyKeyboardLabel[]; 25 static const char kContextKeyKeyboardLabel[];
26 static const char kContextKeyContinueButtonEnabled[]; 26 static const char kContextKeyContinueButtonEnabled[];
27 27
28 explicit HIDDetectionModel(BaseScreenDelegate* base_screen_delegate); 28 explicit HIDDetectionModel(BaseScreenDelegate* base_screen_delegate);
29 ~HIDDetectionModel() override; 29 ~HIDDetectionModel() override;
30 30
31 // BaseScreen implementation:
32 std::string GetName() const override;
33
34 // Called when continue button was clicked. 31 // Called when continue button was clicked.
35 virtual void OnContinueButtonClicked() = 0; 32 virtual void OnContinueButtonClicked() = 0;
36 33
37 // Checks if we should show the screen or enough devices already present. 34 // Checks if we should show the screen or enough devices already present.
38 // Calls corresponding set of actions based on the bool result. 35 // Calls corresponding set of actions based on the bool result.
39 virtual void CheckIsScreenRequired( 36 virtual void CheckIsScreenRequired(
40 const base::Callback<void(bool)>& on_check_done) = 0; 37 const base::Callback<void(bool)>& on_check_done) = 0;
41 38
42 // This method is called, when view is being destroyed. Note, if model 39 // This method is called, when view is being destroyed. Note, if model
43 // is destroyed earlier then it has to call Unbind(). 40 // is destroyed earlier then it has to call Unbind().
44 virtual void OnViewDestroyed(HIDDetectionView* view) = 0; 41 virtual void OnViewDestroyed(HIDDetectionView* view) = 0;
45 }; 42 };
46 43
47 } // namespace chromeos 44 } // namespace chromeos
48 45
49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_ 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HID_DETECTION_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/eula_model.cc ('k') | chrome/browser/chromeos/login/screens/hid_detection_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698