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

Side by Side Diff: chrome/installer/util/shell_util.h

Issue 11359133: Add default icon to app_host.exe, and use it in shortcuts during installation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Renaming GetChromiumIconString() => GetChromiumIconLocation(). Created 8 years, 1 month 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 // This file declares methods that are useful for integrating Chrome in 5 // This file declares methods that are useful for integrating Chrome in
6 // Windows shell. These methods are all static and currently part of 6 // Windows shell. These methods are all static and currently part of
7 // ShellUtil class. 7 // ShellUtil class.
8 8
9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 9 #ifndef CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 10 #define CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // SHELL_SHORTCUT_CREATE_ALWAYS). 305 // SHELL_SHORTCUT_CREATE_ALWAYS).
306 // |dist| gives the type of browser distribution currently in use. 306 // |dist| gives the type of browser distribution currently in use.
307 // |properties| and |operation| affect this method as described on their 307 // |properties| and |operation| affect this method as described on their
308 // invidividual definitions above. 308 // invidividual definitions above.
309 static bool CreateOrUpdateShortcut( 309 static bool CreateOrUpdateShortcut(
310 ShellUtil::ShortcutLocation location, 310 ShellUtil::ShortcutLocation location,
311 BrowserDistribution* dist, 311 BrowserDistribution* dist,
312 const ShellUtil::ShortcutProperties& properties, 312 const ShellUtil::ShortcutProperties& properties,
313 ShellUtil::ShortcutOperation operation); 313 ShellUtil::ShortcutOperation operation);
314 314
315 // This method appends the Chrome icon index inside chrome.exe to the 315 // Returns the string "|icon_path|,|icon_index|" (see, for example,
316 // chrome.exe path passed in as input, to generate the full path for 316 // http://msdn.microsoft.com/library/windows/desktop/dd391573.aspx).
317 // Chrome icon that can be used as value for Windows registry keys. 317 static string16 FormatIconLocation(const string16& icon_path, int icon_index);
318 // |chrome_exe| full path to chrome.exe.
319 static string16 GetChromeIcon(BrowserDistribution* dist,
320 const string16& chrome_exe);
321 318
322 // This method returns the command to open URLs/files using chrome. Typically 319 // This method returns the command to open URLs/files using chrome. Typically
323 // this command is written to the registry under shell\open\command key. 320 // this command is written to the registry under shell\open\command key.
324 // |chrome_exe|: the full path to chrome.exe 321 // |chrome_exe|: the full path to chrome.exe
325 static string16 GetChromeShellOpenCmd(const string16& chrome_exe); 322 static string16 GetChromeShellOpenCmd(const string16& chrome_exe);
326 323
327 // This method returns the command to be called by the DelegateExecute verb 324 // This method returns the command to be called by the DelegateExecute verb
328 // handler to launch chrome on Windows 8. Typically this command is written to 325 // handler to launch chrome on Windows 8. Typically this command is written to
329 // the registry under the HKCR\Chrome\.exe\shell\(open|run)\command key. 326 // the registry under the HKCR\Chrome\.exe\shell\(open|run)\command key.
330 // |chrome_exe|: the full path to chrome.exe 327 // |chrome_exe|: the full path to chrome.exe
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 // required by the base32 standard for inputs that aren't a multiple of 5 553 // required by the base32 standard for inputs that aren't a multiple of 5
557 // bytes. 554 // bytes.
558 static string16 ByteArrayToBase32(const uint8* bytes, size_t size); 555 static string16 ByteArrayToBase32(const uint8* bytes, size_t size);
559 556
560 private: 557 private:
561 DISALLOW_COPY_AND_ASSIGN(ShellUtil); 558 DISALLOW_COPY_AND_ASSIGN(ShellUtil);
562 }; 559 };
563 560
564 561
565 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_ 562 #endif // CHROME_INSTALLER_UTIL_SHELL_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/google_chrome_distribution_dummy.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698