Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ | |
| 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/shell_integration.h" | |
| 10 | |
| 11 namespace web_app { | |
| 12 | |
| 13 class WebAppShortcutCreator { | |
|
Robert Sesek
2012/02/08 01:01:28
Comment++++++
sail
2012/02/09 23:04:39
Done.
| |
| 14 public: | |
| 15 explicit WebAppShortcutCreator( | |
| 16 const ShellIntegration::ShortcutInfo& shortcut_info); | |
| 17 virtual ~WebAppShortcutCreator(); | |
| 18 | |
| 19 bool CreateShortcut(); | |
| 20 | |
| 21 protected: | |
| 22 FilePath GetAppLoaderPath() const; | |
| 23 virtual FilePath GetDstPath(const FilePath& app_file_name) const; | |
| 24 bool UpdatePlist(const FilePath& app_path) const; | |
| 25 bool UpdateIcon(const FilePath& app_path) const; | |
| 26 | |
| 27 private: | |
| 28 ShellIntegration::ShortcutInfo info_; | |
| 29 }; | |
| 30 | |
| 31 } // namespace web_app | |
| 32 | |
| 33 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_MAC_H_ | |
| OLD | NEW |