OLD | NEW |
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 CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, | 115 void OnSwapCompositorFrame(uint32_t compositor_frame_sink_id, |
116 cc::CompositorFrame frame) override; | 116 cc::CompositorFrame frame) override; |
117 // Since the URL of content rendered by this class is not displayed in | 117 // Since the URL of content rendered by this class is not displayed in |
118 // the URL bar, this method does not need an implementation. | 118 // the URL bar, this method does not need an implementation. |
119 void ClearCompositorFrame() override {} | 119 void ClearCompositorFrame() override {} |
120 gfx::Rect GetBoundsInRootWindow() override; | 120 gfx::Rect GetBoundsInRootWindow() override; |
121 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 121 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
122 InputEventAckState ack_result) override; | 122 InputEventAckState ack_result) override; |
123 bool LockMouse() override; | 123 bool LockMouse() override; |
124 void UnlockMouse() override; | 124 void UnlockMouse() override; |
125 uint32_t GetSurfaceClientId() override; | 125 cc::FrameSinkId GetFrameSinkId() override; |
126 void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 126 void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
127 void ProcessMouseEvent(const blink::WebMouseEvent& event, | 127 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
128 const ui::LatencyInfo& latency) override; | 128 const ui::LatencyInfo& latency) override; |
129 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 129 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
130 const ui::LatencyInfo& latency) override; | 130 const ui::LatencyInfo& latency) override; |
131 void ProcessTouchEvent(const blink::WebTouchEvent& event, | 131 void ProcessTouchEvent(const blink::WebTouchEvent& event, |
132 const ui::LatencyInfo& latency) override; | 132 const ui::LatencyInfo& latency) override; |
133 void ProcessGestureEvent(const blink::WebGestureEvent& event, | 133 void ProcessGestureEvent(const blink::WebGestureEvent& event, |
134 const ui::LatencyInfo& latency) override; | 134 const ui::LatencyInfo& latency) override; |
135 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; | 135 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 236 |
237 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; | 237 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; |
238 // Since frame-drawn callbacks are "fire once", we use std::deque to make | 238 // Since frame-drawn callbacks are "fire once", we use std::deque to make |
239 // it convenient to swap() when processing the list. | 239 // it convenient to swap() when processing the list. |
240 FrameSwappedCallbackList frame_swapped_callbacks_; | 240 FrameSwappedCallbackList frame_swapped_callbacks_; |
241 | 241 |
242 // The begin frame source being observed. Null if none. | 242 // The begin frame source being observed. Null if none. |
243 cc::BeginFrameSource* begin_frame_source_; | 243 cc::BeginFrameSource* begin_frame_source_; |
244 cc::BeginFrameArgs last_begin_frame_args_; | 244 cc::BeginFrameArgs last_begin_frame_args_; |
245 // The surface client ID of the parent RenderWidgetHostView. 0 if none. | 245 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
246 uint32_t parent_surface_client_id_; | 246 cc::FrameSinkId parent_frame_sink_id_; |
247 | 247 |
248 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 248 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
249 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 249 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
250 }; | 250 }; |
251 | 251 |
252 } // namespace content | 252 } // namespace content |
253 | 253 |
254 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 254 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |