| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool on_desktop; | 76 bool on_desktop; |
| 77 | 77 |
| 78 ApplicationsMenuLocation applications_menu_location; | 78 ApplicationsMenuLocation applications_menu_location; |
| 79 | 79 |
| 80 // For Windows, this refers to quick launch bar prior to Win7. In Win7, | 80 // For Windows, this refers to quick launch bar prior to Win7. In Win7, |
| 81 // this means "pin to taskbar". For Mac/Linux, this could be used for | 81 // this means "pin to taskbar". For Mac/Linux, this could be used for |
| 82 // Mac dock or the gnome/kde application launcher. However, those are not | 82 // Mac dock or the gnome/kde application launcher. However, those are not |
| 83 // implemented yet. | 83 // implemented yet. |
| 84 bool in_quick_launch_bar; | 84 bool in_quick_launch_bar; |
| 85 | 85 |
| 86 #if defined(OS_POSIX) | |
| 87 // For Linux, this refers to a shortcut which the system knows about (for | 86 // For Linux, this refers to a shortcut which the system knows about (for |
| 88 // the purpose of identifying windows and giving them the correct | 87 // the purpose of identifying windows and giving them the correct |
| 89 // title/icon), but which does not show up in menus or search results. | 88 // title/icon), but which does not show up in menus or search results. |
| 90 // Ignored if applications_menu_location is not APP_MENU_LOCATION_NONE. | 89 // Ignored if applications_menu_location is not APP_MENU_LOCATION_NONE. |
| 90 // For Mac, app shims are not placed in locations indexed by the OS. |
| 91 bool hidden; | 91 bool hidden; |
| 92 #endif | |
| 93 }; | 92 }; |
| 94 | 93 |
| 95 // This encodes the cause of shortcut creation as the correct behavior in each | 94 // This encodes the cause of shortcut creation as the correct behavior in each |
| 96 // case is implementation specific. | 95 // case is implementation specific. |
| 97 enum ShortcutCreationReason { | 96 enum ShortcutCreationReason { |
| 98 SHORTCUT_CREATION_BY_USER, | 97 SHORTCUT_CREATION_BY_USER, |
| 99 SHORTCUT_CREATION_AUTOMATED, | 98 SHORTCUT_CREATION_AUTOMATED, |
| 100 }; | 99 }; |
| 101 | 100 |
| 102 typedef base::Callback<void(const ShortcutInfo&)> ShortcutInfoCallback; | 101 typedef base::Callback<void(const ShortcutInfo&)> ShortcutInfoCallback; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 248 |
| 250 // Sanitizes |name| and returns a version of it that is safe to use as an | 249 // Sanitizes |name| and returns a version of it that is safe to use as an |
| 251 // on-disk file name . | 250 // on-disk file name . |
| 252 base::FilePath GetSanitizedFileName(const base::string16& name); | 251 base::FilePath GetSanitizedFileName(const base::string16& name); |
| 253 | 252 |
| 254 } // namespace internals | 253 } // namespace internals |
| 255 | 254 |
| 256 } // namespace web_app | 255 } // namespace web_app |
| 257 | 256 |
| 258 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ | 257 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_H_ |
| OLD | NEW |