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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 cc::CompositorFrame frame) override; | 123 cc::CompositorFrame frame) override; |
124 // Since the URL of content rendered by this class is not displayed in | 124 // Since the URL of content rendered by this class is not displayed in |
125 // the URL bar, this method does not need an implementation. | 125 // the URL bar, this method does not need an implementation. |
126 void ClearCompositorFrame() override {} | 126 void ClearCompositorFrame() override {} |
127 void GetScreenInfo(blink::WebScreenInfo* results) override; | 127 void GetScreenInfo(blink::WebScreenInfo* results) override; |
128 gfx::Rect GetBoundsInRootWindow() override; | 128 gfx::Rect GetBoundsInRootWindow() override; |
129 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 129 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
130 InputEventAckState ack_result) override; | 130 InputEventAckState ack_result) override; |
131 bool LockMouse() override; | 131 bool LockMouse() override; |
132 void UnlockMouse() override; | 132 void UnlockMouse() override; |
133 uint32_t GetSurfaceIdNamespace() override; | 133 uint32_t GetSurfaceClientId() override; |
134 void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) override; | 134 void ProcessKeyboardEvent(const NativeWebKeyboardEvent& event) override; |
135 void ProcessMouseEvent(const blink::WebMouseEvent& event, | 135 void ProcessMouseEvent(const blink::WebMouseEvent& event, |
136 const ui::LatencyInfo& latency) override; | 136 const ui::LatencyInfo& latency) override; |
137 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, | 137 void ProcessMouseWheelEvent(const blink::WebMouseWheelEvent& event, |
138 const ui::LatencyInfo& latency) override; | 138 const ui::LatencyInfo& latency) override; |
139 void ProcessTouchEvent(const blink::WebTouchEvent& event, | 139 void ProcessTouchEvent(const blink::WebTouchEvent& event, |
140 const ui::LatencyInfo& latency) override; | 140 const ui::LatencyInfo& latency) override; |
141 void ProcessGestureEvent(const blink::WebGestureEvent& event, | 141 void ProcessGestureEvent(const blink::WebGestureEvent& event, |
142 const ui::LatencyInfo& latency) override; | 142 const ui::LatencyInfo& latency) override; |
143 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; | 143 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point) override; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; | 231 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; |
232 // Since frame-drawn callbacks are "fire once", we use std::deque to make | 232 // Since frame-drawn callbacks are "fire once", we use std::deque to make |
233 // it convenient to swap() when processing the list. | 233 // it convenient to swap() when processing the list. |
234 FrameSwappedCallbackList frame_swapped_callbacks_; | 234 FrameSwappedCallbackList frame_swapped_callbacks_; |
235 | 235 |
236 // The begin frame source being observed. Null if none. | 236 // The begin frame source being observed. Null if none. |
237 cc::BeginFrameSource* begin_frame_source_; | 237 cc::BeginFrameSource* begin_frame_source_; |
238 cc::BeginFrameArgs last_begin_frame_args_; | 238 cc::BeginFrameArgs last_begin_frame_args_; |
239 bool observing_begin_frame_source_; | 239 bool observing_begin_frame_source_; |
240 // The surface id namespace of the parent RenderWidgetHostView. 0 if none. | 240 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
241 uint32_t parent_surface_id_namespace_; | 241 uint32_t parent_surface_client_id_; |
242 | 242 |
243 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 243 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
244 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 244 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
245 }; | 245 }; |
246 | 246 |
247 } // namespace content | 247 } // namespace content |
248 | 248 |
249 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 249 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |