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

Side by Side Diff: chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h

Issue 7171018: User Settings on CrOS now shows the managed banner for enrolled devices. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed comments. Created 9 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_ACCOUNTS_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler. h" 9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler. h"
10 10
11 class OptionsManagedBannerHandler;
12
13 namespace chromeos { 11 namespace chromeos {
14 12
15 class UserCrosSettingsProvider; 13 class UserCrosSettingsProvider;
16 14
17 // ChromeOS accounts options page handler. 15 // ChromeOS accounts options page handler.
18 class AccountsOptionsHandler : public CrosOptionsPageUIHandler { 16 class AccountsOptionsHandler : public CrosOptionsPageUIHandler {
19 public: 17 public:
20 AccountsOptionsHandler(); 18 AccountsOptionsHandler();
21 virtual ~AccountsOptionsHandler(); 19 virtual ~AccountsOptionsHandler();
22 20
23 // WebUIMessageHandler implementation. 21 // WebUIMessageHandler implementation.
24 virtual void RegisterMessages(); 22 virtual void RegisterMessages();
25 23
26 // OptionsPageUIHandler implementation. 24 // OptionsPageUIHandler implementation.
27 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 25 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
28 virtual void Initialize();
29 26
30 private: 27 private:
31 UserCrosSettingsProvider* users_settings() const; 28 UserCrosSettingsProvider* users_settings() const;
32 29
33 // Javascript callbacks to whitelist/unwhitelist user. 30 // Javascript callbacks to whitelist/unwhitelist user.
34 void WhitelistUser(const ListValue* args); 31 void WhitelistUser(const ListValue* args);
35 void UnwhitelistUser(const ListValue* args); 32 void UnwhitelistUser(const ListValue* args);
36 33
37 // Javascript callback to auto add existing users to white list. 34 // Javascript callback to auto add existing users to white list.
38 void WhitelistExistingUsers(const ListValue* args); 35 void WhitelistExistingUsers(const ListValue* args);
39 36
40 scoped_ptr<OptionsManagedBannerHandler> banner_handler_;
41
42 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler); 37 DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler);
43 }; 38 };
44 39
45 } // namespace chromeos 40 } // namespace chromeos
46 41
47 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_ 42 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_ACCOUNTS_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/options/options_util.h ('k') | chrome/browser/ui/webui/options/chromeos/accounts_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698