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

Unified Diff: views/events/event_gtk.cc

Issue 8585012: views: Remove unused/deprecated IsMouseEvent() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/events/event_gtk.cc
diff --git a/views/events/event_gtk.cc b/views/events/event_gtk.cc
index 9221d6987a376ce1404c385f11d3296cd8f51510..fb0c88a5938e4ede21d2f3ae9986a38b4098cf32 100644
--- a/views/events/event_gtk.cc
+++ b/views/events/event_gtk.cc
@@ -121,14 +121,6 @@ ui::KeyboardCode KeyboardCodeFromNative(GdkEvent* gdk_event) {
return ui::KeyboardCodeFromGdkEventKey(&gdk_event->key);
}
-bool IsMouseEvent(GdkEvent* gdk_event) {
- return gdk_event->type == GDK_MOTION_NOTIFY ||
- gdk_event->type == GDK_BUTTON_PRESS ||
- gdk_event->type == GDK_2BUTTON_PRESS ||
- gdk_event->type == GDK_3BUTTON_PRESS ||
- gdk_event->type == GDK_BUTTON_RELEASE;
-}
-
int GetMouseWheelOffset(GdkEvent* gdk_event) {
DCHECK(gdk_event->type == GDK_SCROLL);
int offset = (gdk_event->scroll.direction == GDK_SCROLL_UP ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698