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 #include "third_party/skia/include/core/SkBitmap.h" |
10 | 11 |
11 // Chrome personal stuff profiles manage overlay UI handler. | 12 // Chrome personal stuff profiles manage overlay UI handler. |
12 class ManageProfileHandler : public OptionsPageUIHandler { | 13 class ManageProfileHandler : public OptionsPageUIHandler { |
13 public: | 14 public: |
14 ManageProfileHandler(); | 15 ManageProfileHandler(); |
15 virtual ~ManageProfileHandler(); | 16 virtual ~ManageProfileHandler(); |
16 | 17 |
17 // OptionsPageUIHandler: | 18 // OptionsPageUIHandler: |
18 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); | 19 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); |
19 virtual void Initialize(); | 20 virtual void Initialize(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // Given |args| of the form: [ {number} profileIndex ] | 59 // Given |args| of the form: [ {number} profileIndex ] |
59 // Sends an object to WebUI of the form: | 60 // Sends an object to WebUI of the form: |
60 // profileInfo = { | 61 // profileInfo = { |
61 // name: "Profile Name", | 62 // name: "Profile Name", |
62 // iconURL: "chrome://path/to/icon/image", | 63 // iconURL: "chrome://path/to/icon/image", |
63 // filePath: "/path/to/profile/data/on/disk" | 64 // filePath: "/path/to/profile/data/on/disk" |
64 // isCurrentProfile: false, | 65 // isCurrentProfile: false, |
65 // }; | 66 // }; |
66 void RequestProfileInfo(const base::ListValue* args); | 67 void RequestProfileInfo(const base::ListValue* args); |
67 | 68 |
| 69 // Sends all profile icons to the overlay. |
| 70 void SendProfileIcons(); |
| 71 |
| 72 std::string gaia_profile_url_; |
| 73 |
68 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); | 74 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); |
69 }; | 75 }; |
70 | 76 |
71 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ | 77 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ |
OLD | NEW |