Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: views/view.cc

Issue 3192002: Added entry points to view/View to dispatch and process TouchEvents. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: final changes Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/view.h ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index 04dbc40e0e5eac9ce70851288addcc640ae2a7af..a4e7aa0fc17ab42124bdf668face758f58544453 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -536,6 +536,15 @@ void View::ProcessMouseReleased(const MouseEvent& e, bool canceled) {
// WARNING: we may have been deleted.
}
+#if defined(TOUCH_UI)
+bool View::ProcessTouchEvent(const TouchEvent& e) {
+ // TODO(rjkroege): Implement a grab scheme similar to as
+ // as is found in MousePressed.
+ const bool result = OnTouchEvent(e);
+ return result;
+}
+#endif
+
void View::AddChildView(View* v) {
AddChildView(static_cast<int>(child_views_.size()), v);
}
@@ -1289,6 +1298,13 @@ void View::OnMouseEntered(const MouseEvent& e) {
void View::OnMouseExited(const MouseEvent& e) {
}
+#if defined(TOUCH_UI)
+bool View::OnTouchEvent(const TouchEvent& event) {
+ DLOG(INFO) << "visited the OnTouchEvent";
+ return false;
+}
+#endif
+
void View::SetMouseHandler(View *new_mouse_handler) {
// It is valid for new_mouse_handler to be NULL
if (parent_)
« no previous file with comments | « views/view.h ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698