| 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_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 // Asynchronously opens a new browser window to create a new profile. | 147 // Asynchronously opens a new browser window to create a new profile. |
| 148 // The arguments are as follows: | 148 // The arguments are as follows: |
| 149 // 0: name (string) | 149 // 0: name (string) |
| 150 // 1: icon (string) | 150 // 1: icon (string) |
| 151 // 2: a flag stating whether we should create a profile desktop shortcut | 151 // 2: a flag stating whether we should create a profile desktop shortcut |
| 152 // (optional, boolean) | 152 // (optional, boolean) |
| 153 // 3: a flag stating whether the user should be managed (optional, boolean) | 153 // 3: a flag stating whether the user should be managed (optional, boolean) |
| 154 void CreateProfile(const base::ListValue* args); | 154 void CreateProfile(const base::ListValue* args); |
| 155 | 155 |
| 156 // Handles final tasks when a new profile has been created, running any queued | 156 // Updates the UI as the final task after a new profile has been created. |
| 157 // callbacks and updating the UI. | 157 void OnProfileCreatedShowUserFeedback( |
| 158 void OnProfileCreated( | |
| 159 chrome::HostDesktopType desktop_type, | 158 chrome::HostDesktopType desktop_type, |
| 160 bool is_managed, | 159 bool is_managed, |
| 161 const std::vector<ProfileManager::CreateCallback>& callbacks, | |
| 162 Profile* profile, | 160 Profile* profile, |
| 163 Profile::CreateStatus status); | 161 Profile::CreateStatus status); |
| 164 | 162 |
| 163 // Deletes the given profile. Expects one argument: |
| 164 // 0: profile file path (string) |
| 165 void DeleteProfile(const base::ListValue* args); |
| 166 |
| 167 // Deletes the profile at the given |file_path|. |
| 168 void DeleteProfileAtPath(base::FilePath file_path); |
| 169 |
| 165 void ObserveThemeChanged(); | 170 void ObserveThemeChanged(); |
| 166 void ThemesReset(const base::ListValue* args); | 171 void ThemesReset(const base::ListValue* args); |
| 167 #if defined(TOOLKIT_GTK) | 172 #if defined(TOOLKIT_GTK) |
| 168 void ThemesSetGTK(const base::ListValue* args); | 173 void ThemesSetGTK(const base::ListValue* args); |
| 169 #endif | 174 #endif |
| 170 | 175 |
| 171 #if defined(OS_CHROMEOS) | 176 #if defined(OS_CHROMEOS) |
| 172 void UpdateAccountPicture(); | 177 void UpdateAccountPicture(); |
| 173 #endif | 178 #endif |
| 174 | 179 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 DoublePrefMember default_zoom_level_; | 314 DoublePrefMember default_zoom_level_; |
| 310 | 315 |
| 311 PrefChangeRegistrar profile_pref_registrar_; | 316 PrefChangeRegistrar profile_pref_registrar_; |
| 312 | 317 |
| 313 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 318 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 314 }; | 319 }; |
| 315 | 320 |
| 316 } // namespace options | 321 } // namespace options |
| 317 | 322 |
| 318 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 323 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |