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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 void MoveCaret(const gfx::Point& point); | 420 void MoveCaret(const gfx::Point& point); |
421 | 421 |
422 // Called when the reponse to a pending mouse lock request has arrived. | 422 // Called when the reponse to a pending mouse lock request has arrived. |
423 // Returns true if |allowed| is true and the mouse has been successfully | 423 // Returns true if |allowed| is true and the mouse has been successfully |
424 // locked. | 424 // locked. |
425 bool GotResponseToLockMouseRequest(bool allowed); | 425 bool GotResponseToLockMouseRequest(bool allowed); |
426 | 426 |
427 // Called by the view in response to OnSwapCompositorFrame. | 427 // Called by the view in response to OnSwapCompositorFrame. |
428 static void SendReclaimCompositorResources( | 428 static void SendReclaimCompositorResources( |
429 int32_t route_id, | 429 int32_t route_id, |
430 uint32_t output_surface_id, | 430 uint32_t compositor_frame_sink_id, |
431 int renderer_host_id, | 431 int renderer_host_id, |
432 bool is_swap_ack, | 432 bool is_swap_ack, |
433 const cc::ReturnedResourceArray& resources); | 433 const cc::ReturnedResourceArray& resources); |
434 | 434 |
435 void set_allow_privileged_mouse_lock(bool allow) { | 435 void set_allow_privileged_mouse_lock(bool allow) { |
436 allow_privileged_mouse_lock_ = allow; | 436 allow_privileged_mouse_lock_ = allow; |
437 } | 437 } |
438 | 438 |
439 // Resets state variables related to tracking pending size and painting. | 439 // Resets state variables related to tracking pending size and painting. |
440 // | 440 // |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 #endif | 846 #endif |
847 | 847 |
848 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 848 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
849 | 849 |
850 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 850 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
851 }; | 851 }; |
852 | 852 |
853 } // namespace content | 853 } // namespace content |
854 | 854 |
855 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 855 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |