OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1181 if (arguments.size() >= 3) | 1181 if (arguments.size() >= 3) |
1182 event.data.tap.tapCount = static_cast<float>(arguments[2].toDouble()
); | 1182 event.data.tap.tapCount = static_cast<float>(arguments[2].toDouble()
); |
1183 else | 1183 else |
1184 event.data.tap.tapCount = 1; | 1184 event.data.tap.tapCount = 1; |
1185 event.x = point.x; | 1185 event.x = point.x; |
1186 event.y = point.y; | 1186 event.y = point.y; |
1187 break; | 1187 break; |
1188 case WebInputEvent::GestureTapDown: | 1188 case WebInputEvent::GestureTapDown: |
1189 event.x = point.x; | 1189 event.x = point.x; |
1190 event.y = point.y; | 1190 event.y = point.y; |
| 1191 if (arguments.size() >= 4) { |
| 1192 event.data.tapDown.width = static_cast<float>(arguments[2].toDouble(
)); |
| 1193 event.data.tapDown.height = static_cast<float>(arguments[3].toDouble
()); |
| 1194 } |
1191 break; | 1195 break; |
1192 case WebInputEvent::GestureTapCancel: | 1196 case WebInputEvent::GestureTapCancel: |
1193 event.x = point.x; | 1197 event.x = point.x; |
1194 event.y = point.y; | 1198 event.y = point.y; |
1195 break; | 1199 break; |
1196 case WebInputEvent::GestureLongPress: | 1200 case WebInputEvent::GestureLongPress: |
1197 event.x = point.x; | 1201 event.x = point.x; |
1198 event.y = point.y; | 1202 event.y = point.y; |
1199 break; | 1203 break; |
1200 case WebInputEvent::GestureTwoFingerTap: | 1204 case WebInputEvent::GestureTwoFingerTap: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 | 1262 |
1259 void EventSender::fireKeyboardEventsToElement(const CppArgumentList&, CppVariant
* result) | 1263 void EventSender::fireKeyboardEventsToElement(const CppArgumentList&, CppVariant
* result) |
1260 { | 1264 { |
1261 result->setNull(); | 1265 result->setNull(); |
1262 } | 1266 } |
1263 | 1267 |
1264 void EventSender::clearKillRing(const CppArgumentList&, CppVariant* result) | 1268 void EventSender::clearKillRing(const CppArgumentList&, CppVariant* result) |
1265 { | 1269 { |
1266 result->setNull(); | 1270 result->setNull(); |
1267 } | 1271 } |
OLD | NEW |