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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 void ScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 351 void ScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
352 | 352 |
353 // Requests the renderer to select the region between two points. | 353 // Requests the renderer to select the region between two points. |
354 void SelectRange(const gfx::Point& start, const gfx::Point& end); | 354 void SelectRange(const gfx::Point& start, const gfx::Point& end); |
355 | 355 |
356 // Called when the reponse to a pending mouse lock request has arrived. | 356 // Called when the reponse to a pending mouse lock request has arrived. |
357 // Returns true if |allowed| is true and the mouse has been successfully | 357 // Returns true if |allowed| is true and the mouse has been successfully |
358 // locked. | 358 // locked. |
359 bool GotResponseToLockMouseRequest(bool allowed); | 359 bool GotResponseToLockMouseRequest(bool allowed); |
360 | 360 |
| 361 // Tells the RenderWidget about the latest vsync parameters. |
| 362 // Note: Make sure the timebase was obtained using |
| 363 // base::TimeTicks::HighResNow. Using the non-high res timer will result in |
| 364 // incorrect synchronization across processes. |
| 365 virtual void UpdateVSyncParameters(base::TimeTicks timebase, |
| 366 base::TimeDelta interval); |
| 367 |
361 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | 368 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or |
362 // AcceleratedSurfacePostSubBuffer. | 369 // AcceleratedSurfacePostSubBuffer. |
363 static void AcknowledgeBufferPresent( | 370 static void AcknowledgeBufferPresent( |
364 int32 route_id, | 371 int32 route_id, |
365 int gpu_host_id, | 372 int gpu_host_id, |
366 uint32 sync_point); | 373 uint32 sync_point); |
367 | 374 |
368 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 375 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
369 // platforms that support deferred GPU process descheduling. This does | 376 // platforms that support deferred GPU process descheduling. This does |
370 // nothing if the compositor thread is enabled. | 377 // nothing if the compositor thread is enabled. |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 780 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; |
774 | 781 |
775 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 782 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
776 | 783 |
777 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 784 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
778 }; | 785 }; |
779 | 786 |
780 } // namespace content | 787 } // namespace content |
781 | 788 |
782 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 789 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |