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

Side by Side Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2639273002: Give WebTouchEvent and WebKeyboardEvent their own headers (Closed)
Patch Set: Rebase Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/renderer/input/render_widget_input_handler.h" 5 #include "content/renderer/input/render_widget_input_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/auto_reset.h" 11 #include "base/auto_reset.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/metrics/histogram_macros.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/trace_event/trace_event_synthetic_delay.h" 14 #include "base/trace_event/trace_event_synthetic_delay.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "cc/trees/swap_promise_monitor.h" 16 #include "cc/trees/swap_promise_monitor.h"
17 #include "content/common/input/input_event_ack.h" 17 #include "content/common/input/input_event_ack.h"
18 #include "content/common/input/input_event_ack_state.h" 18 #include "content/common/input/input_event_ack_state.h"
19 #include "content/public/common/content_switches.h" 19 #include "content/public/common/content_switches.h"
20 #include "content/renderer/gpu/render_widget_compositor.h" 20 #include "content/renderer/gpu/render_widget_compositor.h"
21 #include "content/renderer/ime_event_guard.h" 21 #include "content/renderer/ime_event_guard.h"
22 #include "content/renderer/input/render_widget_input_handler_delegate.h" 22 #include "content/renderer/input/render_widget_input_handler_delegate.h"
23 #include "content/renderer/render_thread_impl.h" 23 #include "content/renderer/render_thread_impl.h"
24 #include "content/renderer/render_widget.h" 24 #include "content/renderer/render_widget.h"
25 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 25 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
26 #include "third_party/WebKit/public/platform/WebFloatSize.h" 26 #include "third_party/WebKit/public/platform/WebFloatSize.h"
27 #include "third_party/WebKit/public/platform/WebGestureEvent.h" 27 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
28 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h"
28 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" 29 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h"
30 #include "third_party/WebKit/public/platform/WebTouchEvent.h"
29 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h" 31 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul er.h"
30 #include "ui/events/blink/web_input_event_traits.h" 32 #include "ui/events/blink/web_input_event_traits.h"
31 #include "ui/events/latency_info.h" 33 #include "ui/events/latency_info.h"
32 #include "ui/gfx/geometry/point_conversions.h" 34 #include "ui/gfx/geometry/point_conversions.h"
33 35
34 #if defined(OS_ANDROID) 36 #if defined(OS_ANDROID)
35 #include <android/keycodes.h> 37 #include <android/keycodes.h>
36 #endif 38 #endif
37 39
38 using blink::WebFloatPoint; 40 using blink::WebFloatPoint;
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // it can be bundled in the event ack. 463 // it can be bundled in the event ack.
462 if (handling_event_overscroll_) { 464 if (handling_event_overscroll_) {
463 *handling_event_overscroll_ = std::move(params); 465 *handling_event_overscroll_ = std::move(params);
464 return; 466 return;
465 } 467 }
466 468
467 delegate_->OnDidOverscroll(*params); 469 delegate_->OnDidOverscroll(*params);
468 } 470 }
469 471
470 } // namespace content 472 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/native_web_keyboard_event.h ('k') | content/renderer/pepper/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698