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

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

Issue 253403002: Linux: The App Launcher now appears on the "Internet" menu, not "Other". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use a global array, instead of a global pointer to a string. Created 6 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
« no previous file with comments | « no previous file | chrome/browser/shell_integration_linux.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_LINUX_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Returns contents for .desktop file based on |url| and |title|. If 87 // Returns contents for .desktop file based on |url| and |title|. If
88 // |no_display| is true, the shortcut will not be visible to the user in menus. 88 // |no_display| is true, the shortcut will not be visible to the user in menus.
89 std::string GetDesktopFileContents(const base::FilePath& chrome_exe_path, 89 std::string GetDesktopFileContents(const base::FilePath& chrome_exe_path,
90 const std::string& app_name, 90 const std::string& app_name,
91 const GURL& url, 91 const GURL& url,
92 const std::string& extension_id, 92 const std::string& extension_id,
93 const base::string16& title, 93 const base::string16& title,
94 const std::string& icon_name, 94 const std::string& icon_name,
95 const base::FilePath& profile_path, 95 const base::FilePath& profile_path,
96 const std::string& categories,
96 bool no_display); 97 bool no_display);
97 98
98 // Returns contents for .desktop file that executes command_line. This is a more 99 // Returns contents for .desktop file that executes command_line. This is a more
99 // general form of GetDesktopFileContents. If |no_display| is true, the shortcut 100 // general form of GetDesktopFileContents. If |no_display| is true, the shortcut
100 // will not be visible to the user in menus. 101 // will not be visible to the user in menus.
101 std::string GetDesktopFileContentsForCommand( 102 std::string GetDesktopFileContentsForCommand(
102 const base::CommandLine& command_line, 103 const base::CommandLine& command_line,
103 const std::string& app_name, 104 const std::string& app_name,
104 const GURL& url, 105 const GURL& url,
105 const base::string16& title, 106 const base::string16& title,
106 const std::string& icon_name, 107 const std::string& icon_name,
108 const std::string& categories,
107 bool no_display); 109 bool no_display);
108 110
109 // Returns contents for .directory file named |title| with icon |icon_name|. If 111 // Returns contents for .directory file named |title| with icon |icon_name|. If
110 // |icon_name| is empty, will use the Chrome icon. 112 // |icon_name| is empty, will use the Chrome icon.
111 std::string GetDirectoryFileContents(const base::string16& title, 113 std::string GetDirectoryFileContents(const base::string16& title,
112 const std::string& icon_name); 114 const std::string& icon_name);
113 115
114 // Create shortcuts on the desktop or in the application menu (as specified by 116 // Create shortcuts on the desktop or in the application menu (as specified by
115 // |shortcut_info|), for the web page or extension in |shortcut_info|. 117 // |shortcut_info|), for the web page or extension in |shortcut_info|.
116 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut 118 // For extensions, duplicate shortcuts are avoided, so if a requested shortcut
(...skipping 13 matching lines...) Expand all
130 void DeleteDesktopShortcuts(const base::FilePath& profile_path, 132 void DeleteDesktopShortcuts(const base::FilePath& profile_path,
131 const std::string& extension_id); 133 const std::string& extension_id);
132 134
133 // Delete any desktop shortcuts on desktop or in the application menu that have 135 // Delete any desktop shortcuts on desktop or in the application menu that have
134 // for the profile in |profile_path|. 136 // for the profile in |profile_path|.
135 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); 137 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path);
136 138
137 } // namespace ShellIntegrationLinux 139 } // namespace ShellIntegrationLinux
138 140
139 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 141 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698