| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // | 71 // |
| 72 // APP_MENU_LOCATION_HIDDEN specifies a shortcut that is used to register the | 72 // APP_MENU_LOCATION_HIDDEN specifies a shortcut that is used to register the |
| 73 // app with the OS (in order to give its windows shelf icons, and correct icons | 73 // app with the OS (in order to give its windows shelf icons, and correct icons |
| 74 // and titles), but the app should not show up in menus or search results. | 74 // and titles), but the app should not show up in menus or search results. |
| 75 // | 75 // |
| 76 // NB: On Linux, these locations may not be used by the window manager (e.g | 76 // NB: On Linux, these locations may not be used by the window manager (e.g |
| 77 // Unity and Gnome Shell). | 77 // Unity and Gnome Shell). |
| 78 enum ApplicationsMenuLocation { | 78 enum ApplicationsMenuLocation { |
| 79 APP_MENU_LOCATION_NONE, | 79 APP_MENU_LOCATION_NONE, |
| 80 APP_MENU_LOCATION_ROOT, | 80 APP_MENU_LOCATION_ROOT, |
| 81 APP_MENU_LOCATION_SUBDIR_CHROME_DEPRECATED, // TODO(bcwhite) remove this | 81 APP_MENU_LOCATION_SUBDIR_CHROME, |
| 82 APP_MENU_LOCATION_SUBDIR_CHROMEAPPS, | 82 APP_MENU_LOCATION_SUBDIR_CHROMEAPPS, |
| 83 APP_MENU_LOCATION_HIDDEN, | 83 APP_MENU_LOCATION_HIDDEN, |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // Info about which locations to create app shortcuts in. | 86 // Info about which locations to create app shortcuts in. |
| 87 struct ShortcutLocations { | 87 struct ShortcutLocations { |
| 88 ShortcutLocations(); | 88 ShortcutLocations(); |
| 89 | 89 |
| 90 bool on_desktop; | 90 bool on_desktop; |
| 91 | 91 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 273 |
| 274 // Sanitizes |name| and returns a version of it that is safe to use as an | 274 // Sanitizes |name| and returns a version of it that is safe to use as an |
| 275 // on-disk file name . | 275 // on-disk file name . |
| 276 base::FilePath GetSanitizedFileName(const base::string16& name); | 276 base::FilePath GetSanitizedFileName(const base::string16& name); |
| 277 | 277 |
| 278 } // namespace internals | 278 } // namespace internals |
| 279 | 279 |
| 280 } // namespace web_app | 280 } // namespace web_app |
| 281 | 281 |
| 282 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 282 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| OLD | NEW |