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

Side by Side Diff: chrome/browser/shell_integration.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, 4 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_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Set up command line arguments for launching a URL or an app. 139 // Set up command line arguments for launching a URL or an app.
140 // The new command line reuses the current process's user data directory (and 140 // The new command line reuses the current process's user data directory (and
141 // login profile, for ChromeOS). 141 // login profile, for ChromeOS).
142 // If |extension_app_id| is non-empty, the arguments use kAppId=<id>. 142 // If |extension_app_id| is non-empty, the arguments use kAppId=<id>.
143 // Otherwise, kApp=<url> is used. 143 // Otherwise, kApp=<url> is used.
144 static CommandLine CommandLineArgsForLauncher( 144 static CommandLine CommandLineArgsForLauncher(
145 const GURL& url, 145 const GURL& url,
146 const std::string& extension_app_id, 146 const std::string& extension_app_id,
147 const base::FilePath& profile_path); 147 const base::FilePath& profile_path);
148 148
149 // Gets the name for use as the res_class (and possibly res_name) of the
150 // window's WM_CLASS property. This is the program name from argv[0], with the
151 // first letter capitalized. Equivalent to GDK's gdk_get_program_class().
152 static std::string GetProgramClassName();
sky 2013/08/23 19:41:48 Should this be ifdef'd?
benwells 2013/08/26 00:10:29 or moved to shell_integration_linux.h?
Matt Giuca 2013/08/26 04:46:09 Done.
153
149 #if defined(OS_WIN) 154 #if defined(OS_WIN)
150 // Generates an application user model ID (AppUserModelId) for a given app 155 // Generates an application user model ID (AppUserModelId) for a given app
151 // name and profile path. The returned app id is in the format of 156 // name and profile path. The returned app id is in the format of
152 // "|app_name|[.<profile_id>]". "profile_id" is appended when user override 157 // "|app_name|[.<profile_id>]". "profile_id" is appended when user override
153 // the default value. 158 // the default value.
154 // Note: If the app has an installation specific suffix (e.g. on user-level 159 // Note: If the app has an installation specific suffix (e.g. on user-level
155 // Chrome installs), |app_name| should already be suffixed, this method will 160 // Chrome installs), |app_name| should already be suffixed, this method will
156 // then further suffix it with the profile id as described above. 161 // then further suffix it with the profile id as described above.
157 static string16 GetAppModelIdForProfile(const string16& app_name, 162 static string16 GetAppModelIdForProfile(const string16& app_name,
158 const base::FilePath& profile_path); 163 const base::FilePath& profile_path);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // Set Chrome as the default handler for this protocol. 331 // Set Chrome as the default handler for this protocol.
327 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE; 332 virtual bool SetAsDefault(bool interactive_permitted) OVERRIDE;
328 333
329 std::string protocol_; 334 std::string protocol_;
330 335
331 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 336 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
332 }; 337 };
333 }; 338 };
334 339
335 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 340 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/shell_integration.cc » ('j') | chrome/browser/ui/views/frame/browser_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698