| 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 MoveCaret(const gfx::Point& point); | 411 void MoveCaret(const gfx::Point& point); |
| 412 | 412 |
| 413 // Called when the reponse to a pending mouse lock request has arrived. | 413 // Called when the reponse to a pending mouse lock request has arrived. |
| 414 // Returns true if |allowed| is true and the mouse has been successfully | 414 // Returns true if |allowed| is true and the mouse has been successfully |
| 415 // locked. | 415 // locked. |
| 416 bool GotResponseToLockMouseRequest(bool allowed); | 416 bool GotResponseToLockMouseRequest(bool allowed); |
| 417 | 417 |
| 418 // Called by the view in response to OnSwapCompositorFrame. | 418 // Called by the view in response to OnSwapCompositorFrame. |
| 419 static void SendReclaimCompositorResources( | 419 static void SendReclaimCompositorResources( |
| 420 int32_t route_id, | 420 int32_t route_id, |
| 421 uint32_t output_surface_id, | 421 uint32_t compositor_frame_sink_id, |
| 422 int renderer_host_id, | 422 int renderer_host_id, |
| 423 bool is_swap_ack, | 423 bool is_swap_ack, |
| 424 const cc::ReturnedResourceArray& resources); | 424 const cc::ReturnedResourceArray& resources); |
| 425 | 425 |
| 426 void set_allow_privileged_mouse_lock(bool allow) { | 426 void set_allow_privileged_mouse_lock(bool allow) { |
| 427 allow_privileged_mouse_lock_ = allow; | 427 allow_privileged_mouse_lock_ = allow; |
| 428 } | 428 } |
| 429 | 429 |
| 430 // Resets state variables related to tracking pending size and painting. | 430 // Resets state variables related to tracking pending size and painting. |
| 431 // | 431 // |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 #endif | 837 #endif |
| 838 | 838 |
| 839 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 839 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 840 | 840 |
| 841 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 841 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 842 }; | 842 }; |
| 843 | 843 |
| 844 } // namespace content | 844 } // namespace content |
| 845 | 845 |
| 846 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 846 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |