Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shell/renderer/test_runner/event_sender.h" | 5 #include "content/shell/renderer/test_runner/event_sender.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "content/public/common/page_zoom.h" | 10 #include "content/public/common/page_zoom.h" |
| (...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1358 0, | 1358 0, |
| 1359 &event); | 1359 &event); |
| 1360 FinishDragAndDrop(event, blink::WebDragOperationNone); | 1360 FinishDragAndDrop(event, blink::WebDragOperationNone); |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 delegate_->ClearEditCommand(); | 1363 delegate_->ClearEditCommand(); |
| 1364 | 1364 |
| 1365 if (generate_char) { | 1365 if (generate_char) { |
| 1366 WebKeyboardEvent event_char = event_up; | 1366 WebKeyboardEvent event_char = event_up; |
| 1367 event_char.type = WebInputEvent::Char; | 1367 event_char.type = WebInputEvent::Char; |
| 1368 event_char.keyIdentifier[0] = '\0'; | |
|
jbroman
2014/10/14 17:53:56
Are char events supposed to have key identifiers?
jbroman
2014/10/14 18:03:46
This seems to have been intentionally added in:
ht
robwu
2014/10/14 20:08:13
I tested every key on my keyboard (US keyboard, Li
| |
| 1369 view_->handleInputEvent(event_char); | 1368 view_->handleInputEvent(event_char); |
| 1370 } | 1369 } |
| 1371 | 1370 |
| 1372 view_->handleInputEvent(event_up); | 1371 view_->handleInputEvent(event_up); |
| 1373 } | 1372 } |
| 1374 | 1373 |
| 1375 void EventSender::EnableDOMUIEventLogging() {} | 1374 void EventSender::EnableDOMUIEventLogging() {} |
| 1376 | 1375 |
| 1377 void EventSender::FireKeyboardEventsToElement() {} | 1376 void EventSender::FireKeyboardEventsToElement() {} |
| 1378 | 1377 |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2296 } | 2295 } |
| 2297 default: | 2296 default: |
| 2298 NOTREACHED(); | 2297 NOTREACHED(); |
| 2299 } | 2298 } |
| 2300 } | 2299 } |
| 2301 | 2300 |
| 2302 replaying_saved_events_ = false; | 2301 replaying_saved_events_ = false; |
| 2303 } | 2302 } |
| 2304 | 2303 |
| 2305 } // namespace content | 2304 } // namespace content |
| OLD | NEW |