blob: 9146a837496f87a771ef815eb861b3845ac6a9ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// 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_CHROMEOS_WEBUI_ACCOUNTS_OPTIONS_HANDLER_H_
#define CHROME_BROWSER_CHROMEOS_WEBUI_ACCOUNTS_OPTIONS_HANDLER_H_
#pragma once
#include "chrome/browser/chromeos/webui/cros_options_page_ui_handler.h"
class OptionsManagedBannerHandler;
namespace chromeos {
class UserCrosSettingsProvider;
// ChromeOS accounts options page handler.
class AccountsOptionsHandler : public CrosOptionsPageUIHandler {
public:
AccountsOptionsHandler();
virtual ~AccountsOptionsHandler();
// WebUIMessageHandler implementation.
virtual void RegisterMessages();
// OptionsPageUIHandler implementation.
virtual void GetLocalizedValues(DictionaryValue* localized_strings);
virtual void Initialize();
private:
UserCrosSettingsProvider* users_settings() const;
// Javascript callbacks to whitelist/unwhitelist user.
void WhitelistUser(const ListValue* args);
void UnwhitelistUser(const ListValue* args);
// Javascript callback to fetch known user pictures.
void FetchUserPictures(const ListValue* args);
// Javascript callback to auto add existing users to white list.
void WhitelistExistingUsers(const ListValue* args);
scoped_ptr<OptionsManagedBannerHandler> banner_handler_;
DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_WEBUI_ACCOUNTS_OPTIONS_HANDLER_H_
|