diff options
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; |