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

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

Issue 2240273002: Move |DidOverscrollParams| from |content::| to "ui/events/blink" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move DidOverscrollParams to ui:: 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 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 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 5 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "content/common/input/did_overscroll_params.h"
13 #include "content/common/input/input_event_ack.h" 12 #include "content/common/input/input_event_ack.h"
14 #include "content/common/input/input_event_dispatch_type.h" 13 #include "content/common/input/input_event_dispatch_type.h"
15 #include "third_party/WebKit/public/web/WebInputEvent.h" 14 #include "third_party/WebKit/public/web/WebInputEvent.h"
16 #include "ui/base/ui_base_types.h" 15 #include "ui/base/ui_base_types.h"
16 #include "ui/events/blink/did_overscroll_params.h"
17 17
18 namespace blink { 18 namespace blink {
19 struct WebFloatPoint; 19 struct WebFloatPoint;
20 struct WebFloatSize; 20 struct WebFloatSize;
21 } 21 }
22 22
23 namespace ui { 23 namespace ui {
24 class LatencyInfo; 24 class LatencyInfo;
25 } 25 }
26 26
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 RenderWidget* const widget_; 83 RenderWidget* const widget_;
84 84
85 // Are we currently handling an input event? 85 // Are we currently handling an input event?
86 bool handling_input_event_; 86 bool handling_input_event_;
87 87
88 // Used to intercept overscroll notifications while an event is being 88 // Used to intercept overscroll notifications while an event is being
89 // handled. If the event causes overscroll, the overscroll metadata can be 89 // handled. If the event causes overscroll, the overscroll metadata can be
90 // bundled in the event ack, saving an IPC. Note that we must continue 90 // bundled in the event ack, saving an IPC. Note that we must continue
91 // supporting overscroll IPC notifications due to fling animation updates. 91 // supporting overscroll IPC notifications due to fling animation updates.
92 std::unique_ptr<DidOverscrollParams>* handling_event_overscroll_; 92 std::unique_ptr<ui::DidOverscrollParams>* handling_event_overscroll_;
93 93
94 // Type of the input event we are currently handling. 94 // Type of the input event we are currently handling.
95 blink::WebInputEvent::Type handling_event_type_; 95 blink::WebInputEvent::Type handling_event_type_;
96 96
97 ui::MenuSourceType context_menu_source_type_; 97 ui::MenuSourceType context_menu_source_type_;
98 98
99 // Indicates if the next sequence of Char events should be suppressed or not. 99 // Indicates if the next sequence of Char events should be suppressed or not.
100 bool suppress_next_char_events_; 100 bool suppress_next_char_events_;
101 101
102 // The time spent in input handlers this frame. Used to throttle input acks. 102 // The time spent in input handlers this frame. Used to throttle input acks.
103 base::TimeDelta total_input_handling_time_this_frame_; 103 base::TimeDelta total_input_handling_time_this_frame_;
104 104
105 // Whether we should not send ack for the current mouse move. 105 // Whether we should not send ack for the current mouse move.
106 bool ignore_ack_for_mouse_move_from_debugger_; 106 bool ignore_ack_for_mouse_move_from_debugger_;
107 107
108 std::unique_ptr<InputEventAck> pending_input_event_ack_; 108 std::unique_ptr<InputEventAck> pending_input_event_ack_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); 110 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler);
111 }; 111 };
112 112
113 } // namespace content 113 } // namespace content
114 114
115 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ 115 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698