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

Side by Side Diff: webkit/tools/test_shell/event_sending_controller.cc

Issue 159299: Add support for the Home and End keys to the keyDown() method.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file contains the definition for EventSendingController. 5 // This file contains the definition for EventSendingController.
6 // 6 //
7 // Some notes about drag and drop handling: 7 // Some notes about drag and drop handling:
8 // Windows drag and drop goes through a system call to DoDragDrop. At that 8 // Windows drag and drop goes through a system call to DoDragDrop. At that
9 // point, program control is given to Windows which then periodically makes 9 // point, program control is given to Windows which then periodically makes
10 // callbacks into the webview. This won't work for layout tests, so instead, 10 // callbacks into the webview. This won't work for layout tests, so instead,
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } else if (L"leftArrow" == code_str) { 385 } else if (L"leftArrow" == code_str) {
386 code = WebCore::VKEY_LEFT; 386 code = WebCore::VKEY_LEFT;
387 } else if (L"upArrow" == code_str) { 387 } else if (L"upArrow" == code_str) {
388 code = WebCore::VKEY_UP; 388 code = WebCore::VKEY_UP;
389 } else if (L"delete" == code_str) { 389 } else if (L"delete" == code_str) {
390 code = WebCore::VKEY_BACK; 390 code = WebCore::VKEY_BACK;
391 } else if (L"pageUp" == code_str) { 391 } else if (L"pageUp" == code_str) {
392 code = WebCore::VKEY_PRIOR; 392 code = WebCore::VKEY_PRIOR;
393 } else if (L"pageDown" == code_str) { 393 } else if (L"pageDown" == code_str) {
394 code = WebCore::VKEY_NEXT; 394 code = WebCore::VKEY_NEXT;
395 } else if (L"home" == code_str) {
396 code = WebCore::VKEY_HOME;
397 } else if (L"end" == code_str) {
398 code = WebCore::VKEY_END;
395 } else { 399 } else {
396 DCHECK(code_str.length() == 1); 400 DCHECK(code_str.length() == 1);
397 code = code_str[0]; 401 code = code_str[0];
398 needs_shift_key_modifier = NeedsShiftModifier(code); 402 needs_shift_key_modifier = NeedsShiftModifier(code);
399 generate_char = true; 403 generate_char = true;
400 } 404 }
401 405
402 // For one generated keyboard event, we need to generate a keyDown/keyUp 406 // For one generated keyboard event, we need to generate a keyDown/keyUp
403 // pair; refer to EventSender.cpp in WebKit/WebKitTools/DumpRenderTree/win. 407 // pair; refer to EventSender.cpp in WebKit/WebKitTools/DumpRenderTree/win.
404 // On Windows, we might also need to generate a char event to mimic the 408 // On Windows, we might also need to generate a char event to mimic the
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 592
589 void EventSendingController::fireKeyboardEventsToElement( 593 void EventSendingController::fireKeyboardEventsToElement(
590 const CppArgumentList& args, CppVariant* result) { 594 const CppArgumentList& args, CppVariant* result) {
591 result->SetNull(); 595 result->SetNull();
592 } 596 }
593 597
594 void EventSendingController::clearKillRing( 598 void EventSendingController::clearKillRing(
595 const CppArgumentList& args, CppVariant* result) { 599 const CppArgumentList& args, CppVariant* result) {
596 result->SetNull(); 600 result->SetNull();
597 } 601 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698