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

Side by Side Diff: chrome/browser/shell_integration.h

Issue 9346013: Publish app shortcuts on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 10 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) 2011 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_SHELL_INTEGRATION_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const std::string& icon_name); 119 const std::string& icon_name);
120 120
121 static void CreateDesktopShortcut(const ShortcutInfo& shortcut_info, 121 static void CreateDesktopShortcut(const ShortcutInfo& shortcut_info,
122 const std::string& shortcut_template); 122 const std::string& shortcut_template);
123 #endif // defined(USE_X11) 123 #endif // defined(USE_X11)
124 124
125 #if defined(OS_WIN) 125 #if defined(OS_WIN)
126 // Generates Win7 app id for given app name and profile path. The returned app 126 // Generates Win7 app id for given app name and profile path. The returned app
127 // id is in the format of "|app_name|[.<profile_id>]". "profile_id" is 127 // id is in the format of "|app_name|[.<profile_id>]". "profile_id" is
128 // appended when user override the default value. 128 // appended when user override the default value.
129 static std::wstring GetAppId(const std::wstring& app_name, 129 static string16 GetAppId(const string16& app_name,
130 const FilePath& profile_path); 130 const FilePath& profile_path);
131 131
132 // Generates Win7 app id for Chromium by calling GetAppId with 132 // Generates Win7 app id for Chromium by calling GetAppId with
133 // chrome::kBrowserAppID as app_name. 133 // chrome::kBrowserAppID as app_name.
134 static std::wstring GetChromiumAppId(const FilePath& profile_path); 134 static string16 GetChromiumAppId(const FilePath& profile_path);
135 135
136 // Returns the path to the Chromium icon. This is used to specify the icon 136 // Returns the path to the Chromium icon. This is used to specify the icon
137 // to use for the taskbar group on Win 7. 137 // to use for the taskbar group on Win 7.
138 static string16 GetChromiumIconPath(); 138 static string16 GetChromiumIconPath();
139 139
140 // Migrates existing chrome shortcuts by tagging them with correct app id. 140 // Migrates existing chrome shortcuts by tagging them with correct app id.
141 // see http://crbug.com/28104 141 // see http://crbug.com/28104
142 static void MigrateChromiumShortcuts(); 142 static void MigrateChromiumShortcuts();
143 #endif // defined(OS_WIN) 143 #endif // defined(OS_WIN)
144 144
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // Set Chrome as the default handler for this protocol. 271 // Set Chrome as the default handler for this protocol.
272 virtual void SetAsDefault() OVERRIDE; 272 virtual void SetAsDefault() OVERRIDE;
273 273
274 std::string protocol_; 274 std::string protocol_;
275 275
276 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 276 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
277 }; 277 };
278 }; 278 };
279 279
280 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 280 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/app_shortcut_manager.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698