Chromium Code Reviews| 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 virtual void UpdateVSyncParameters(base::TimeTicks timebase, | |
| 363 base::TimeDelta interval); | |
|
jbates
2012/07/27 18:42:26
If the interval is TimeDelta, it's limited to micr
| |
| 364 | |
| 361 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or | 365 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or |
| 362 // AcceleratedSurfacePostSubBuffer. | 366 // AcceleratedSurfacePostSubBuffer. |
| 363 static void AcknowledgeBufferPresent( | 367 static void AcknowledgeBufferPresent( |
| 364 int32 route_id, | 368 int32 route_id, |
| 365 int gpu_host_id, | 369 int gpu_host_id, |
| 366 uint32 sync_point); | 370 uint32 sync_point); |
| 367 | 371 |
| 368 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for | 372 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for |
| 369 // platforms that support deferred GPU process descheduling. This does | 373 // platforms that support deferred GPU process descheduling. This does |
| 370 // nothing if the compositor thread is enabled. | 374 // nothing if the compositor thread is enabled. |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 768 scoped_ptr<TapSuppressionController> tap_suppression_controller_; | 772 scoped_ptr<TapSuppressionController> tap_suppression_controller_; |
| 769 | 773 |
| 770 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 774 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; |
| 771 | 775 |
| 772 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 776 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 773 }; | 777 }; |
| 774 | 778 |
| 775 } // namespace content | 779 } // namespace content |
| 776 | 780 |
| 777 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 781 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |