| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WIN_H_ | 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ |
| 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ | 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "chrome/browser/shell_integration.h" | 9 #include "chrome/browser/shell_integration.h" |
| 10 | 10 |
| 11 namespace gfx { | 11 namespace gfx { |
| 12 class ImageFamily; | 12 class ImageFamily; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace web_app { | 15 namespace web_app { |
| 16 | 16 |
| 17 // Create a shortcut in the given web app data dir, returning the name of the | 17 // Create a shortcut in the given web app data dir, returning the name of the |
| 18 // created shortcut. | 18 // created shortcut. |
| 19 base::FilePath CreateShortcutInWebAppDir( | 19 base::FilePath CreateShortcutInWebAppDir( |
| 20 const base::FilePath& web_app_path, | 20 const base::FilePath& web_app_path, |
| 21 const ShellIntegration::ShortcutInfo& shortcut_info); | 21 const ShellIntegration::ShortcutInfo& shortcut_info); |
| 22 | 22 |
| 23 namespace internals { | 23 namespace internals { |
| 24 | 24 |
| 25 bool CheckAndSaveIcon(const base::FilePath& icon_file, | 25 bool CheckAndSaveIcon(const base::FilePath& icon_file, |
| 26 const gfx::ImageFamily& image); | 26 const gfx::ImageFamily& image); |
| 27 | 27 |
| 28 base::FilePath GetIconFilePath(const base::FilePath& web_app_path, |
| 29 const base::string16& title); |
| 30 |
| 28 } // namespace internals | 31 } // namespace internals |
| 29 | 32 |
| 30 } // namespace web_app | 33 } // namespace web_app |
| 31 | 34 |
| 32 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ | 35 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ |
| OLD | NEW |