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_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 10 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 namespace options2 { | 13 namespace options2 { |
14 | 14 |
15 // ChromeOS accounts options page handler. | 15 // ChromeOS accounts options page handler. |
16 class AccountsOptionsHandler : public OptionsPageUIHandler { | 16 class AccountsOptionsHandler : public ::options2::OptionsPageUIHandler { |
17 public: | 17 public: |
18 AccountsOptionsHandler(); | 18 AccountsOptionsHandler(); |
19 virtual ~AccountsOptionsHandler(); | 19 virtual ~AccountsOptionsHandler(); |
20 | 20 |
21 // WebUIMessageHandler implementation. | 21 // WebUIMessageHandler implementation. |
22 virtual void RegisterMessages() OVERRIDE; | 22 virtual void RegisterMessages() OVERRIDE; |
23 | 23 |
24 // OptionsPageUIHandler implementation. | 24 // OptionsPageUIHandler implementation. |
25 virtual void GetLocalizedValues( | 25 virtual void GetLocalizedValues( |
26 base::DictionaryValue* localized_strings) OVERRIDE; | 26 base::DictionaryValue* localized_strings) OVERRIDE; |
27 | 27 |
28 private: | 28 private: |
29 // Javascript callbacks to whitelist/unwhitelist user. | 29 // Javascript callbacks to whitelist/unwhitelist user. |
30 void HandleWhitelistUser(const base::ListValue* args); | 30 void HandleWhitelistUser(const base::ListValue* args); |
31 void HandleUnwhitelistUser(const base::ListValue* args); | 31 void HandleUnwhitelistUser(const base::ListValue* args); |
32 | 32 |
33 // Javascript callback to auto add existing users to white list. | 33 // Javascript callback to auto add existing users to white list. |
34 void HandleWhitelistExistingUsers(const base::ListValue* args); | 34 void HandleWhitelistExistingUsers(const base::ListValue* args); |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); | 36 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace options2 | 39 } // namespace options2 |
40 } // namespace chromeos | 40 } // namespace chromeos |
41 | 41 |
42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H
_ | 42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER2_H
_ |
OLD | NEW |