| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 void UpdateVSyncParameters(base::TimeTicks timebase, | 411 void UpdateVSyncParameters(base::TimeTicks timebase, |
| 412 base::TimeDelta interval); | 412 base::TimeDelta interval); |
| 413 | 413 |
| 414 // Called by the view in response to OnSwapCompositorFrame. | 414 // Called by the view in response to OnSwapCompositorFrame. |
| 415 static void SendSwapCompositorFrameAck( | 415 static void SendSwapCompositorFrameAck( |
| 416 int32_t route_id, | 416 int32_t route_id, |
| 417 uint32_t output_surface_id, | 417 uint32_t output_surface_id, |
| 418 int renderer_host_id, | 418 int renderer_host_id, |
| 419 const cc::CompositorFrameAck& ack); | 419 const cc::CompositorFrameAck& ack); |
| 420 | 420 |
| 421 // Called by the view to return resources to the compositor. | |
| 422 static void SendReclaimCompositorResources(int32_t route_id, | |
| 423 uint32_t output_surface_id, | |
| 424 int renderer_host_id, | |
| 425 const cc::CompositorFrameAck& ack); | |
| 426 | |
| 427 void set_allow_privileged_mouse_lock(bool allow) { | 421 void set_allow_privileged_mouse_lock(bool allow) { |
| 428 allow_privileged_mouse_lock_ = allow; | 422 allow_privileged_mouse_lock_ = allow; |
| 429 } | 423 } |
| 430 | 424 |
| 431 // Resets state variables related to tracking pending size and painting. | 425 // Resets state variables related to tracking pending size and painting. |
| 432 // | 426 // |
| 433 // We need to reset these flags when we want to repaint the contents of | 427 // We need to reset these flags when we want to repaint the contents of |
| 434 // browser plugin in this RWH. Resetting these flags will ensure we ignore | 428 // browser plugin in this RWH. Resetting these flags will ensure we ignore |
| 435 // any previous pending acks that are not relevant upon repaint. | 429 // any previous pending acks that are not relevant upon repaint. |
| 436 void ResetSizeAndRepaintPendingFlags(); | 430 void ResetSizeAndRepaintPendingFlags(); |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 #endif | 820 #endif |
| 827 | 821 |
| 828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 822 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 829 | 823 |
| 830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 824 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 831 }; | 825 }; |
| 832 | 826 |
| 833 } // namespace content | 827 } // namespace content |
| 834 | 828 |
| 835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 829 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |