diff options
Diffstat (limited to 'chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h')
-rw-r--r-- | chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h b/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h new file mode 100644 index 0000000..f16c5ba --- /dev/null +++ b/chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h @@ -0,0 +1,40 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ +#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ +#pragma once + +#include "base/compiler_specific.h" +#include "chrome/browser/ui/webui/options2/options_ui2.h" + +namespace chromeos { + +// ChromeOS accounts options page handler. +class AccountsOptionsHandler : public OptionsPage2UIHandler { + public: + AccountsOptionsHandler(); + virtual ~AccountsOptionsHandler(); + + // WebUIMessageHandler implementation. + virtual void RegisterMessages() OVERRIDE; + + // OptionsPage2UIHandler implementation. + virtual void GetLocalizedValues( + base::DictionaryValue* localized_strings) OVERRIDE; + + private: + // Javascript callbacks to whitelist/unwhitelist user. + void HandleWhitelistUser(const base::ListValue* args); + void HandleUnwhitelistUser(const base::ListValue* args); + + // Javascript callback to auto add existing users to white list. + void HandleWhitelistExistingUsers(const base::ListValue* args); + + DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); +}; + +} // namespace chromeos + +#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ |