| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 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_SIGNIN_USER_CHOOSER_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_CHOOSER_SCREEN_HANDLER_H_ |
| 7 |
| 8 #include "base/values.h" |
| 9 #include "chrome/browser/profiles/avatar_menu_model.h" |
| 10 #include "content/public/browser/web_ui_message_handler.h" |
| 11 |
| 12 class UserChooserScreenHandler : public content::WebUIMessageHandler { |
| 13 public: |
| 14 UserChooserScreenHandler(); |
| 15 virtual ~UserChooserScreenHandler(); |
| 16 |
| 17 // WebUIMessageHandler implementation. |
| 18 virtual void RegisterMessages() OVERRIDE; |
| 19 |
| 20 void GetLocalizedValues(base::DictionaryValue* localized_strings); |
| 21 |
| 22 private: |
| 23 void HandleInitialize(const base::ListValue* args); |
| 24 void HandleAddUser(const base::ListValue* args); |
| 25 void HandleLaunchGuest(const base::ListValue* args); |
| 26 void HandleLaunchUser(const base::ListValue* args); |
| 27 void HandleRemoveUser(const base::ListValue* args); |
| 28 |
| 29 // Sends user list to account chooser. |
| 30 void SendUserList(); |
| 31 |
| 32 // A model of all the profile information used to launch |
| 33 // a selected user. |
| 34 scoped_ptr<AvatarMenuModel> avatar_menu_model_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(UserChooserScreenHandler); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_CHOOSER_SCREEN_HANDLER_H_ |
| OLD | NEW |