OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CORE_OOBE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 15 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
16 #include "chrome/browser/chromeos/login/demo_mode/demo_mode_detector.h" | 16 #include "chrome/browser/chromeos/login/demo_mode/demo_mode_detector.h" |
17 #include "chrome/browser/chromeos/login/screens/core_oobe_actor.h" | 17 #include "chrome/browser/chromeos/login/screens/core_oobe_view.h" |
18 #include "chrome/browser/chromeos/login/version_info_updater.h" | 18 #include "chrome/browser/chromeos/login/version_info_updater.h" |
19 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 19 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
20 #include "ui/events/event_source.h" | 20 #include "ui/events/event_source.h" |
21 #include "ui/keyboard/scoped_keyboard_disabler.h" | 21 #include "ui/keyboard/scoped_keyboard_disabler.h" |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class ListValue; | 24 class ListValue; |
25 } | 25 } |
26 | 26 |
27 namespace ui { | 27 namespace ui { |
28 class EventProcessor; | 28 class EventProcessor; |
29 } | 29 } |
30 | 30 |
31 namespace chromeos { | 31 namespace chromeos { |
32 | 32 |
33 class HelpAppLauncher; | 33 class HelpAppLauncher; |
34 class OobeUI; | 34 class OobeUI; |
35 | 35 |
36 // The core handler for Javascript messages related to the "oobe" view. | 36 // The core handler for Javascript messages related to the "oobe" view. |
37 class CoreOobeHandler : public BaseScreenHandler, | 37 class CoreOobeHandler : public BaseScreenHandler, |
38 public VersionInfoUpdater::Delegate, | 38 public VersionInfoUpdater::Delegate, |
39 public CoreOobeActor, | 39 public CoreOobeView, |
40 public ui::EventSource { | 40 public ui::EventSource { |
41 public: | 41 public: |
42 class Delegate { | 42 class Delegate { |
43 public: | 43 public: |
44 // Called when current screen is changed. | 44 // Called when current screen is changed. |
45 virtual void OnCurrentScreenChanged(OobeScreen screen) = 0; | 45 virtual void OnCurrentScreenChanged(OobeScreen screen) = 0; |
46 }; | 46 }; |
47 | 47 |
48 explicit CoreOobeHandler(OobeUI* oobe_ui); | 48 explicit CoreOobeHandler(OobeUI* oobe_ui); |
49 ~CoreOobeHandler() override; | 49 ~CoreOobeHandler() override; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 DemoModeDetector demo_mode_detector_; | 197 DemoModeDetector demo_mode_detector_; |
198 | 198 |
199 keyboard::ScopedKeyboardDisabler scoped_keyboard_disabler_; | 199 keyboard::ScopedKeyboardDisabler scoped_keyboard_disabler_; |
200 | 200 |
201 DISALLOW_COPY_AND_ASSIGN(CoreOobeHandler); | 201 DISALLOW_COPY_AND_ASSIGN(CoreOobeHandler); |
202 }; | 202 }; |
203 | 203 |
204 } // namespace chromeos | 204 } // namespace chromeos |
205 | 205 |
206 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ | 206 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_CORE_OOBE_HANDLER_H_ |
OLD | NEW |