OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
| 11 |
| 12 namespace chromeos { |
| 13 |
| 14 // ChromeOS accounts options page handler. |
| 15 class AccountsOptionsHandler : public OptionsPage2UIHandler { |
| 16 public: |
| 17 AccountsOptionsHandler(); |
| 18 virtual ~AccountsOptionsHandler(); |
| 19 |
| 20 // WebUIMessageHandler implementation. |
| 21 virtual void RegisterMessages() OVERRIDE; |
| 22 |
| 23 // OptionsPage2UIHandler implementation. |
| 24 virtual void GetLocalizedValues( |
| 25 base::DictionaryValue* localized_strings) OVERRIDE; |
| 26 |
| 27 private: |
| 28 // Javascript callbacks to whitelist/unwhitelist user. |
| 29 void HandleWhitelistUser(const base::ListValue* args); |
| 30 void HandleUnwhitelistUser(const base::ListValue* args); |
| 31 |
| 32 // Javascript callback to auto add existing users to white list. |
| 33 void HandleWhitelistExistingUsers(const base::ListValue* args); |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); |
| 36 }; |
| 37 |
| 38 } // namespace chromeos |
| 39 |
| 40 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |
OLD | NEW |