| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 100 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 101 void UpdateCursor(const WebCursor& cursor) override; | 101 void UpdateCursor(const WebCursor& cursor) override; |
| 102 void SetIsLoading(bool is_loading) override; | 102 void SetIsLoading(bool is_loading) override; |
| 103 void RenderProcessGone(base::TerminationStatus status, | 103 void RenderProcessGone(base::TerminationStatus status, |
| 104 int error_code) override; | 104 int error_code) override; |
| 105 void Destroy() override; | 105 void Destroy() override; |
| 106 void SetTooltipText(const base::string16& tooltip_text) override; | 106 void SetTooltipText(const base::string16& tooltip_text) override; |
| 107 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; | 107 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
| 108 void GestureEventAck(const blink::WebGestureEvent& event, | 108 void GestureEventAck(const blink::WebGestureEvent& event, |
| 109 InputEventAckState ack_result) override; | 109 InputEventAckState ack_result) override; |
| 110 void DidCreateNewRendererCompositorFrameSink() override; | 110 void DidCreateNewRendererCompositorFrameSink( |
| 111 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink) |
| 112 override; |
| 111 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 113 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 112 cc::CompositorFrame frame) override; | 114 cc::CompositorFrame frame) override; |
| 113 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; | 115 void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) override; |
| 114 void OnSurfaceChanged(const cc::SurfaceInfo& surface_info) override; | 116 void OnSurfaceChanged(const cc::SurfaceInfo& surface_info) override; |
| 115 // 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 |
| 116 // the URL bar, this method does not need an implementation. | 118 // the URL bar, this method does not need an implementation. |
| 117 void ClearCompositorFrame() override {} | 119 void ClearCompositorFrame() override {} |
| 118 gfx::Rect GetBoundsInRootWindow() override; | 120 gfx::Rect GetBoundsInRootWindow() override; |
| 119 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 121 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 120 InputEventAckState ack_result) override; | 122 InputEventAckState ack_result) override; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 252 |
| 251 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; | 253 using FrameSwappedCallbackList = std::deque<std::unique_ptr<base::Closure>>; |
| 252 // Since frame-drawn callbacks are "fire once", we use std::deque to make | 254 // Since frame-drawn callbacks are "fire once", we use std::deque to make |
| 253 // it convenient to swap() when processing the list. | 255 // it convenient to swap() when processing the list. |
| 254 FrameSwappedCallbackList frame_swapped_callbacks_; | 256 FrameSwappedCallbackList frame_swapped_callbacks_; |
| 255 | 257 |
| 256 // The surface client ID of the parent RenderWidgetHostView. 0 if none. | 258 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
| 257 cc::FrameSinkId parent_frame_sink_id_; | 259 cc::FrameSinkId parent_frame_sink_id_; |
| 258 | 260 |
| 259 bool has_frame_ = false; | 261 bool has_frame_ = false; |
| 262 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = |
| 263 nullptr; |
| 260 | 264 |
| 261 // The background color of the widget. | 265 // The background color of the widget. |
| 262 SkColor background_color_; | 266 SkColor background_color_; |
| 263 | 267 |
| 264 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 268 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 265 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 269 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 266 }; | 270 }; |
| 267 | 271 |
| 268 } // namespace content | 272 } // namespace content |
| 269 | 273 |
| 270 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 274 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |