summaryrefslogtreecommitdiffstats
path: root/views/view.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 22:09:17 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-14 22:09:17 +0000
commit6a4056bb3ffa8a28d31c9a9e2dc6d681466f4a37 (patch)
tree37d8348008b4dd11ca7a405a7d88268b55899db5 /views/view.h
parentba164c912c0c30dc432d9385b92266a5f732f538 (diff)
downloadchromium_src-6a4056bb3ffa8a28d31c9a9e2dc6d681466f4a37.zip
chromium_src-6a4056bb3ffa8a28d31c9a9e2dc6d681466f4a37.tar.gz
chromium_src-6a4056bb3ffa8a28d31c9a9e2dc6d681466f4a37.tar.bz2
Add NativeWidgetDelegate::OnTouchEvent and move views::View::TouchStatus to ui::TouchStatus.
BUG=none TEST=none Review URL: http://codereview.chromium.org/7147005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/view.h')
-rw-r--r--views/view.h24
1 files changed, 5 insertions, 19 deletions
diff --git a/views/view.h b/views/view.h
index cd90af9f..1c412ab 100644
--- a/views/view.h
+++ b/views/view.h
@@ -36,8 +36,9 @@ class Compositor;
class Texture;
class ThemeProvider;
class Transform;
-
-typedef unsigned int TextureID;
+#if defined(TOUCH_UI)
+enum TouchStatus;
+#endif
}
#if defined(OS_WIN)
@@ -144,21 +145,6 @@ class View : public AcceleratorTarget {
public:
typedef std::vector<View*> Views;
-#if defined(TOUCH_UI)
- enum TouchStatus {
- TOUCH_STATUS_UNKNOWN = 0, // Unknown touch status. This is used to indicate
- // that the touch event was not handled.
- TOUCH_STATUS_START, // The touch event initiated a touch sequence.
- TOUCH_STATUS_CONTINUE, // The touch event is part of a previously
- // started touch sequence.
- TOUCH_STATUS_END, // The touch event ended the touch sequence.
- TOUCH_STATUS_CANCEL, // The touch event was cancelled, but didn't
- // terminate the touch sequence.
- TOUCH_STATUS_SYNTH_MOUSE // The touch event was not processed, but a
- // synthetic mouse event generated from the
- // unused touch event was handled.
- };
-#endif
// TO BE MOVED ---------------------------------------------------------------
// TODO(beng): These methods are to be moved to other files/classes.
@@ -620,7 +606,7 @@ class View : public AcceleratorTarget {
#if defined(TOUCH_UI)
// This method is invoked for each touch event. Default implementation
// does nothing. Override as needed.
- virtual TouchStatus OnTouchEvent(const TouchEvent& event);
+ virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event);
#endif
// Set the MouseHandler for a drag session.
@@ -1231,7 +1217,7 @@ class View : public AcceleratorTarget {
#if defined(TOUCH_UI)
// RootView will invoke this with incoming TouchEvents. Returns the
// the result of OnTouchEvent.
- TouchStatus ProcessTouchEvent(const TouchEvent& event);
+ ui::TouchStatus ProcessTouchEvent(const TouchEvent& event);
#endif
// Accelerators --------------------------------------------------------------