| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 "components/mus/common/event_param_traits.h" | 5 #include "components/mus/common/event_param_traits.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "ipc/ipc_message_utils.h" | 9 #include "ipc/ipc_message_utils.h" |
| 10 #include "ipc/ipc_param_traits.h" | 10 #include "ipc/ipc_param_traits.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 case ui::EventType::ET_KEY_RELEASED: \ | 59 case ui::EventType::ET_KEY_RELEASED: \ |
| 60 implName(ui::KeyEvent) \ | 60 implName(ui::KeyEvent) \ |
| 61 case ui::EventType::ET_MOUSEWHEEL: \ | 61 case ui::EventType::ET_MOUSEWHEEL: \ |
| 62 implName(ui::MouseWheelEvent) \ | 62 implName(ui::MouseWheelEvent) \ |
| 63 case ui::EventType::ET_TOUCH_RELEASED: \ | 63 case ui::EventType::ET_TOUCH_RELEASED: \ |
| 64 case ui::EventType::ET_TOUCH_PRESSED: \ | 64 case ui::EventType::ET_TOUCH_PRESSED: \ |
| 65 case ui::EventType::ET_TOUCH_MOVED: \ | 65 case ui::EventType::ET_TOUCH_MOVED: \ |
| 66 case ui::EventType::ET_TOUCH_CANCELLED: \ | 66 case ui::EventType::ET_TOUCH_CANCELLED: \ |
| 67 case ui::EventType::ET_DROP_TARGET_EVENT: \ | 67 case ui::EventType::ET_DROP_TARGET_EVENT: \ |
| 68 implName(ui::TouchEvent) \ | 68 implName(ui::TouchEvent) \ |
| 69 case ui::EventType::ET_POINTER_DOWN: \ |
| 70 case ui::EventType::ET_POINTER_MOVED: \ |
| 71 case ui::EventType::ET_POINTER_UP: \ |
| 72 case ui::EventType::ET_POINTER_CANCELLED: \ |
| 73 case ui::EventType::ET_POINTER_ENTERED: \ |
| 74 case ui::EventType::ET_POINTER_EXITED: \ |
| 75 implName(ui::PointerEvent) \ |
| 69 case ui::EventType::ET_GESTURE_SCROLL_BEGIN: \ | 76 case ui::EventType::ET_GESTURE_SCROLL_BEGIN: \ |
| 70 case ui::EventType::ET_GESTURE_SCROLL_END: \ | 77 case ui::EventType::ET_GESTURE_SCROLL_END: \ |
| 71 case ui::EventType::ET_GESTURE_SCROLL_UPDATE: \ | 78 case ui::EventType::ET_GESTURE_SCROLL_UPDATE: \ |
| 72 case ui::EventType::ET_GESTURE_SHOW_PRESS: \ | 79 case ui::EventType::ET_GESTURE_SHOW_PRESS: \ |
| 73 case ui::EventType::ET_GESTURE_WIN8_EDGE_SWIPE: \ | 80 case ui::EventType::ET_GESTURE_WIN8_EDGE_SWIPE: \ |
| 74 case ui::EventType::ET_GESTURE_TAP: \ | 81 case ui::EventType::ET_GESTURE_TAP: \ |
| 75 case ui::EventType::ET_GESTURE_TAP_DOWN: \ | 82 case ui::EventType::ET_GESTURE_TAP_DOWN: \ |
| 76 case ui::EventType::ET_GESTURE_TAP_CANCEL: \ | 83 case ui::EventType::ET_GESTURE_TAP_CANCEL: \ |
| 77 case ui::EventType::ET_GESTURE_BEGIN: \ | 84 case ui::EventType::ET_GESTURE_BEGIN: \ |
| 78 case ui::EventType::ET_GESTURE_END: \ | 85 case ui::EventType::ET_GESTURE_END: \ |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 memcpy(p, data, sizeof(param_type)); | 275 memcpy(p, data, sizeof(param_type)); |
| 269 return true; | 276 return true; |
| 270 } | 277 } |
| 271 | 278 |
| 272 void ParamTraits<ui::GestureEventDetails::Details>::Log(const param_type& p, | 279 void ParamTraits<ui::GestureEventDetails::Details>::Log(const param_type& p, |
| 273 std::string* l) { | 280 std::string* l) { |
| 274 l->append("<ui::GestureEventDetails::Details>"); | 281 l->append("<ui::GestureEventDetails::Details>"); |
| 275 } | 282 } |
| 276 | 283 |
| 277 } // namespace IPC | 284 } // namespace IPC |
| OLD | NEW |