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

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

Issue 2171503005: Rename WebTestProxy to WebViewTestProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 5 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 namespace gin { 32 namespace gin {
33 class Arguments; 33 class Arguments;
34 } 34 }
35 35
36 namespace test_runner { 36 namespace test_runner {
37 37
38 class TestInterfaces; 38 class TestInterfaces;
39 class WebTestDelegate; 39 class WebTestDelegate;
40 class WebTestProxyBase; 40 class WebViewTestProxyBase;
41 41
42 // Key event location code introduced in DOM Level 3. 42 // Key event location code introduced in DOM Level 3.
43 // See also: http://www.w3.org/TR/DOM-Level-3-Events/#events-keyboardevents 43 // See also: http://www.w3.org/TR/DOM-Level-3-Events/#events-keyboardevents
44 enum KeyLocationCode { 44 enum KeyLocationCode {
45 DOMKeyLocationStandard = 0x00, 45 DOMKeyLocationStandard = 0x00,
46 DOMKeyLocationLeft = 0x01, 46 DOMKeyLocationLeft = 0x01,
47 DOMKeyLocationRight = 0x02, 47 DOMKeyLocationRight = 0x02,
48 DOMKeyLocationNumpad = 0x03 48 DOMKeyLocationNumpad = 0x03
49 }; 49 };
50 50
51 class EventSender { 51 class EventSender {
52 public: 52 public:
53 explicit EventSender(WebTestProxyBase*); 53 explicit EventSender(WebViewTestProxyBase*);
54 virtual ~EventSender(); 54 virtual ~EventSender();
55 55
56 void Reset(); 56 void Reset();
57 void Install(blink::WebLocalFrame*); 57 void Install(blink::WebLocalFrame*);
58 58
59 void SetContextMenuData(const blink::WebContextMenuData&); 59 void SetContextMenuData(const blink::WebContextMenuData&);
60 60
61 void DoDragDrop(const blink::WebDragData&, blink::WebDragOperationsMask); 61 void DoDragDrop(const blink::WebDragData&, blink::WebDragOperationsMask);
62 62
63 private: 63 private:
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 int wm_key_down_; 250 int wm_key_down_;
251 int wm_key_up_; 251 int wm_key_up_;
252 int wm_char_; 252 int wm_char_;
253 int wm_dead_char_; 253 int wm_dead_char_;
254 int wm_sys_key_down_; 254 int wm_sys_key_down_;
255 int wm_sys_key_up_; 255 int wm_sys_key_up_;
256 int wm_sys_char_; 256 int wm_sys_char_;
257 int wm_sys_dead_char_; 257 int wm_sys_dead_char_;
258 #endif 258 #endif
259 259
260 WebTestProxyBase* web_test_proxy_base_; 260 WebViewTestProxyBase* web_view_test_proxy_base_;
261 TestInterfaces* interfaces(); 261 TestInterfaces* interfaces();
262 WebTestDelegate* delegate(); 262 WebTestDelegate* delegate();
263 const blink::WebView* view() const; 263 const blink::WebView* view() const;
264 blink::WebView* view(); 264 blink::WebView* view();
265 265
266 bool force_layout_on_events_; 266 bool force_layout_on_events_;
267 267
268 // When set to true (the default value), we batch mouse move and mouse up 268 // When set to true (the default value), we batch mouse move and mouse up
269 // events so we can simulate drag & drop. 269 // events so we can simulate drag & drop.
270 bool is_drag_mode_; 270 bool is_drag_mode_;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 double last_event_timestamp_; 326 double last_event_timestamp_;
327 327
328 base::WeakPtrFactory<EventSender> weak_factory_; 328 base::WeakPtrFactory<EventSender> weak_factory_;
329 329
330 DISALLOW_COPY_AND_ASSIGN(EventSender); 330 DISALLOW_COPY_AND_ASSIGN(EventSender);
331 }; 331 };
332 332
333 } // namespace test_runner 333 } // namespace test_runner
334 334
335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_ 335 #endif // COMPONENTS_TEST_RUNNER_EVENT_SENDER_H_
OLDNEW
« no previous file with comments | « components/test_runner/accessibility_controller.cc ('k') | components/test_runner/event_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698