OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
144 cc::FrameSinkId AllocateFrameSinkId(bool is_guest_view_hack); | 144 cc::FrameSinkId AllocateFrameSinkId(bool is_guest_view_hack); |
145 | 145 |
146 // RenderWidgetHost implementation. | 146 // RenderWidgetHost implementation. |
147 void UpdateTextDirection(blink::WebTextDirection direction) override; | 147 void UpdateTextDirection(blink::WebTextDirection direction) override; |
148 void NotifyTextDirection() override; | 148 void NotifyTextDirection() override; |
149 void Focus() override; | 149 void Focus() override; |
150 void Blur() override; | 150 void Blur() override; |
151 void SetActive(bool active) override; | 151 void SetActive(bool active) override; |
152 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; | 152 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; |
153 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override; | 153 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override; |
154 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; | 154 void ForwardKeyboardEventWithLatencyInfo( |
155 const NativeWebKeyboardEvent& key_event, | |
156 const ui::LatencyInfo& ui_latency) override; | |
155 void ForwardGestureEvent( | 157 void ForwardGestureEvent( |
156 const blink::WebGestureEvent& gesture_event) override; | 158 const blink::WebGestureEvent& gesture_event) override; |
157 RenderProcessHost* GetProcess() const override; | 159 RenderProcessHost* GetProcess() const override; |
158 int GetRoutingID() const override; | 160 int GetRoutingID() const override; |
159 RenderWidgetHostViewBase* GetView() const override; | 161 RenderWidgetHostViewBase* GetView() const override; |
160 bool IsLoading() const override; | 162 bool IsLoading() const override; |
161 void RestartHangMonitorTimeoutIfNecessary() override; | 163 void RestartHangMonitorTimeoutIfNecessary() override; |
162 void SetIgnoreInputEvents(bool ignore_input_events) override; | 164 void SetIgnoreInputEvents(bool ignore_input_events) override; |
163 void WasResized() override; | 165 void WasResized() override; |
164 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override; | 166 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 // |next_source_id| to be discarded. | 335 // |next_source_id| to be discarded. |
334 void StartNewContentRenderingTimeout(uint32_t next_source_id); | 336 void StartNewContentRenderingTimeout(uint32_t next_source_id); |
335 | 337 |
336 // Forwards the keyboard event with optional commands to the renderer. If | 338 // Forwards the keyboard event with optional commands to the renderer. If |
337 // |key_event| is not forwarded for any reason, then |commands| are ignored. | 339 // |key_event| is not forwarded for any reason, then |commands| are ignored. |
338 // |update_event| (if non-null) is set to indicate whether the underlying | 340 // |update_event| (if non-null) is set to indicate whether the underlying |
339 // event in |key_event| should be updated. |update_event| is only used on | 341 // event in |key_event| should be updated. |update_event| is only used on |
340 // aura. | 342 // aura. |
341 void ForwardKeyboardEventWithCommands( | 343 void ForwardKeyboardEventWithCommands( |
342 const NativeWebKeyboardEvent& key_event, | 344 const NativeWebKeyboardEvent& key_event, |
345 const ui::LatencyInfo& ui_latency, | |
mfomitchev
2017/04/04 14:59:06
nit: var name is just "latency" or "latency_info"
tdresser
2017/05/01 15:49:21
Done.
| |
343 const std::vector<EditCommand>* commands, | 346 const std::vector<EditCommand>* commands, |
344 bool* update_event = nullptr); | 347 bool* update_event = nullptr); |
345 | 348 |
346 // Forwards the given message to the renderer. These are called by the view | 349 // Forwards the given message to the renderer. These are called by the view |
347 // when it has received a message. | 350 // when it has received a message. |
348 void ForwardGestureEventWithLatencyInfo( | 351 void ForwardGestureEventWithLatencyInfo( |
349 const blink::WebGestureEvent& gesture_event, | 352 const blink::WebGestureEvent& gesture_event, |
350 const ui::LatencyInfo& ui_latency) override; | 353 const ui::LatencyInfo& ui_latency) override; |
351 virtual void ForwardTouchEventWithLatencyInfo( | 354 virtual void ForwardTouchEventWithLatencyInfo( |
352 const blink::WebTouchEvent& touch_event, | 355 const blink::WebTouchEvent& touch_event, |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
942 uint32_t last_compositor_frame_sink_id_ = 0; | 945 uint32_t last_compositor_frame_sink_id_ = 0; |
943 | 946 |
944 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 947 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
945 | 948 |
946 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 949 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
947 }; | 950 }; |
948 | 951 |
949 } // namespace content | 952 } // namespace content |
950 | 953 |
951 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 954 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |