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_PERSONAL_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "chrome/browser/browser_signin.h" | 10 #include "chrome/browser/browser_signin.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void ThemesReset(const ListValue* args); | 46 void ThemesReset(const ListValue* args); |
47 #if defined(TOOLKIT_GTK) | 47 #if defined(TOOLKIT_GTK) |
48 void ThemesSetGTK(const ListValue* args); | 48 void ThemesSetGTK(const ListValue* args); |
49 #endif | 49 #endif |
50 | 50 |
51 #if defined(OS_CHROMEOS) | 51 #if defined(OS_CHROMEOS) |
52 void LoadAccountPicture(const ListValue* args); | 52 void LoadAccountPicture(const ListValue* args); |
53 NotificationRegistrar registrar_; | 53 NotificationRegistrar registrar_; |
54 #endif | 54 #endif |
55 | 55 |
| 56 // Sends an array of Profile objects to javascript. |
| 57 // Each object is of the form: |
| 58 // profileInfo = { |
| 59 // name: "Profile Name", |
| 60 // iconURL: "chrome://path/to/icon/image", |
| 61 // filePath: "/path/to/profile/data/on/disk", |
| 62 // isCurrentProfile: false |
| 63 // }; |
| 64 void SendProfilesInfo(); |
| 65 |
| 66 // Asynchronously opens a new browser window to create a new profile. |
| 67 // |args| is not used. |
| 68 void CreateProfile(const ListValue* args); |
| 69 |
56 // True if the multiprofiles switch is enabled. | 70 // True if the multiprofiles switch is enabled. |
57 bool multiprofile_; | 71 bool multiprofile_; |
58 | 72 |
59 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); | 73 DISALLOW_COPY_AND_ASSIGN(PersonalOptionsHandler); |
60 }; | 74 }; |
61 | 75 |
62 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ | 76 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PERSONAL_OPTIONS_HANDLER_H_ |
OLD | NEW |