diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-13 02:33:33 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-13 02:33:33 +0000 |
commit | 272a6de6ad9fc50b0cadc299b11280b44d3c2a59 (patch) | |
tree | aeb35a4b9ce805680c82a08c229f3ec6f657fa24 /views/widget/window_manager.h | |
parent | 3d26235f0e2c5f41fd999b8b363e9547cff03514 (diff) | |
download | chromium_src-272a6de6ad9fc50b0cadc299b11280b44d3c2a59.zip chromium_src-272a6de6ad9fc50b0cadc299b11280b44d3c2a59.tar.gz chromium_src-272a6de6ad9fc50b0cadc299b11280b44d3c2a59.tar.bz2 |
views desktop wm: Activate a window when it is touched.
BUG=none
TEST=manually
Review URL: http://codereview.chromium.org/7796040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/window_manager.h')
-rw-r--r-- | views/widget/window_manager.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/views/widget/window_manager.h b/views/widget/window_manager.h index 02015cc..ff1e319 100644 --- a/views/widget/window_manager.h +++ b/views/widget/window_manager.h @@ -7,6 +7,7 @@ #pragma once #include "base/basictypes.h" +#include "ui/base/events.h" #include "views/views_export.h" namespace gfx { @@ -16,6 +17,7 @@ class Point; namespace views { class KeyEvent; class MouseEvent; +class TouchEvent; class Widget; // A interface to WindowManager. @@ -50,10 +52,15 @@ class VIEWS_EXPORT WindowManager { // or send the event to widget that has mouse capture. virtual bool HandleKeyEvent(Widget* widget, const KeyEvent& event) = 0; - // WindowManager handles mouse event first. It may reisze/move window, + // WindowManager handles mouse event first. It may resize/move window, // or send the event to widget that has mouse capture. virtual bool HandleMouseEvent(Widget* widget, const MouseEvent& event) = 0; + // WindowManager handles touch event first. It is currently used only to + // activate windows. But it can also be used to move/resize windows. + virtual ui::TouchStatus HandleTouchEvent(Widget* widget, + const TouchEvent& event) = 0; + // Register widget to the window manager. virtual void Register(Widget* widget) = 0; |