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

Side by Side Diff: ui/events/event.cc

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/event.h" 5 #include "ui/events/event.h"
6 6
7 #if defined(USE_X11) 7 #if defined(USE_X11)
8 #include <X11/extensions/XInput2.h> 8 #include <X11/extensions/XInput2.h>
9 #include <X11/Xlib.h> 9 #include <X11/Xlib.h>
10 #include <X11/keysym.h> 10 #include <X11/keysym.h>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 CASE_TYPE(ET_GESTURE_LONG_PRESS); 70 CASE_TYPE(ET_GESTURE_LONG_PRESS);
71 CASE_TYPE(ET_GESTURE_LONG_TAP); 71 CASE_TYPE(ET_GESTURE_LONG_TAP);
72 CASE_TYPE(ET_GESTURE_SWIPE); 72 CASE_TYPE(ET_GESTURE_SWIPE);
73 CASE_TYPE(ET_GESTURE_TAP_UNCONFIRMED); 73 CASE_TYPE(ET_GESTURE_TAP_UNCONFIRMED);
74 CASE_TYPE(ET_GESTURE_DOUBLE_TAP); 74 CASE_TYPE(ET_GESTURE_DOUBLE_TAP);
75 CASE_TYPE(ET_SCROLL); 75 CASE_TYPE(ET_SCROLL);
76 CASE_TYPE(ET_SCROLL_FLING_START); 76 CASE_TYPE(ET_SCROLL_FLING_START);
77 CASE_TYPE(ET_SCROLL_FLING_CANCEL); 77 CASE_TYPE(ET_SCROLL_FLING_CANCEL);
78 CASE_TYPE(ET_CANCEL_MODE); 78 CASE_TYPE(ET_CANCEL_MODE);
79 CASE_TYPE(ET_UMA_DATA); 79 CASE_TYPE(ET_UMA_DATA);
80 CASE_TYPE(ET_X_RAW_EVENT);
spang 2014/11/24 18:56:54 This is essentially just native_event() spelled di
achaulk 2014/11/24 19:28:39 Yes, but there are some messages that need to be p
80 case ui::ET_LAST: NOTREACHED(); return std::string(); 81 case ui::ET_LAST: NOTREACHED(); return std::string();
81 // Don't include default, so that we get an error when new type is added. 82 // Don't include default, so that we get an error when new type is added.
82 } 83 }
83 #undef CASE_TYPE 84 #undef CASE_TYPE
84 85
85 NOTREACHED(); 86 NOTREACHED();
86 return std::string(); 87 return std::string();
87 } 88 }
88 89
89 bool IsX11SendEventTrue(const base::NativeEvent& event) { 90 bool IsX11SendEventTrue(const base::NativeEvent& event) {
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 gfx::PointF(x, y), 970 gfx::PointF(x, y),
970 gfx::PointF(x, y), 971 gfx::PointF(x, y),
971 time_stamp, 972 time_stamp,
972 flags | EF_FROM_TOUCH), 973 flags | EF_FROM_TOUCH),
973 details_(details) { 974 details_(details) {
974 } 975 }
975 976
976 GestureEvent::~GestureEvent() { 977 GestureEvent::~GestureEvent() {
977 } 978 }
978 979
980 CustomEvent::CustomEvent(EventType type,
981 base::TimeDelta time_stamp,
982 void* generic_event_data)
983 : Event(type, time_stamp, 0), generic_event_data_(generic_event_data) {
984 }
985 CustomEvent::~CustomEvent() {
986 }
987
979 } // namespace ui 988 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698