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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.h

Issue 2638123002: cros: Fold HIDDetectionModel into HIDDetectionScreen. (Closed)
Patch Set: Initial upload 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_UI_WEBUI_CHROMEOS_LOGIN_HID_DETECTION_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HID_DETECTION_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HID_DETECTION_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HID_DETECTION_SCREEN_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 13 matching lines...) Expand all
24 : public HIDDetectionView, 24 : public HIDDetectionView,
25 public BaseScreenHandler { 25 public BaseScreenHandler {
26 public: 26 public:
27 27
28 explicit HIDDetectionScreenHandler(CoreOobeActor* core_oobe_actor); 28 explicit HIDDetectionScreenHandler(CoreOobeActor* core_oobe_actor);
29 ~HIDDetectionScreenHandler() override; 29 ~HIDDetectionScreenHandler() override;
30 30
31 // HIDDetectionView implementation: 31 // HIDDetectionView implementation:
32 void Show() override; 32 void Show() override;
33 void Hide() override; 33 void Hide() override;
34 void Bind(HIDDetectionModel& model) override; 34 void Bind(HIDDetectionScreen* screen) override;
35 void Unbind() override; 35 void Unbind() override;
36 void CheckIsScreenRequired( 36 void CheckIsScreenRequired(
37 const base::Callback<void(bool)>& on_check_done) override; 37 const base::Callback<void(bool)>& on_check_done) override;
38 38
39 // BaseScreenHandler implementation: 39 // BaseScreenHandler implementation:
40 void DeclareLocalizedValues( 40 void DeclareLocalizedValues(
41 ::login::LocalizedValuesBuilder* builder) override; 41 ::login::LocalizedValuesBuilder* builder) override;
42 void DeclareJSCallbacks() override; 42 void DeclareJSCallbacks() override;
43 void Initialize() override; 43 void Initialize() override;
44 44
45 // Registers the preference for derelict state. 45 // Registers the preference for derelict state.
46 static void RegisterPrefs(PrefRegistrySimple* registry); 46 static void RegisterPrefs(PrefRegistrySimple* registry);
47 47
48 private: 48 private:
49 // JS messages handlers. 49 // JS messages handlers.
50 void HandleOnContinue(); 50 void HandleOnContinue();
51 51
52 HIDDetectionModel* model_; 52 HIDDetectionScreen* screen_ = nullptr;
53 53
54 CoreOobeActor* core_oobe_actor_; 54 CoreOobeActor* core_oobe_actor_ = nullptr;
55 55
56 // Keeps whether screen should be shown right after initialization. 56 // Keeps whether screen should be shown right after initialization.
achuithb 2017/01/18 23:19:46 Update comment to English
jdufault 2017/01/20 18:57:21 Done.
57 bool show_on_init_; 57 bool show_on_init_ = false;
58 58
59 DISALLOW_COPY_AND_ASSIGN(HIDDetectionScreenHandler); 59 DISALLOW_COPY_AND_ASSIGN(HIDDetectionScreenHandler);
60 }; 60 };
61 61
62 } // namespace chromeos 62 } // namespace chromeos
63 63
64 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HID_DETECTION_SCREEN_HANDLER_H _ 64 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_HID_DETECTION_SCREEN_HANDLER_H _
65 65
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698