summaryrefslogtreecommitdiffstats
path: root/views/widget
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget')
-rw-r--r--views/widget/window_manager.cc5
-rw-r--r--views/widget/window_manager.h9
2 files changed, 13 insertions, 1 deletions
diff --git a/views/widget/window_manager.cc b/views/widget/window_manager.cc
index 3030fdb..679332d 100644
--- a/views/widget/window_manager.cc
+++ b/views/widget/window_manager.cc
@@ -64,6 +64,11 @@ class NullWindowManager : public views::WindowManager {
return false;
}
+ virtual ui::TouchStatus HandleTouchEvent(views::Widget* widget,
+ const views::TouchEvent& event) OVERRIDE {
+ return ui::TOUCH_STATUS_UNKNOWN;
+ }
+
void Register(views::Widget* widget) OVERRIDE {}
private:
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;