| 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 <map> | 9 #include <map> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 int32 route_id, | 394 int32 route_id, |
| 395 int gpu_host_id, | 395 int gpu_host_id, |
| 396 uint32 sync_point); | 396 uint32 sync_point); |
| 397 | 397 |
| 398 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 398 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 399 // platforms that support deferred GPU process descheduling. This does | 399 // platforms that support deferred GPU process descheduling. This does |
| 400 // nothing if the compositor thread is enabled. | 400 // nothing if the compositor thread is enabled. |
| 401 // TODO(jbates) Once the compositor thread is always on, this can be removed. | 401 // TODO(jbates) Once the compositor thread is always on, this can be removed. |
| 402 void AcknowledgeSwapBuffersToRenderer(); | 402 void AcknowledgeSwapBuffersToRenderer(); |
| 403 | 403 |
| 404 #if defined(USE_AURA) | |
| 405 // Called by the view in response to visibility changes: | |
| 406 // 1. After the front surface is guarenteed to no longer be in use by the ui | |
| 407 // (protected false), | |
| 408 // 2. When the ui expects to have a valid front surface (protected true). | |
| 409 static void SendFrontSurfaceIsProtected(bool is_protected, | |
| 410 uint32 protection_state_id, | |
| 411 int32 route_id, | |
| 412 int gpu_host_id); | |
| 413 #endif | |
| 414 | |
| 415 // Signals that the compositing surface was updated, e.g. after a lost context | 404 // Signals that the compositing surface was updated, e.g. after a lost context |
| 416 // event. | 405 // event. |
| 417 void CompositingSurfaceUpdated(); | 406 void CompositingSurfaceUpdated(); |
| 418 | 407 |
| 419 void set_allow_privileged_mouse_lock(bool allow) { | 408 void set_allow_privileged_mouse_lock(bool allow) { |
| 420 allow_privileged_mouse_lock_ = allow; | 409 allow_privileged_mouse_lock_ = allow; |
| 421 } | 410 } |
| 422 | 411 |
| 423 #if defined(OS_ANDROID) | 412 #if defined(OS_ANDROID) |
| 424 virtual void AttachLayer(WebKit::WebLayer* layer) {} | 413 virtual void AttachLayer(WebKit::WebLayer* layer) {} |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 | 827 |
| 839 scoped_ptr<TouchEventQueue> touch_event_queue_; | 828 scoped_ptr<TouchEventQueue> touch_event_queue_; |
| 840 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 829 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
| 841 | 830 |
| 842 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 831 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 843 }; | 832 }; |
| 844 | 833 |
| 845 } // namespace content | 834 } // namespace content |
| 846 | 835 |
| 847 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 836 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |