| 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_VIEW_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // RendererCompositorFrameSink is created in the renderer. The view is | 223 // RendererCompositorFrameSink is created in the renderer. The view is |
| 224 // expected not to return resources belonging to the old | 224 // expected not to return resources belonging to the old |
| 225 // RendererCompositorFrameSink after this method finishes. | 225 // RendererCompositorFrameSink after this method finishes. |
| 226 virtual void DidCreateNewRendererCompositorFrameSink( | 226 virtual void DidCreateNewRendererCompositorFrameSink( |
| 227 cc::mojom::MojoCompositorFrameSinkClient* | 227 cc::mojom::MojoCompositorFrameSinkClient* |
| 228 renderer_compositor_frame_sink) = 0; | 228 renderer_compositor_frame_sink) = 0; |
| 229 | 229 |
| 230 virtual void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 230 virtual void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 231 cc::CompositorFrame frame) = 0; | 231 cc::CompositorFrame frame) = 0; |
| 232 | 232 |
| 233 virtual void OnBeginFrameDidNotSwap(const cc::BeginFrameAck& ack) {} | 233 virtual void OnBeginFrameDidNotProduceFrame(const cc::BeginFrameAck& ack) {} |
| 234 virtual void OnSurfaceChanged(const cc::SurfaceInfo& surface_info) {} | 234 virtual void OnSurfaceChanged(const cc::SurfaceInfo& surface_info) {} |
| 235 | 235 |
| 236 // This method exists to allow removing of displayed graphics, after a new | 236 // This method exists to allow removing of displayed graphics, after a new |
| 237 // page has been loaded, to prevent the displayed URL from being out of sync | 237 // page has been loaded, to prevent the displayed URL from being out of sync |
| 238 // with what is visible on screen. | 238 // with what is visible on screen. |
| 239 virtual void ClearCompositorFrame() = 0; | 239 virtual void ClearCompositorFrame() = 0; |
| 240 | 240 |
| 241 // Because the associated remote WebKit instance can asynchronously | 241 // Because the associated remote WebKit instance can asynchronously |
| 242 // prevent-default on a dispatched touch event, the touch events are queued in | 242 // prevent-default on a dispatched touch event, the touch events are queued in |
| 243 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 243 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 468 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 469 | 469 |
| 470 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 470 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 471 | 471 |
| 472 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 472 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 473 }; | 473 }; |
| 474 | 474 |
| 475 } // namespace content | 475 } // namespace content |
| 476 | 476 |
| 477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |