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

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

Issue 23093020: Set the WM_CLASS property of X11 windows in Linux Aura build. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to reviews. Created 7 years, 3 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_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 13 matching lines...) Expand all
24 // Returns true on success, or false if no such path could be found. 24 // Returns true on success, or false if no such path could be found.
25 // Called on the FILE thread. 25 // Called on the FILE thread.
26 bool GetDataWriteLocation(base::Environment* env, base::FilePath* search_path); 26 bool GetDataWriteLocation(base::Environment* env, base::FilePath* search_path);
27 27
28 // Get the list of paths to search for application data files, in order of 28 // Get the list of paths to search for application data files, in order of
29 // preference, as specified in the XDG Base Directory Specification: 29 // preference, as specified in the XDG Base Directory Specification:
30 // http://standards.freedesktop.org/basedir-spec/latest/ 30 // http://standards.freedesktop.org/basedir-spec/latest/
31 // Called on the FILE thread. 31 // Called on the FILE thread.
32 std::vector<base::FilePath> GetDataSearchLocations(base::Environment* env); 32 std::vector<base::FilePath> GetDataSearchLocations(base::Environment* env);
33 33
34 // Gets the name for use as the res_class (and possibly res_name) of the
35 // window's WM_CLASS property. This is the program name from argv[0], with the
36 // first letter capitalized. Equivalent to GDK's gdk_get_program_class().
37 std::string GetProgramClassName();
38
34 // Returns filename of the desktop shortcut used to launch the browser. 39 // Returns filename of the desktop shortcut used to launch the browser.
35 std::string GetDesktopName(base::Environment* env); 40 std::string GetDesktopName(base::Environment* env);
36 41
37 // Returns name of the browser icon (without a path or file extension). 42 // Returns name of the browser icon (without a path or file extension).
38 std::string GetIconName(); 43 std::string GetIconName();
39 44
40 // Returns the set of locations in which shortcuts are installed for the 45 // Returns the set of locations in which shortcuts are installed for the
41 // extension with |extension_id| in |profile_path|. 46 // extension with |extension_id| in |profile_path|.
42 // This searches the file system for .desktop files in appropriate locations. A 47 // This searches the file system for .desktop files in appropriate locations. A
43 // shortcut with NoDisplay=true causes hidden to become true, instead of 48 // shortcut with NoDisplay=true causes hidden to become true, instead of
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void DeleteDesktopShortcuts(const base::FilePath& profile_path, 113 void DeleteDesktopShortcuts(const base::FilePath& profile_path,
109 const std::string& extension_id); 114 const std::string& extension_id);
110 115
111 // Delete any desktop shortcuts on desktop or in the application menu that have 116 // Delete any desktop shortcuts on desktop or in the application menu that have
112 // for the profile in |profile_path|. 117 // for the profile in |profile_path|.
113 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path); 118 void DeleteAllDesktopShortcuts(const base::FilePath& profile_path);
114 119
115 } // namespace ShellIntegrationLinux 120 } // namespace ShellIntegrationLinux
116 121
117 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_ 122 #endif // CHROME_BROWSER_SHELL_INTEGRATION_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/shell_integration_linux.cc » ('j') | chrome/browser/ui/views/frame/browser_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698