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

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

Issue 2227563003: Refactoring button field and its type (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix new instances Created 4 years, 4 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // A bitwise OR of the WebMouseEvent::*ButtonDown values corresponding to 289 // A bitwise OR of the WebMouseEvent::*ButtonDown values corresponding to
290 // currently pressed buttons of the pointer (e.g. pen or mouse). 290 // currently pressed buttons of the pointer (e.g. pen or mouse).
291 int current_buttons_; 291 int current_buttons_;
292 292
293 // Location of last mouseMoveTo event of this pointer. 293 // Location of last mouseMoveTo event of this pointer.
294 blink::WebPoint last_pos_; 294 blink::WebPoint last_pos_;
295 295
296 int modifiers_; 296 int modifiers_;
297 297
298 PointerState() 298 PointerState()
299 : pressed_button_(blink::WebMouseEvent::ButtonNone) 299 : pressed_button_(blink::WebMouseEvent::Button::NoButton)
300 , current_buttons_(0) 300 , current_buttons_(0)
301 , last_pos_(blink::WebPoint(0, 0)) 301 , last_pos_(blink::WebPoint(0, 0))
302 , modifiers_(0) { } 302 , modifiers_(0) { }
303 }; 303 };
304 typedef std::unordered_map<int, PointerState> PointerStateMap; 304 typedef std::unordered_map<int, PointerState> PointerStateMap;
305 PointerStateMap current_pointer_state_; 305 PointerStateMap current_pointer_state_;
306 306
307 bool replaying_saved_events_; 307 bool replaying_saved_events_;
308 308
309 std::deque<SavedEvent> mouse_event_queue_; 309 std::deque<SavedEvent> mouse_event_queue_;
(...skipping 16 matching lines...) Expand all
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/printing/test/print_web_view_helper_browsertest.cc ('k') | components/test_runner/event_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698