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

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

Issue 18207: Oops, we need config.h. This file really shouldn't be including... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 11 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,
11 // we queue up all the mouse move and mouse up events. When the test tries to 11 // we queue up all the mouse move and mouse up events. When the test tries to
12 // start a drag (by calling EvenSendingController::DoDragDrop), we take the 12 // start a drag (by calling EvenSendingController::DoDragDrop), we take the
13 // events in the queue and replay them. 13 // events in the queue and replay them.
14 // The behavior of queueing events and replaying them can be disabled by a 14 // The behavior of queueing events and replaying them can be disabled by a
15 // layout test by setting eventSender.dragMode to false. 15 // layout test by setting eventSender.dragMode to false.
16 16
17 #include "webkit/tools/test_shell/event_sending_controller.h" 17 #include "webkit/tools/test_shell/event_sending_controller.h"
18 18
19 #include <queue> 19 #include <queue>
20 20
21 // TODO(darin): This is very wrong. We should not be including WebCore headers
22 // directly like this!!
23 #include "config.h"
21 #include "KeyboardCodes.h" 24 #include "KeyboardCodes.h"
22 25
23 #include "base/logging.h" 26 #include "base/logging.h"
24 #include "base/ref_counted.h" 27 #include "base/ref_counted.h"
25 #include "base/string_util.h" 28 #include "base/string_util.h"
26 #include "base/time.h" 29 #include "base/time.h"
27 #include "webkit/glue/webview.h" 30 #include "webkit/glue/webview.h"
28 #include "webkit/tools/test_shell/test_shell.h" 31 #include "webkit/tools/test_shell/test_shell.h"
29 32
30 // TODO(mpcomplete): layout before each event? 33 // TODO(mpcomplete): layout before each event?
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 void EventSendingController::fireKeyboardEventsToElement( 478 void EventSendingController::fireKeyboardEventsToElement(
476 const CppArgumentList& args, CppVariant* result) { 479 const CppArgumentList& args, CppVariant* result) {
477 result->SetNull(); 480 result->SetNull();
478 } 481 }
479 482
480 void EventSendingController::clearKillRing( 483 void EventSendingController::clearKillRing(
481 const CppArgumentList& args, CppVariant* result) { 484 const CppArgumentList& args, CppVariant* result) {
482 result->SetNull(); 485 result->SetNull();
483 } 486 }
484 487
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