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

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 2936023002: MouseWheelEventManager is added to handle wheel events. (Closed)
Patch Set: review comments addressed. Created 3 years, 6 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #ifndef EventHandler_h 26 #ifndef EventHandler_h
27 #define EventHandler_h 27 #define EventHandler_h
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/dom/UserGestureIndicator.h" 30 #include "core/dom/UserGestureIndicator.h"
31 #include "core/events/TextEventInputType.h" 31 #include "core/events/TextEventInputType.h"
32 #include "core/input/GestureManager.h" 32 #include "core/input/GestureManager.h"
33 #include "core/input/KeyboardEventManager.h" 33 #include "core/input/KeyboardEventManager.h"
34 #include "core/input/MouseEventManager.h" 34 #include "core/input/MouseEventManager.h"
35 #include "core/input/MouseWheelEventManager.h"
35 #include "core/input/PointerEventManager.h" 36 #include "core/input/PointerEventManager.h"
36 #include "core/input/ScrollManager.h" 37 #include "core/input/ScrollManager.h"
37 #include "core/layout/HitTestRequest.h" 38 #include "core/layout/HitTestRequest.h"
38 #include "core/page/DragActions.h" 39 #include "core/page/DragActions.h"
39 #include "core/page/EventWithHitTestResults.h" 40 #include "core/page/EventWithHitTestResults.h"
40 #include "core/style/ComputedStyleConstants.h" 41 #include "core/style/ComputedStyleConstants.h"
41 #include "platform/Cursor.h" 42 #include "platform/Cursor.h"
42 #include "platform/geometry/LayoutPoint.h" 43 #include "platform/geometry/LayoutPoint.h"
43 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
44 #include "platform/scroll/ScrollTypes.h" 45 #include "platform/scroll/ScrollTypes.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 366
366 Member<Node> drag_target_; 367 Member<Node> drag_target_;
367 bool should_only_fire_drag_over_event_; 368 bool should_only_fire_drag_over_event_;
368 369
369 Member<HTMLFrameSetElement> frame_set_being_resized_; 370 Member<HTMLFrameSetElement> frame_set_being_resized_;
370 371
371 RefPtr<UserGestureToken> last_mouse_down_user_gesture_token_; 372 RefPtr<UserGestureToken> last_mouse_down_user_gesture_token_;
372 373
373 Member<ScrollManager> scroll_manager_; 374 Member<ScrollManager> scroll_manager_;
374 Member<MouseEventManager> mouse_event_manager_; 375 Member<MouseEventManager> mouse_event_manager_;
376 Member<MouseWheelEventManager> mouse_wheel_event_manager_;
375 Member<KeyboardEventManager> keyboard_event_manager_; 377 Member<KeyboardEventManager> keyboard_event_manager_;
376 Member<PointerEventManager> pointer_event_manager_; 378 Member<PointerEventManager> pointer_event_manager_;
377 Member<GestureManager> gesture_manager_; 379 Member<GestureManager> gesture_manager_;
378 380
379 double max_mouse_moved_duration_; 381 double max_mouse_moved_duration_;
380 382
381 bool long_tap_should_invoke_context_menu_; 383 bool long_tap_should_invoke_context_menu_;
382 384
383 TaskRunnerTimer<EventHandler> active_interval_timer_; 385 TaskRunnerTimer<EventHandler> active_interval_timer_;
384 double last_show_press_timestamp_; 386 double last_show_press_timestamp_;
385 Member<Element> last_deferred_tap_element_; 387 Member<Element> last_deferred_tap_element_;
386 388
387 // Set on GestureTapDown if the |pointerdown| event corresponding to the 389 // Set on GestureTapDown if the |pointerdown| event corresponding to the
388 // triggering |touchstart| event was canceled. This suppresses mouse event 390 // triggering |touchstart| event was canceled. This suppresses mouse event
389 // firing for the current gesture sequence (i.e. until next GestureTapDown). 391 // firing for the current gesture sequence (i.e. until next GestureTapDown).
390 bool suppress_mouse_events_from_gestures_; 392 bool suppress_mouse_events_from_gestures_;
391 }; 393 };
392 394
393 } // namespace blink 395 } // namespace blink
394 396
395 #endif // EventHandler_h 397 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/BUILD.gn ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698