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

Side by Side Diff: components/test_runner/event_sender.h

Issue 1463823003: Return a enumeration of the state of handling of InputEvents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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
OLDNEW
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 COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
6 #define COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 6 #define COMPONENTS_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>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "components/test_runner/web_task.h" 16 #include "components/test_runner/web_task.h"
17 #include "third_party/WebKit/public/platform/WebDragData.h" 17 #include "third_party/WebKit/public/platform/WebDragData.h"
18 #include "third_party/WebKit/public/platform/WebInputEventResult.h"
18 #include "third_party/WebKit/public/platform/WebPoint.h" 19 #include "third_party/WebKit/public/platform/WebPoint.h"
19 #include "third_party/WebKit/public/web/WebDragOperation.h" 20 #include "third_party/WebKit/public/web/WebDragOperation.h"
20 #include "third_party/WebKit/public/web/WebInputEvent.h" 21 #include "third_party/WebKit/public/web/WebInputEvent.h"
21 #include "third_party/WebKit/public/web/WebTouchPoint.h" 22 #include "third_party/WebKit/public/web/WebTouchPoint.h"
22 23
23 namespace blink { 24 namespace blink {
24 class WebFrame; 25 class WebFrame;
25 class WebView; 26 class WebView;
26 struct WebContextMenuData; 27 struct WebContextMenuData;
27 } 28 }
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void InitPointerProperties(gin::Arguments* args, 176 void InitPointerProperties(gin::Arguments* args,
176 blink::WebPointerProperties* e, 177 blink::WebPointerProperties* e,
177 float* radius_x, 178 float* radius_x,
178 float* radius_y); 179 float* radius_y);
179 180
180 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation); 181 void FinishDragAndDrop(const blink::WebMouseEvent&, blink::WebDragOperation);
181 182
182 void DoMouseUp(const blink::WebMouseEvent&); 183 void DoMouseUp(const blink::WebMouseEvent&);
183 void DoMouseMove(const blink::WebMouseEvent&); 184 void DoMouseMove(const blink::WebMouseEvent&);
184 void ReplaySavedEvents(); 185 void ReplaySavedEvents();
185 bool HandleInputEventOnViewOrPopup(const blink::WebInputEvent&); 186 blink::WebInputEventResult HandleInputEventOnViewOrPopup(
187 const blink::WebInputEvent&);
186 188
187 double last_event_timestamp() { return last_event_timestamp_; } 189 double last_event_timestamp() { return last_event_timestamp_; }
188 190
189 bool force_layout_on_events() const { return force_layout_on_events_; } 191 bool force_layout_on_events() const { return force_layout_on_events_; }
190 void set_force_layout_on_events(bool force) { 192 void set_force_layout_on_events(bool force) {
191 force_layout_on_events_ = force; 193 force_layout_on_events_ = force;
192 } 194 }
193 195
194 bool is_drag_mode() const { return is_drag_mode_; } 196 bool is_drag_mode() const { return is_drag_mode_; }
195 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; } 197 void set_is_drag_mode(bool drag_mode) { is_drag_mode_ = drag_mode; }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 double last_event_timestamp_; 287 double last_event_timestamp_;
286 288
287 base::WeakPtrFactory<EventSender> weak_factory_; 289 base::WeakPtrFactory<EventSender> weak_factory_;
288 290
289 DISALLOW_COPY_AND_ASSIGN(EventSender); 291 DISALLOW_COPY_AND_ASSIGN(EventSender);
290 }; 292 };
291 293
292 } // namespace test_runner 294 } // namespace test_runner
293 295
294 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 296 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698