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

Side by Side Diff: chrome/browser/ui/webui/options/manage_profile_handler.h

Issue 11968034: Enable profile switching for standalone App Launcher via the Settings App. (Closed) Base URL: git://nomatter.syd/chromium/src.git@master
Patch Set: respond to comments Created 7 years, 11 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
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_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 73 // Callback for the "deleteProfile" message. Deletes the given profile.
74 // |args| is of the form: [ {string} profileFilePath ] 74 // |args| is of the form: [ {string} profileFilePath ]
75 void DeleteProfile(const base::ListValue* args); 75 void DeleteProfile(const base::ListValue* args);
76 76
77 #if defined(ENABLE_SETTINGS_APP)
78 // Callback for the "profilesAppListSwitch" message. Asks the
79 // app_list_controller to change the profile registered for the AppList.
80 // |args| is of the form: [ {string} profileFilePath ]
81 void ProfilesAppListSwitch(const base::ListValue* args);
Evan Stade 2013/01/23 22:18:33 can you make this function and message name more s
koz (OOO until 15th September) 2013/01/25 00:32:46 I've changed it to SwitchAppListProfile().
82 #endif
83
77 // Callback for the 'profileIconSelectionChanged' message. Used to update the 84 // Callback for the 'profileIconSelectionChanged' message. Used to update the
78 // name in the manager profile dialog based on the selected icon. 85 // name in the manager profile dialog based on the selected icon.
79 void ProfileIconSelectionChanged(const base::ListValue* args); 86 void ProfileIconSelectionChanged(const base::ListValue* args);
80 87
81 // Callback for the "requestHasProfileShortcuts" message, which is called 88 // Callback for the "requestHasProfileShortcuts" message, which is called
82 // when editing an existing profile. Asks the profile shortcut manager whether 89 // when editing an existing profile. Asks the profile shortcut manager whether
83 // the profile has shortcuts and gets the result in |OnHasProfileShortcuts()|. 90 // the profile has shortcuts and gets the result in |OnHasProfileShortcuts()|.
84 // |args| is of the form: [ {string} profileFilePath ] 91 // |args| is of the form: [ {string} profileFilePath ]
85 void RequestHasProfileShortcuts(const base::ListValue* args); 92 void RequestHasProfileShortcuts(const base::ListValue* args);
86 93
87 // Callback invoked from the profile manager indicating whether the profile 94 // Callback invoked from the profile manager indicating whether the profile
88 // being edited has any desktop shortcuts. 95 // being edited has any desktop shortcuts.
89 void OnHasProfileShortcuts(bool has_shortcuts); 96 void OnHasProfileShortcuts(bool has_shortcuts);
90 97
91 // URL for the current profile's GAIA picture. 98 // URL for the current profile's GAIA picture.
92 std::string gaia_picture_url_; 99 std::string gaia_picture_url_;
93 100
94 // For generating weak pointers to itself for callbacks. 101 // For generating weak pointers to itself for callbacks.
95 base::WeakPtrFactory<ManageProfileHandler> weak_factory_; 102 base::WeakPtrFactory<ManageProfileHandler> weak_factory_;
96 103
97 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler); 104 DISALLOW_COPY_AND_ASSIGN(ManageProfileHandler);
98 }; 105 };
99 106
100 } // namespace options 107 } // namespace options
101 108
102 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_ 109 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_MANAGE_PROFILE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698