Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/common/input/input_param_traits.h" | 5 #include "content/common/input/input_param_traits.h" |
| 6 | 6 |
| 7 #include "content/common/content_param_traits.h" | 7 #include "content/common/content_param_traits.h" |
| 8 #include "content/common/input/synthetic_pinch_gesture_params.h" | 8 #include "content/common/input/synthetic_pinch_gesture_params.h" |
| 9 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 9 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
| 10 #include "content/common/input/web_input_event_traits.h" | 10 #include "content/common/input/web_input_event_traits.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 p.gesture_params())); | 63 p.gesture_params())); |
| 64 break; | 64 break; |
| 65 case content::SyntheticGestureParams::PINCH_GESTURE: | 65 case content::SyntheticGestureParams::PINCH_GESTURE: |
| 66 WriteParam(m, *content::SyntheticPinchGestureParams::Cast( | 66 WriteParam(m, *content::SyntheticPinchGestureParams::Cast( |
| 67 p.gesture_params())); | 67 p.gesture_params())); |
| 68 break; | 68 break; |
| 69 case content::SyntheticGestureParams::TAP_GESTURE: | 69 case content::SyntheticGestureParams::TAP_GESTURE: |
| 70 WriteParam(m, *content::SyntheticTapGestureParams::Cast( | 70 WriteParam(m, *content::SyntheticTapGestureParams::Cast( |
| 71 p.gesture_params())); | 71 p.gesture_params())); |
| 72 break; | 72 break; |
| 73 // TODO(ssid): When API and IPC messages are set up, implement this. | |
|
petrcermak
2015/02/24 11:47:33
Super-subjective-nit: I prefer simpler sentences w
| |
| 74 case content::SyntheticGestureParams::SMOOTH_DRAG_GESTURE: | |
| 75 NOTIMPLEMENTED(); | |
| 76 break; | |
| 73 } | 77 } |
| 74 } | 78 } |
| 75 | 79 |
| 76 bool ParamTraits<content::SyntheticGesturePacket>::Read(const Message* m, | 80 bool ParamTraits<content::SyntheticGesturePacket>::Read(const Message* m, |
| 77 PickleIterator* iter, | 81 PickleIterator* iter, |
| 78 param_type* p) { | 82 param_type* p) { |
| 79 content::SyntheticGestureParams::GestureType gesture_type; | 83 content::SyntheticGestureParams::GestureType gesture_type; |
| 80 if (!ReadParam(m, iter, &gesture_type)) | 84 if (!ReadParam(m, iter, &gesture_type)) |
| 81 return false; | 85 return false; |
| 82 scoped_ptr<content::SyntheticGestureParams> gesture_params; | 86 scoped_ptr<content::SyntheticGestureParams> gesture_params; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 case content::SyntheticGestureParams::PINCH_GESTURE: | 119 case content::SyntheticGestureParams::PINCH_GESTURE: |
| 116 LogParam( | 120 LogParam( |
| 117 *content::SyntheticPinchGestureParams::Cast(p.gesture_params()), | 121 *content::SyntheticPinchGestureParams::Cast(p.gesture_params()), |
| 118 l); | 122 l); |
| 119 break; | 123 break; |
| 120 case content::SyntheticGestureParams::TAP_GESTURE: | 124 case content::SyntheticGestureParams::TAP_GESTURE: |
| 121 LogParam( | 125 LogParam( |
| 122 *content::SyntheticTapGestureParams::Cast(p.gesture_params()), | 126 *content::SyntheticTapGestureParams::Cast(p.gesture_params()), |
| 123 l); | 127 l); |
| 124 break; | 128 break; |
| 129 // TODO(ssid): When API and IPC messages are set up, implement this. | |
|
petrcermak
2015/02/24 11:47:33
Super-subjective-ditto
| |
| 130 case content::SyntheticGestureParams::SMOOTH_DRAG_GESTURE: | |
| 131 NOTIMPLEMENTED(); | |
| 132 break; | |
| 125 } | 133 } |
| 126 } | 134 } |
| 127 | 135 |
| 128 } // namespace IPC | 136 } // namespace IPC |
| OLD | NEW |