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

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

Issue 48105: Remove unneeded uses of base/ref_counted.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « webkit/glue/plugins/plugin_list.h ('k') | 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 queuing events and replaying them can be disabled by a 14 // The behavior of queuing 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 21 // TODO(darin): This is very wrong. We should not be including WebCore headers
22 // directly like this!! 22 // directly like this!!
23 #include "config.h" 23 #include "config.h"
24 #include "KeyboardCodes.h" 24 #include "KeyboardCodes.h"
25 25
26 #include "base/compiler_specific.h" 26 #include "base/compiler_specific.h"
27 #include "base/logging.h" 27 #include "base/logging.h"
28 #include "base/message_loop.h" 28 #include "base/message_loop.h"
29 #include "base/ref_counted.h"
30 #include "base/string_util.h" 29 #include "base/string_util.h"
31 #include "base/time.h" 30 #include "base/time.h"
32 #include "webkit/glue/webinputevent_util.h" 31 #include "webkit/glue/webinputevent_util.h"
33 #include "webkit/glue/webview.h" 32 #include "webkit/glue/webview.h"
34 #include "webkit/tools/test_shell/test_shell.h" 33 #include "webkit/tools/test_shell/test_shell.h"
35 34
36 // TODO(mpcomplete): layout before each event? 35 // TODO(mpcomplete): layout before each event?
37 // TODO(mpcomplete): do we need modifiers for mouse events? 36 // TODO(mpcomplete): do we need modifiers for mouse events?
38 37
39 using base::Time; 38 using base::Time;
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 558
560 void EventSendingController::fireKeyboardEventsToElement( 559 void EventSendingController::fireKeyboardEventsToElement(
561 const CppArgumentList& args, CppVariant* result) { 560 const CppArgumentList& args, CppVariant* result) {
562 result->SetNull(); 561 result->SetNull();
563 } 562 }
564 563
565 void EventSendingController::clearKillRing( 564 void EventSendingController::clearKillRing(
566 const CppArgumentList& args, CppVariant* result) { 565 const CppArgumentList& args, CppVariant* result) {
567 result->SetNull(); 566 result->SetNull();
568 } 567 }
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698