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

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

Issue 6759076: Add the calculated WMClass to generated .desktop files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests on linux Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 static bool GetDesktopShortcutTemplate(base::Environment* env, 89 static bool GetDesktopShortcutTemplate(base::Environment* env,
90 std::string* output); 90 std::string* output);
91 91
92 // Returns filename for .desktop file based on |url|, sanitized for security. 92 // Returns filename for .desktop file based on |url|, sanitized for security.
93 static FilePath GetDesktopShortcutFilename(const GURL& url); 93 static FilePath GetDesktopShortcutFilename(const GURL& url);
94 94
95 // Returns contents for .desktop file based on |template_contents|, |url| 95 // Returns contents for .desktop file based on |template_contents|, |url|
96 // and |title|. The |template_contents| should be contents of .desktop file 96 // and |title|. The |template_contents| should be contents of .desktop file
97 // used to launch Chrome. 97 // used to launch Chrome.
98 static std::string GetDesktopFileContents( 98 static std::string GetDesktopFileContents(
99 const std::string& template_contents, const GURL& url, 99 const std::string& template_contents,
100 const std::string& extension_id, const string16& title, 100 const std::string& app_name,
101 const GURL& url,
102 const std::string& extension_id,
103 const string16& title,
101 const std::string& icon_name); 104 const std::string& icon_name);
102 105
103 static void CreateDesktopShortcut(const ShortcutInfo& shortcut_info, 106 static void CreateDesktopShortcut(const ShortcutInfo& shortcut_info,
104 const std::string& shortcut_template); 107 const std::string& shortcut_template);
105 #endif // defined(USE_X11) 108 #endif // defined(USE_X11)
106 109
107 #if defined(OS_WIN) 110 #if defined(OS_WIN)
108 // Generates Win7 app id for given app name and profile path. The returned app 111 // Generates Win7 app id for given app name and profile path. The returned app
109 // id is in the format of "|app_name|[.<profile_id>]". "profile_id" is 112 // id is in the format of "|app_name|[.<profile_id>]". "profile_id" is
110 // appended when user override the default value. 113 // appended when user override the default value.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // state. 179 // state.
177 void UpdateUI(DefaultBrowserState state); 180 void UpdateUI(DefaultBrowserState state);
178 181
179 DefaultBrowserObserver* observer_; 182 DefaultBrowserObserver* observer_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker); 184 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker);
182 }; 185 };
183 }; 186 };
184 187
185 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 188 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/shell_integration_linux.cc » ('j') | chrome/browser/shell_integration_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698