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

Unified Diff: views/controls/native_control_gtk.h

Issue 6990060: Make clicks work on views_examples with touchui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | « no previous file | views/controls/native_control_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/native_control_gtk.h
diff --git a/views/controls/native_control_gtk.h b/views/controls/native_control_gtk.h
index 8146ed48248fe7acf332b46ece3028cf58071c71..32a34f6ffc9e7ad3207a7a69c646e2400f9c3a50 100644
--- a/views/controls/native_control_gtk.h
+++ b/views/controls/native_control_gtk.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -25,6 +25,16 @@ class NativeControlGtk : public NativeViewHost {
virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child);
virtual void VisibilityChanged(View* starting_from, bool is_visible);
virtual void OnFocus();
+#if defined(TOUCH_UI)
+ virtual bool OnMousePressed(const MouseEvent& event);
+ virtual void OnMouseReleased(const MouseEvent& event);
+ virtual void OnMouseMoved(const MouseEvent& event);
+ virtual void OnMouseExited(const MouseEvent& event);
+ virtual void OnMouseEntered(const MouseEvent& event);
+
+ // Fake a mouse event.
+ void FakeNativeMouseEvent(const MouseEvent& event);
+#endif
// Called when the NativeControlGtk is attached to a View hierarchy with a
// valid Widget. The NativeControlGtk should use this opportunity to create
« no previous file with comments | « no previous file | views/controls/native_control_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698