Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 #if defined(TOOLKIT_USES_GTK) | 60 #if defined(TOOLKIT_USES_GTK) |
| 61 // GTK+ windows that correspond to web apps need to have a deterministic (and | 61 // GTK+ windows that correspond to web apps need to have a deterministic (and |
| 62 // different) WMClass than normal chrome windows so the window manager groups | 62 // different) WMClass than normal chrome windows so the window manager groups |
| 63 // them as a separate application. | 63 // them as a separate application. |
| 64 std::string GetWMClassFromAppName(std::string app_name); | 64 std::string GetWMClassFromAppName(std::string app_name); |
| 65 #endif | 65 #endif |
| 66 | 66 |
| 67 namespace internals { | 67 namespace internals { |
| 68 | 68 |
| 69 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
| 70 FilePath GetSanitizedFileName(const string16& name); | |
| 71 | |
| 72 bool CheckAndSaveIcon(const FilePath& icon_file, const SkBitmap& image); | 70 bool CheckAndSaveIcon(const FilePath& icon_file, const SkBitmap& image); |
| 73 #endif | 71 #endif |
| 74 | 72 |
| 75 FilePath GetWebAppDataDirectory(const FilePath& root_dir, | 73 FilePath GetWebAppDataDirectory(const FilePath& root_dir, |
| 76 const ShellIntegration::ShortcutInfo& info); | 74 const ShellIntegration::ShortcutInfo& info); |
| 75 | |
| 76 void CreateShortcutTask(const FilePath& web_app_path, | |
|
Robert Sesek
2012/02/08 00:59:38
Comment.
sail
2012/02/08 01:47:20
Done.
| |
| 77 const FilePath& profile_path, | |
| 78 const ShellIntegration::ShortcutInfo& shortcut_info); | |
| 79 | |
| 80 // Returns sanitized name that could be used as a file name | |
| 81 FilePath GetSanitizedFileName(const string16& name); | |
| 82 | |
| 77 } // namespace internals | 83 } // namespace internals |
| 78 | 84 |
| 79 } // namespace web_app | 85 } // namespace web_app |
| 80 | 86 |
| 81 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 87 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| OLD | NEW |