diff options
author | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-11 07:38:28 +0000 |
---|---|---|
committer | tmdiep@chromium.org <tmdiep@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-11 07:38:28 +0000 |
commit | da0349e1e0f6fbd498b2ac51d8b70d293a46f518 (patch) | |
tree | 0ebd386dc5626f2e93303ef7c72c568fdd975345 /chrome/browser/web_applications/web_app.h | |
parent | 68eada292a7f57f007533366b08b9d5a3e5f6dab (diff) | |
download | chromium_src-da0349e1e0f6fbd498b2ac51d8b70d293a46f518.zip chromium_src-da0349e1e0f6fbd498b2ac51d8b70d293a46f518.tar.gz chromium_src-da0349e1e0f6fbd498b2ac51d8b70d293a46f518.tar.bz2 |
Refactored the ShortcutLocations.hidden flag on linux
Linux uses the web_app::ShortcutLocations.hidden flag to create hidden
shortcuts. This patch changes this flag into enum value
APP_MENU_LOCATION_HIDDEN in order to simplify shortcut creation code.
BUG=None
TEST=unit_tests (ShellIntegrationTest.*)
Review URL: https://codereview.chromium.org/320503004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_applications/web_app.h')
-rw-r--r-- | chrome/browser/web_applications/web_app.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/chrome/browser/web_applications/web_app.h b/chrome/browser/web_applications/web_app.h index 29e730a..79487681 100644 --- a/chrome/browser/web_applications/web_app.h +++ b/chrome/browser/web_applications/web_app.h @@ -60,6 +60,10 @@ struct ShortcutInfo { // These represent the applications menu root, the "Google Chrome" folder and // the "Chrome Apps" folder respectively. // +// APP_MENU_LOCATION_HIDDEN specifies a shortcut that is used to register the +// app with the OS (in order to give its windows shelf icons, and correct icons +// and titles), but the app should not show up in menus or search results. +// // NB: On Linux, these locations may not be used by the window manager (e.g // Unity and Gnome Shell). enum ApplicationsMenuLocation { @@ -67,6 +71,7 @@ enum ApplicationsMenuLocation { APP_MENU_LOCATION_ROOT, APP_MENU_LOCATION_SUBDIR_CHROME, APP_MENU_LOCATION_SUBDIR_CHROMEAPPS, + APP_MENU_LOCATION_HIDDEN, }; // Info about which locations to create app shortcuts in. @@ -82,14 +87,6 @@ struct ShortcutLocations { // Mac dock or the gnome/kde application launcher. However, those are not // implemented yet. bool in_quick_launch_bar; - -#if defined(OS_POSIX) - // For Linux, this refers to a shortcut which the system knows about (for - // the purpose of identifying windows and giving them the correct - // title/icon), but which does not show up in menus or search results. - // Ignored if applications_menu_location is not APP_MENU_LOCATION_NONE. - bool hidden; -#endif }; // This encodes the cause of shortcut creation as the correct behavior in each |