Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1366)

Side by Side Diff: chrome/browser/ui/webui/options2/manage_profile_handler2.h

Issue 10689084: Merge 143541 - Fix edit profile link in NTP (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/options2/options_ui2.h" 9 #include "chrome/browser/ui/webui/options2/options_ui2.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // /*string*/ profileFilePath, 51 // /*string*/ profileFilePath,
52 // /*string*/ newProfileName, 52 // /*string*/ newProfileName,
53 // /*string*/ newProfileIconURL 53 // /*string*/ newProfileIconURL
54 // ] 54 // ]
55 void SetProfileNameAndIcon(const base::ListValue* args); 55 void SetProfileNameAndIcon(const base::ListValue* args);
56 56
57 // Callback for the "deleteProfile" message. Deletes the given profile. 57 // Callback for the "deleteProfile" message. Deletes the given profile.
58 // |args| is of the form: [ {string} profileFilePath ] 58 // |args| is of the form: [ {string} profileFilePath ]
59 void DeleteProfile(const base::ListValue* args); 59 void DeleteProfile(const base::ListValue* args);
60 60
61 // Callback for the "requestProfileInfo" message.
62 // Given |args| of the form: [ {number} profileIndex ]
63 // Sends an object to WebUI of the form:
64 // profileInfo = {
65 // name: "Profile Name",
66 // iconURL: "chrome://path/to/icon/image",
67 // filePath: "/path/to/profile/data/on/disk"
68 // isCurrentProfile: false,
69 // };
70 void RequestProfileInfo(const base::ListValue* args);
71
72 // Callback for the 'profileIconSelectionChanged' message. Used to update the 61 // Callback for the 'profileIconSelectionChanged' message. Used to update the
73 // name in the manager profile dialog based on the selected icon. 62 // name in the manager profile dialog based on the selected icon.
74 void ProfileIconSelectionChanged(const base::ListValue* args); 63 void ProfileIconSelectionChanged(const base::ListValue* args);
75 64
76 // Send all profile icons to the overlay. 65 // Send all profile icons to the overlay.
77 void SendProfileIcons(); 66 void SendProfileIcons();
78 67
79 // URL for the current profile's GAIA picture. 68 // URL for the current profile's GAIA picture.
80 std::string gaia_picture_url_; 69 std::string gaia_picture_url_;
81 70
82 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); 71 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler);
83 }; 72 };
84 73
85 } // namespace options2 74 } // namespace options2
86 75
87 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_ 76 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MANAGE_PROFILE_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698