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

Side by Side Diff: chrome/browser/web_applications/web_app.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: 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_WEB_APPLICATIONS_WEB_APP_H_ 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 bool IsValidUrl(const GURL& url); 90 bool IsValidUrl(const GURL& url);
91 91
92 #if defined(TOOLKIT_VIEWS) 92 #if defined(TOOLKIT_VIEWS)
93 // Extracts icons info from web app data. Take only square shaped icons and 93 // Extracts icons info from web app data. Take only square shaped icons and
94 // sort them from smallest to largest. 94 // sort them from smallest to largest.
95 typedef std::vector<WebApplicationInfo::IconInfo> IconInfoList; 95 typedef std::vector<WebApplicationInfo::IconInfo> IconInfoList;
96 void GetIconsInfo(const WebApplicationInfo& app_info, 96 void GetIconsInfo(const WebApplicationInfo& app_info,
97 IconInfoList* icons); 97 IconInfoList* icons);
98 #endif 98 #endif
99 99
100 #if defined(TOOLKIT_GTK) 100 // On Linux, windows that correspond to web apps need to have a deterministic
benwells 2013/08/26 00:10:29 Should the ifdef become #if defined(OS_LINUX) inst
Matt Giuca 2013/08/26 04:46:09 Done.
101 // GTK+ windows that correspond to web apps need to have a deterministic (and 101 // (and different) WMClass than normal chrome windows so the window manager
102 // different) WMClass than normal chrome windows so the window manager groups 102 // groups them as a separate application.
103 // them as a separate application.
104 std::string GetWMClassFromAppName(std::string app_name); 103 std::string GetWMClassFromAppName(std::string app_name);
105 #endif
106 104
107 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. 105 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts.
108 string16 GetAppShortcutsSubdirName(); 106 string16 GetAppShortcutsSubdirName();
109 107
110 namespace internals { 108 namespace internals {
111 109
112 #if defined(OS_WIN) 110 #if defined(OS_WIN)
113 std::vector<base::FilePath> GetShortcutPaths( 111 std::vector<base::FilePath> GetShortcutPaths(
114 const ShellIntegration::ShortcutLocations& creation_locations); 112 const ShellIntegration::ShortcutLocations& creation_locations);
115 #endif 113 #endif
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 145
148 // Sanitizes |name| and returns a version of it that is safe to use as an 146 // Sanitizes |name| and returns a version of it that is safe to use as an
149 // on-disk file name . 147 // on-disk file name .
150 base::FilePath GetSanitizedFileName(const string16& name); 148 base::FilePath GetSanitizedFileName(const string16& name);
151 149
152 } // namespace internals 150 } // namespace internals
153 151
154 } // namespace web_app 152 } // namespace web_app
155 153
156 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ 154 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698