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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void SetContextMenuData(const blink::WebContextMenuData&); | 57 void SetContextMenuData(const blink::WebContextMenuData&); |
58 | 58 |
59 void DoDragDrop(const blink::WebDragData&, blink::WebDragOperationsMask); | 59 void DoDragDrop(const blink::WebDragData&, blink::WebDragOperationsMask); |
60 | 60 |
61 void MouseDown(int button_number, int modifiers); | 61 void MouseDown(int button_number, int modifiers); |
62 void MouseUp(int button_number, int modifiers); | 62 void MouseUp(int button_number, int modifiers); |
63 void KeyDown(const std::string& code_str, | 63 void KeyDown(const std::string& code_str, |
64 int modifiers, | 64 int modifiers, |
65 KeyLocationCode location); | 65 KeyLocationCode location); |
66 | 66 |
67 WebTaskList* taskList() { return &task_list_; } | 67 WebTaskList* mutable_task_list() { return &task_list_; } |
68 | 68 |
69 private: | 69 private: |
70 friend class EventSenderBindings; | 70 friend class EventSenderBindings; |
71 | 71 |
72 struct SavedEvent { | 72 struct SavedEvent { |
73 enum SavedEventType { | 73 enum SavedEventType { |
74 TYPE_UNSPECIFIED, | 74 TYPE_UNSPECIFIED, |
75 TYPE_MOUSE_UP, | 75 TYPE_MOUSE_UP, |
76 TYPE_MOUSE_MOVE, | 76 TYPE_MOUSE_MOVE, |
77 TYPE_LEAP_FORWARD | 77 TYPE_LEAP_FORWARD |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 int click_count_; | 268 int click_count_; |
269 | 269 |
270 base::WeakPtrFactory<EventSender> weak_factory_; | 270 base::WeakPtrFactory<EventSender> weak_factory_; |
271 | 271 |
272 DISALLOW_COPY_AND_ASSIGN(EventSender); | 272 DISALLOW_COPY_AND_ASSIGN(EventSender); |
273 }; | 273 }; |
274 | 274 |
275 } // namespace content | 275 } // namespace content |
276 | 276 |
277 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ | 277 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_EVENT_SENDER_H_ |
OLD | NEW |