summaryrefslogtreecommitdiffstats
path: root/ash/shell.h
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-01 07:16:14 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-01 07:16:14 +0000
commit9861f175f93a2fb3b7ab48df78622c311f9fa8f9 (patch)
tree28c225f59d56a55619caf033c0c199f2e17d609e /ash/shell.h
parent6bc34b9d3b72c666e67d7e81ae60dbe544abcf65 (diff)
downloadchromium_src-9861f175f93a2fb3b7ab48df78622c311f9fa8f9.zip
chromium_src-9861f175f93a2fb3b7ab48df78622c311f9fa8f9.tar.gz
chromium_src-9861f175f93a2fb3b7ab48df78622c311f9fa8f9.tar.bz2
ash: Holding down shift slows window animations for debugging
* Adds SlowAnimationEventFilter to look for raw shift-press events * Adds tests for above * Adds "slow animation mode" to layer animator that slows down layer animations by a factor of 4 for visual testing/debugging * Fixes some typos in comments I elected to make this a new event filter because I can't accomplish this with a regular accelerator and I didn't want to pollute any of the existing filters with this functionality. BUG=130168 TEST=aura_shell_unittests SlowAnimationEventFilterTest, hold down shift and maximize/restore windows Review URL: https://chromiumcodereview.appspot.com/10456034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r--ash/shell.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/shell.h b/ash/shell.h
index 153cd44..0e64b71 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -88,6 +88,7 @@ class ScreenDimmer;
class ShadowController;
class ShelfLayoutManager;
class ShellContextMenu;
+class SlowAnimationEventFilter;
class SystemGestureEventFilter;
class StackingController;
class StatusAreaWidget;
@@ -408,6 +409,10 @@ class ASH_EXPORT Shell {
// a heads-up display. This is enabled only if --ash-touch-hud flag is used.
scoped_ptr<internal::TouchObserverHUD> touch_observer_hud_;
+ // An event filter that looks for modifier keypresses and triggers a slowdown
+ // of layer animations for visual debugging.
+ scoped_ptr<internal::SlowAnimationEventFilter> slow_animation_filter_;
+
// The shelf for managing the launcher and the status widget in non-compact
// mode. Shell does not own the shelf. Instead, it is owned by container of
// the status area.