diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 16:06:35 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 16:06:35 +0000 |
commit | 5951806fdc9a6d3063014b0479307dba66767f97 (patch) | |
tree | 1b52d819db6119600bcaeab8f51ccc3a3d48c925 /ui/aura/root_window.h | |
parent | b5ad6bd0e8eda70dc4f3b1dbd6229f9d82cdb17b (diff) | |
download | chromium_src-5951806fdc9a6d3063014b0479307dba66767f97.zip chromium_src-5951806fdc9a6d3063014b0479307dba66767f97.tar.gz chromium_src-5951806fdc9a6d3063014b0479307dba66767f97.tar.bz2 |
aura: Add support for touch events.
Among the changes:
. Add touch event handling in EventFilter. Be default, activates a window on TOUCH_START (like for MOUSE_PRESSED).
. Move TouchEvent details functions into ui/. Moved the X11 implementations from views/ to ui/. NOTIMPLEMENTED on windows.
. Disable RWHVAura et. al. for touchui for now (they are still compiled in, but not used).
BUG=100269
TEST=none
Review URL: http://codereview.chromium.org/8274025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window.h')
-rw-r--r-- | ui/aura/root_window.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h index 1fea6f3..98cce7d 100644 --- a/ui/aura/root_window.h +++ b/ui/aura/root_window.h @@ -11,7 +11,9 @@ namespace aura { +class KeyEvent; class MouseEvent; +class TouchEvent; namespace internal { @@ -29,6 +31,9 @@ class RootWindow : public Window, // Handles a key event. Returns true if handled. bool HandleKeyEvent(const KeyEvent& event); + // Handles a touch event. Returns true if handled. + bool HandleTouchEvent(const TouchEvent& event); + // Sets capture to the specified window. void SetCapture(Window* window); @@ -67,6 +72,7 @@ class RootWindow : public Window, Window* mouse_moved_handler_; Window* focused_window_; Window* capture_window_; + Window* touch_event_handler_; DISALLOW_COPY_AND_ASSIGN(RootWindow); }; |