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

Side by Side Diff: chrome/browser/web_applications/web_app.h

Issue 2131463002: Purge the App Launcher code from Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Zap mac-specific icon assets Created 4 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
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_WEB_APPLICATIONS_WEB_APP_H_ 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Create shortcuts for web application based on given shortcut data. 180 // Create shortcuts for web application based on given shortcut data.
181 // |shortcut_info| contains information about the shortcuts to create, and 181 // |shortcut_info| contains information about the shortcuts to create, and
182 // |locations| contains information about where to create them, while 182 // |locations| contains information about where to create them, while
183 // |file_handlers_info| contains information about the file handlers to create. 183 // |file_handlers_info| contains information about the file handlers to create.
184 void CreateShortcutsWithInfo( 184 void CreateShortcutsWithInfo(
185 ShortcutCreationReason reason, 185 ShortcutCreationReason reason,
186 const ShortcutLocations& locations, 186 const ShortcutLocations& locations,
187 std::unique_ptr<ShortcutInfo> shortcut_info, 187 std::unique_ptr<ShortcutInfo> shortcut_info,
188 const extensions::FileHandlersInfo& file_handlers_info); 188 const extensions::FileHandlersInfo& file_handlers_info);
189 189
190 // Currently only called by app_list_service_mac to create a shim for the
191 // app launcher.
192 void CreateNonAppShortcut(const ShortcutLocations& locations,
193 std::unique_ptr<ShortcutInfo> shortcut_info);
194
195 // Creates shortcuts for an app. This loads the app's icon from disk, and calls 190 // Creates shortcuts for an app. This loads the app's icon from disk, and calls
196 // CreateShortcutsWithInfo(). If you already have a ShortcutInfo with the app's 191 // CreateShortcutsWithInfo(). If you already have a ShortcutInfo with the app's
197 // icon loaded, you should use CreateShortcutsWithInfo() directly. 192 // icon loaded, you should use CreateShortcutsWithInfo() directly.
198 void CreateShortcuts(ShortcutCreationReason reason, 193 void CreateShortcuts(ShortcutCreationReason reason,
199 const ShortcutLocations& locations, 194 const ShortcutLocations& locations,
200 Profile* profile, 195 Profile* profile,
201 const extensions::Extension* app); 196 const extensions::Extension* app);
202 197
203 // Delete all shortcuts that have been created for the given profile and 198 // Delete all shortcuts that have been created for the given profile and
204 // extension. 199 // extension.
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 274
280 // Sanitizes |name| and returns a version of it that is safe to use as an 275 // Sanitizes |name| and returns a version of it that is safe to use as an
281 // on-disk file name . 276 // on-disk file name .
282 base::FilePath GetSanitizedFileName(const base::string16& name); 277 base::FilePath GetSanitizedFileName(const base::string16& name);
283 278
284 } // namespace internals 279 } // namespace internals
285 280
286 } // namespace web_app 281 } // namespace web_app
287 282
288 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 283 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698