| OLD | NEW |
| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool IsValidUrl(const GURL& url); | 90 bool IsValidUrl(const GURL& url); |
| 91 | 91 |
| 92 #if defined(TOOLKIT_VIEWS) | 92 #if defined(TOOLKIT_VIEWS) |
| 93 // Extracts icons info from web app data. Take only square shaped icons and | 93 // Extracts icons info from web app data. Take only square shaped icons and |
| 94 // sort them from smallest to largest. | 94 // sort them from smallest to largest. |
| 95 typedef std::vector<WebApplicationInfo::IconInfo> IconInfoList; | 95 typedef std::vector<WebApplicationInfo::IconInfo> IconInfoList; |
| 96 void GetIconsInfo(const WebApplicationInfo& app_info, | 96 void GetIconsInfo(const WebApplicationInfo& app_info, |
| 97 IconInfoList* icons); | 97 IconInfoList* icons); |
| 98 #endif | 98 #endif |
| 99 | 99 |
| 100 #if defined(TOOLKIT_GTK) | 100 #if defined(OS_LINUX) |
| 101 // GTK+ windows that correspond to web apps need to have a deterministic (and | 101 // Windows that correspond to web apps need to have a deterministic (and |
| 102 // different) WMClass than normal chrome windows so the window manager groups | 102 // different) WMClass than normal chrome windows so the window manager groups |
| 103 // them as a separate application. | 103 // them as a separate application. |
| 104 std::string GetWMClassFromAppName(std::string app_name); | 104 std::string GetWMClassFromAppName(std::string app_name); |
| 105 #endif | 105 #endif |
| 106 | 106 |
| 107 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. | 107 // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. |
| 108 string16 GetAppShortcutsSubdirName(); | 108 string16 GetAppShortcutsSubdirName(); |
| 109 | 109 |
| 110 namespace internals { | 110 namespace internals { |
| 111 | 111 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // Sanitizes |name| and returns a version of it that is safe to use as an | 148 // Sanitizes |name| and returns a version of it that is safe to use as an |
| 149 // on-disk file name . | 149 // on-disk file name . |
| 150 base::FilePath GetSanitizedFileName(const string16& name); | 150 base::FilePath GetSanitizedFileName(const string16& name); |
| 151 | 151 |
| 152 } // namespace internals | 152 } // namespace internals |
| 153 | 153 |
| 154 } // namespace web_app | 154 } // namespace web_app |
| 155 | 155 |
| 156 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 156 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| OLD | NEW |