| 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 12 matching lines...) Expand all Loading... |
| 23 #include "content/browser/renderer_host/event_with_latency_info.h" | 23 #include "content/browser/renderer_host/event_with_latency_info.h" |
| 24 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 24 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 25 #include "content/common/content_export.h" | 25 #include "content/common/content_export.h" |
| 26 #include "content/common/input/input_event_ack_state.h" | 26 #include "content/common/input/input_event_ack_state.h" |
| 27 #include "content/public/browser/readback_types.h" | 27 #include "content/public/browser/readback_types.h" |
| 28 #include "ui/gfx/geometry/rect.h" | 28 #include "ui/gfx/geometry/rect.h" |
| 29 #include "ui/gfx/native_widget_types.h" | 29 #include "ui/gfx/native_widget_types.h" |
| 30 | 30 |
| 31 namespace cc { | 31 namespace cc { |
| 32 class SurfaceFactory; | 32 class SurfaceFactory; |
| 33 enum class SurfaceDrawStatus; | |
| 34 } | 33 } |
| 35 | 34 |
| 36 | 35 |
| 37 namespace content { | 36 namespace content { |
| 38 class CrossProcessFrameConnector; | 37 class CrossProcessFrameConnector; |
| 39 class RenderWidgetHost; | 38 class RenderWidgetHost; |
| 40 class RenderWidgetHostImpl; | 39 class RenderWidgetHostImpl; |
| 41 class RenderWidgetHostViewChildFrameTest; | 40 class RenderWidgetHostViewChildFrameTest; |
| 42 class RenderWidgetHostViewGuestSurfaceTest; | 41 class RenderWidgetHostViewGuestSurfaceTest; |
| 43 | 42 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 162 |
| 164 // cc::BeginFrameObserver implementation. | 163 // cc::BeginFrameObserver implementation. |
| 165 void OnBeginFrame(const cc::BeginFrameArgs& args) override; | 164 void OnBeginFrame(const cc::BeginFrameArgs& args) override; |
| 166 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; | 165 const cc::BeginFrameArgs& LastUsedBeginFrameArgs() const override; |
| 167 void OnBeginFrameSourcePausedChanged(bool paused) override; | 166 void OnBeginFrameSourcePausedChanged(bool paused) override; |
| 168 | 167 |
| 169 void OnSetNeedsBeginFrames(bool needs_begin_frames); | 168 void OnSetNeedsBeginFrames(bool needs_begin_frames); |
| 170 | 169 |
| 171 // Declared 'public' instead of 'protected' here to allow derived classes | 170 // Declared 'public' instead of 'protected' here to allow derived classes |
| 172 // to Bind() to it. | 171 // to Bind() to it. |
| 173 void SurfaceDrawn(uint32_t output_surface_id, cc::SurfaceDrawStatus drawn); | 172 void SurfaceDrawn(uint32_t output_surface_id); |
| 174 | 173 |
| 175 // Exposed for tests. | 174 // Exposed for tests. |
| 176 bool IsChildFrameForTesting() const override; | 175 bool IsChildFrameForTesting() const override; |
| 177 cc::SurfaceId SurfaceIdForTesting() const override; | 176 cc::SurfaceId SurfaceIdForTesting() const override; |
| 178 CrossProcessFrameConnector* FrameConnectorForTesting() const { | 177 CrossProcessFrameConnector* FrameConnectorForTesting() const { |
| 179 return frame_connector_; | 178 return frame_connector_; |
| 180 } | 179 } |
| 181 | 180 |
| 182 void RegisterSurfaceNamespaceId(); | 181 void RegisterSurfaceNamespaceId(); |
| 183 void UnregisterSurfaceNamespaceId(); | 182 void UnregisterSurfaceNamespaceId(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // The surface client ID of the parent RenderWidgetHostView. 0 if none. | 236 // The surface client ID of the parent RenderWidgetHostView. 0 if none. |
| 238 uint32_t parent_surface_client_id_; | 237 uint32_t parent_surface_client_id_; |
| 239 | 238 |
| 240 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; | 239 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; |
| 241 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 240 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
| 242 }; | 241 }; |
| 243 | 242 |
| 244 } // namespace content | 243 } // namespace content |
| 245 | 244 |
| 246 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 245 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
| OLD | NEW |