diff options
author | varkha@chromium.org <varkha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-07 01:00:07 +0000 |
---|---|---|
committer | varkha@chromium.org <varkha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-07 01:00:07 +0000 |
commit | 494b1ef49c473b675e12c119bcaa3912b810ec86 (patch) | |
tree | 0502205d25ffefd44f2c1a46212dc129cb31c825 /ash/launcher | |
parent | 733ce08c0d3fe3c60e7acaee63c817bf5cddec46 (diff) | |
download | chromium_src-494b1ef49c473b675e12c119bcaa3912b810ec86.zip chromium_src-494b1ef49c473b675e12c119bcaa3912b810ec86.tar.gz chromium_src-494b1ef49c473b675e12c119bcaa3912b810ec86.tar.bz2 |
Animating docked background in sync with shelf
BUG=267582
TEST=Visual.
Dock a window.
Verify that docked background is same as the launcher background.
Open a second browser window.
Maximize it.
Verify that both docked background and the shelf background become opaque black.
Review URL: https://codereview.chromium.org/98373006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher')
-rw-r--r-- | ash/launcher/launcher_types.cc | 1 | ||||
-rw-r--r-- | ash/launcher/launcher_types.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/ash/launcher/launcher_types.cc b/ash/launcher/launcher_types.cc index 37aa7cc3..67dc572 100644 --- a/ash/launcher/launcher_types.cc +++ b/ash/launcher/launcher_types.cc @@ -10,6 +10,7 @@ const int kLauncherPreferredSize = 48; const int kLauncherBackgroundAlpha = 204; const int kInvalidImageResourceID = -1; const int kInvalidLauncherID = 0; +const int kTimeToSwitchBackgroundMs = 1000; LauncherItem::LauncherItem() : type(TYPE_UNDEFINED), diff --git a/ash/launcher/launcher_types.h b/ash/launcher/launcher_types.h index 2d09dae..bbb1bbc 100644 --- a/ash/launcher/launcher_types.h +++ b/ash/launcher/launcher_types.h @@ -27,6 +27,9 @@ extern const int kInvalidImageResourceID; extern const int kInvalidLauncherID; +// Animation duration for switching black shelf and dock background on and off. +ASH_EXPORT extern const int kTimeToSwitchBackgroundMs; + // Type the LauncherItem represents. enum LauncherItemType { // Represents a running app panel. |