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

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

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
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 18 matching lines...) Expand all
29 #include "base/file_path.h" 29 #include "base/file_path.h"
30 #include "base/file_util.h" 30 #include "base/file_util.h"
31 #include "base/logging.h" 31 #include "base/logging.h"
32 #include "base/message_loop.h" 32 #include "base/message_loop.h"
33 #include "base/string_util.h" 33 #include "base/string_util.h"
34 #include "base/time.h" 34 #include "base/time.h"
35 #include "webkit/api/public/WebDragData.h" 35 #include "webkit/api/public/WebDragData.h"
36 #include "webkit/api/public/WebDragOperation.h" 36 #include "webkit/api/public/WebDragOperation.h"
37 #include "webkit/api/public/WebPoint.h" 37 #include "webkit/api/public/WebPoint.h"
38 #include "webkit/api/public/WebString.h" 38 #include "webkit/api/public/WebString.h"
39 #include "webkit/api/public/WebView.h"
39 #include "webkit/glue/webkit_glue.h" 40 #include "webkit/glue/webkit_glue.h"
40 #include "webkit/glue/webview.h"
41 #include "webkit/tools/test_shell/test_shell.h" 41 #include "webkit/tools/test_shell/test_shell.h"
42 42
43 #if defined(OS_WIN) 43 #if defined(OS_WIN)
44 #include "webkit/api/public/win/WebInputEventFactory.h" 44 #include "webkit/api/public/win/WebInputEventFactory.h"
45 using WebKit::WebInputEventFactory; 45 using WebKit::WebInputEventFactory;
46 #endif 46 #endif
47 47
48 // TODO(mpcomplete): layout before each event? 48 // TODO(mpcomplete): layout before each event?
49 // TODO(mpcomplete): do we need modifiers for mouse events? 49 // TODO(mpcomplete): do we need modifiers for mouse events?
50 50
51 using base::Time; 51 using base::Time;
52 using base::TimeTicks; 52 using base::TimeTicks;
53 using WebKit::WebDragOperation; 53 using WebKit::WebDragOperation;
54 using WebKit::WebDragOperationsMask; 54 using WebKit::WebDragOperationsMask;
55 using WebKit::WebDragData; 55 using WebKit::WebDragData;
56 using WebKit::WebInputEvent; 56 using WebKit::WebInputEvent;
57 using WebKit::WebKeyboardEvent; 57 using WebKit::WebKeyboardEvent;
58 using WebKit::WebMouseEvent; 58 using WebKit::WebMouseEvent;
59 using WebKit::WebPoint; 59 using WebKit::WebPoint;
60 using WebKit::WebString; 60 using WebKit::WebString;
61 using WebKit::WebView;
61 62
62 TestShell* EventSendingController::shell_ = NULL; 63 TestShell* EventSendingController::shell_ = NULL;
63 gfx::Point EventSendingController::last_mouse_pos_; 64 gfx::Point EventSendingController::last_mouse_pos_;
64 WebMouseEvent::Button EventSendingController::pressed_button_ = 65 WebMouseEvent::Button EventSendingController::pressed_button_ =
65 WebMouseEvent::ButtonNone; 66 WebMouseEvent::ButtonNone;
66 67
67 WebMouseEvent::Button EventSendingController::last_button_type_ = 68 WebMouseEvent::Button EventSendingController::last_button_type_ =
68 WebMouseEvent::ButtonNone; 69 WebMouseEvent::ButtonNone;
69 70
70 namespace { 71 namespace {
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 718
718 void EventSendingController::fireKeyboardEventsToElement( 719 void EventSendingController::fireKeyboardEventsToElement(
719 const CppArgumentList& args, CppVariant* result) { 720 const CppArgumentList& args, CppVariant* result) {
720 result->SetNull(); 721 result->SetNull();
721 } 722 }
722 723
723 void EventSendingController::clearKillRing( 724 void EventSendingController::clearKillRing(
724 const CppArgumentList& args, CppVariant* result) { 725 const CppArgumentList& args, CppVariant* result) {
725 result->SetNull(); 726 result->SetNull();
726 } 727 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/event_sending_controller.h ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698