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

Unified Diff: views/touchui/touch_event_dispatcher_gtk.h

Issue 3704005: Hijack mouse-related events for TOUCH_UI builds (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Refactoring to accomodate both Gtk and X11 easily Created 10 years, 2 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/focus/accelerator_handler_touch.cc ('k') | views/touchui/touch_event_dispatcher_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/touchui/touch_event_dispatcher_gtk.h
diff --git a/views/touchui/touch_event_dispatcher_gtk.h b/views/touchui/touch_event_dispatcher_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..d80cb96e020c88fcedcb53c285d36e1e41475868
--- /dev/null
+++ b/views/touchui/touch_event_dispatcher_gtk.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef VIEWS_TOUCHUI_TOUCH_EVENT_DISPATCHER_GTK_H_
+#define VIEWS_TOUCHUI_TOUCH_EVENT_DISPATCHER_GTK_H_
+
+namespace views {
+
+// Dispatches a GdkEvent to the appropriate RootView.
+// Returns true if the function dispatched (handled) the event.
+// Returns false if the caller should dispatch the event.
+// FYI: That would typically be done with gtk_main_do_event(event)
+bool DispatchEventForTouchUIGtk(GdkEvent* gdk_event);
+
+} // namespace views
+
+#endif // VIEWS_TOUCHUI_TOUCH_EVENT_DISPATCHER_GTK_H_
« no previous file with comments | « views/focus/accelerator_handler_touch.cc ('k') | views/touchui/touch_event_dispatcher_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698