OLD | NEW |
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_MANAGE_PROFILE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/webui/options/options_ui.h" | 9 #include "chrome/browser/ui/webui/options/options_ui.h" |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Given |args| of the form: [ {number} profileIndex ] | 59 // Given |args| of the form: [ {number} profileIndex ] |
60 // Sends an object to WebUI of the form: | 60 // Sends an object to WebUI of the form: |
61 // profileInfo = { | 61 // profileInfo = { |
62 // name: "Profile Name", | 62 // name: "Profile Name", |
63 // iconURL: "chrome://path/to/icon/image", | 63 // iconURL: "chrome://path/to/icon/image", |
64 // filePath: "/path/to/profile/data/on/disk" | 64 // filePath: "/path/to/profile/data/on/disk" |
65 // isCurrentProfile: false, | 65 // isCurrentProfile: false, |
66 // }; | 66 // }; |
67 void RequestProfileInfo(const base::ListValue* args); | 67 void RequestProfileInfo(const base::ListValue* args); |
68 | 68 |
| 69 // Callback for the 'profileIconSelectionChanged' message. Used to update the |
| 70 // name in the manager profile dialog based on the selected icon. |
| 71 void ProfileIconSelectionChanged(const base::ListValue* args); |
| 72 |
| 73 // Send all profile icons to the overlay. |
| 74 void SendProfileIcons(); |
| 75 |
| 76 // URL for the current profile's GAIA picture. |
| 77 std::string gaia_picture_url_; |
| 78 |
69 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 79 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
70 }; | 80 }; |
71 | 81 |
72 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 82 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |