| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 // Requests the renderer to move the caret selection towards the point. | 385 // Requests the renderer to move the caret selection towards the point. |
| 386 void MoveCaret(const gfx::Point& point); | 386 void MoveCaret(const gfx::Point& point); |
| 387 | 387 |
| 388 // Called when the reponse to a pending mouse lock request has arrived. | 388 // Called when the reponse to a pending mouse lock request has arrived. |
| 389 // Returns true if |allowed| is true and the mouse has been successfully | 389 // Returns true if |allowed| is true and the mouse has been successfully |
| 390 // locked. | 390 // locked. |
| 391 bool GotResponseToLockMouseRequest(bool allowed); | 391 bool GotResponseToLockMouseRequest(bool allowed); |
| 392 | 392 |
| 393 // Tells the RenderWidget about the latest vsync parameters. | 393 // Tells the RenderWidget about the latest vsync parameters. |
| 394 // Note: Make sure the timebase was obtained using | |
| 395 // base::TimeTicks::HighResNow. Using the non-high res timer will result in | |
| 396 // incorrect synchronization across processes. | |
| 397 virtual void UpdateVSyncParameters(base::TimeTicks timebase, | 394 virtual void UpdateVSyncParameters(base::TimeTicks timebase, |
| 398 base::TimeDelta interval); | 395 base::TimeDelta interval); |
| 399 | 396 |
| 400 // Called by the view in response to OnSwapCompositorFrame. | 397 // Called by the view in response to OnSwapCompositorFrame. |
| 401 static void SendSwapCompositorFrameAck( | 398 static void SendSwapCompositorFrameAck( |
| 402 int32 route_id, | 399 int32 route_id, |
| 403 uint32 output_surface_id, | 400 uint32 output_surface_id, |
| 404 int renderer_host_id, | 401 int renderer_host_id, |
| 405 const cc::CompositorFrameAck& ack); | 402 const cc::CompositorFrameAck& ack); |
| 406 | 403 |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 PendingSnapshotMap pending_browser_snapshots_; | 826 PendingSnapshotMap pending_browser_snapshots_; |
| 830 | 827 |
| 831 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 832 | 829 |
| 833 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 834 }; | 831 }; |
| 835 | 832 |
| 836 } // namespace content | 833 } // namespace content |
| 837 | 834 |
| 838 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |