Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4766)

Unified Diff: chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h

Issue 8895023: Options2: Pull the trigger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DIAF. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options2/chromeos/accounts_options_handler.h
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 0000000000000000000000000000000000000000..f16c5ba24e1d3403f723ee1c281b621bc95c0c9c
--- /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_

Powered by Google App Engine
This is Rietveld 408576698