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); | |
jbates
2012/08/08 16:55:09
TimeDelta is OK for now since we are in a rush, bu
| |
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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
790 bool fling_in_progress_; | 797 bool fling_in_progress_; |
791 | 798 |
792 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; | 799 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; |
793 | 800 |
794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 801 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
795 }; | 802 }; |
796 | 803 |
797 } // namespace content | 804 } // namespace content |
798 | 805 |
799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 806 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |