| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // the "Chrome Apps" folder respectively. | 71 // the "Chrome Apps" folder respectively. |
| 72 // | 72 // |
| 73 // APP_MENU_LOCATION_HIDDEN specifies a shortcut that is used to register the | 73 // APP_MENU_LOCATION_HIDDEN specifies a shortcut that is used to register the |
| 74 // app with the OS (in order to give its windows shelf icons, and correct icons | 74 // app with the OS (in order to give its windows shelf icons, and correct icons |
| 75 // and titles), but the app should not show up in menus or search results. | 75 // and titles), but the app should not show up in menus or search results. |
| 76 // | 76 // |
| 77 // NB: On Linux, these locations may not be used by the window manager (e.g | 77 // NB: On Linux, these locations may not be used by the window manager (e.g |
| 78 // Unity and Gnome Shell). | 78 // Unity and Gnome Shell). |
| 79 enum ApplicationsMenuLocation { | 79 enum ApplicationsMenuLocation { |
| 80 APP_MENU_LOCATION_NONE, | 80 APP_MENU_LOCATION_NONE, |
| 81 APP_MENU_LOCATION_ROOT, | |
| 82 APP_MENU_LOCATION_SUBDIR_CHROME_DEPRECATED, // TODO(bcwhite) remove this | |
| 83 APP_MENU_LOCATION_SUBDIR_CHROMEAPPS, | 81 APP_MENU_LOCATION_SUBDIR_CHROMEAPPS, |
| 84 APP_MENU_LOCATION_HIDDEN, | 82 APP_MENU_LOCATION_HIDDEN, |
| 85 }; | 83 }; |
| 86 | 84 |
| 87 // Info about which locations to create app shortcuts in. | 85 // Info about which locations to create app shortcuts in. |
| 88 struct ShortcutLocations { | 86 struct ShortcutLocations { |
| 89 ShortcutLocations(); | 87 ShortcutLocations(); |
| 90 | 88 |
| 91 bool on_desktop; | 89 bool on_desktop; |
| 92 | 90 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 256 |
| 259 // Clears |shortcut_info| and invokes |callback| unless it's null. | 257 // Clears |shortcut_info| and invokes |callback| unless it's null. |
| 260 void DeleteShortcutInfoOnUIThread(std::unique_ptr<ShortcutInfo> shortcut_info, | 258 void DeleteShortcutInfoOnUIThread(std::unique_ptr<ShortcutInfo> shortcut_info, |
| 261 const base::Closure& callback); | 259 const base::Closure& callback); |
| 262 | 260 |
| 263 } // namespace internals | 261 } // namespace internals |
| 264 | 262 |
| 265 } // namespace web_app | 263 } // namespace web_app |
| 266 | 264 |
| 267 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 265 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| OLD | NEW |