OLD | NEW |
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_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/ui/webui/options/options_ui.h" | 11 #include "chrome/browser/ui/webui/options/options_ui.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 namespace options { | 14 namespace options { |
15 | 15 |
16 // Consumer management overlay page UI handler. | 16 // Consumer management overlay page UI handler. |
17 class ConsumerManagementHandler : public ::options::OptionsPageUIHandler { | 17 class ConsumerManagementHandler : public ::options::OptionsPageUIHandler { |
18 public: | 18 public: |
19 ConsumerManagementHandler(); | 19 ConsumerManagementHandler(); |
20 virtual ~ConsumerManagementHandler(); | 20 virtual ~ConsumerManagementHandler(); |
21 | 21 |
22 // OptionsPageUIHandler implementation. | 22 // OptionsPageUIHandler implementation. |
23 virtual void GetLocalizedValues( | 23 virtual void GetLocalizedValues( |
24 base::DictionaryValue* localized_strings) OVERRIDE; | 24 base::DictionaryValue* localized_strings) OVERRIDE; |
25 virtual void RegisterMessages() OVERRIDE; | 25 virtual void RegisterMessages() OVERRIDE; |
26 virtual void InitializeHandler() OVERRIDE; | |
27 | 26 |
28 private: | 27 private: |
29 // Handles the button click events from the browser options page. | 28 // Handles the button click events from the browser options page. |
30 void HandleEnrollConsumerManagement(const base::ListValue* args); | 29 void HandleEnrollConsumerManagement(const base::ListValue* args); |
31 void HandleUnenrollConsumerManagement(const base::ListValue* args); | 30 void HandleUnenrollConsumerManagement(const base::ListValue* args); |
32 | 31 |
33 // Starts the enrollment process. | |
34 void StartEnrollment(); | |
35 | |
36 // Starts the unenrollment process. | |
37 void StartUnenrollment(); | |
38 | |
39 // Updates the options page UI with the enrollment status. | |
40 void SetEnrollmentStatus(bool is_enrolled); | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementHandler); | 32 DISALLOW_COPY_AND_ASSIGN(ConsumerManagementHandler); |
43 }; | 33 }; |
44 | 34 |
45 } // namespace options | 35 } // namespace options |
46 } // namespace chromeos | 36 } // namespace chromeos |
47 | 37 |
48 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_
H_ | 38 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_CONSUMER_MANAGEMENT_HANDLER_
H_ |
OLD | NEW |