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

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

Issue 9958006: Create Linux platform app shortcuts to run in their own process. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved new function into shell_integration_linux.h Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/shell_integration.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 static FilePath GetDesktopShortcutFilename(const GURL& url); 130 static FilePath GetDesktopShortcutFilename(const GURL& url);
131 131
132 // Returns contents for .desktop file based on |template_contents|, |url| 132 // Returns contents for .desktop file based on |template_contents|, |url|
133 // and |title|. The |template_contents| should be contents of .desktop file 133 // and |title|. The |template_contents| should be contents of .desktop file
134 // used to launch Chrome. 134 // used to launch Chrome.
135 static std::string GetDesktopFileContents( 135 static std::string GetDesktopFileContents(
136 const std::string& template_contents, 136 const std::string& template_contents,
137 const std::string& app_name, 137 const std::string& app_name,
138 const GURL& url, 138 const GURL& url,
139 const std::string& extension_id, 139 const std::string& extension_id,
140 const bool is_platform_app,
141 const FilePath& web_app_path,
142 const FilePath& extension_path,
140 const string16& title, 143 const string16& title,
141 const std::string& icon_name); 144 const std::string& icon_name);
142 145
143 static void CreateDesktopShortcut(const ShortcutInfo& shortcut_info, 146 static bool CreateDesktopShortcut(const ShortcutInfo& shortcut_info,
144 const std::string& shortcut_template); 147 const std::string& shortcut_template);
145 #endif // defined(USE_X11) 148 #endif // defined(USE_X11)
146 149
147 #if defined(OS_WIN) 150 #if defined(OS_WIN)
148 // Generates Win7 app id for given app name and profile path. The returned app 151 // Generates Win7 app id for given app name and profile path. The returned app
149 // id is in the format of "|app_name|[.<profile_id>]". "profile_id" is 152 // id is in the format of "|app_name|[.<profile_id>]". "profile_id" is
150 // appended when user override the default value. 153 // appended when user override the default value.
151 static string16 GetAppId(const string16& app_name, 154 static string16 GetAppId(const string16& app_name,
152 const FilePath& profile_path); 155 const FilePath& profile_path);
153 156
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 // Set Chrome as the default handler for this protocol. 296 // Set Chrome as the default handler for this protocol.
294 virtual void SetAsDefault() OVERRIDE; 297 virtual void SetAsDefault() OVERRIDE;
295 298
296 std::string protocol_; 299 std::string protocol_;
297 300
298 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 301 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
299 }; 302 };
300 }; 303 };
301 304
302 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 305 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/shell_integration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698