OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Callback for the "setProfileNameAndIcon" message. Sets the name and icon | 64 // Callback for the "setProfileNameAndIcon" message. Sets the name and icon |
65 // of a given profile. | 65 // of a given profile. |
66 // |args| is of the form: [ | 66 // |args| is of the form: [ |
67 // /*string*/ profileFilePath, | 67 // /*string*/ profileFilePath, |
68 // /*string*/ newProfileName, | 68 // /*string*/ newProfileName, |
69 // /*string*/ newProfileIconURL | 69 // /*string*/ newProfileIconURL |
70 // ] | 70 // ] |
71 void SetProfileNameAndIcon(const base::ListValue* args); | 71 void SetProfileNameAndIcon(const base::ListValue* args); |
72 | 72 |
73 // Callback for the "deleteProfile" message. Deletes the given profile. | |
74 // |args| is of the form: [ {string} profileFilePath ] | |
75 void DeleteProfile(const base::ListValue* args); | |
76 | |
77 #if defined(ENABLE_SETTINGS_APP) | 73 #if defined(ENABLE_SETTINGS_APP) |
78 // Callback for the "switchAppListProfile" message. Asks the | 74 // Callback for the "switchAppListProfile" message. Asks the |
79 // app_list_controller to change the profile registered for the AppList. | 75 // app_list_controller to change the profile registered for the AppList. |
80 // |args| is of the form: [ {string} profileFilePath ] | 76 // |args| is of the form: [ {string} profileFilePath ] |
81 void SwitchAppListProfile(const base::ListValue* args); | 77 void SwitchAppListProfile(const base::ListValue* args); |
82 #endif | 78 #endif |
83 | 79 |
84 // Callback for the 'profileIconSelectionChanged' message. Used to update the | 80 // Callback for the 'profileIconSelectionChanged' message. Used to update the |
85 // name in the manager profile dialog based on the selected icon. | 81 // name in the manager profile dialog based on the selected icon. |
86 void ProfileIconSelectionChanged(const base::ListValue* args); | 82 void ProfileIconSelectionChanged(const base::ListValue* args); |
(...skipping 28 matching lines...) Expand all Loading... |
115 | 111 |
116 // For generating weak pointers to itself for callbacks. | 112 // For generating weak pointers to itself for callbacks. |
117 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; | 113 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; |
118 | 114 |
119 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 115 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
120 }; | 116 }; |
121 | 117 |
122 } // namespace options | 118 } // namespace options |
123 | 119 |
124 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 120 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |