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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 // Fills in a GpuRenderingStats struct containing information about | 174 // Fills in a GpuRenderingStats struct containing information about |
175 // GPU rendering, e.g. count of texture uploads performed, time spent | 175 // GPU rendering, e.g. count of texture uploads performed, time spent |
176 // uploading. | 176 // uploading. |
177 // This call is relatively expensive as it blocks on the GPU process | 177 // This call is relatively expensive as it blocks on the GPU process |
178 bool GetGpuRenderingStats(GpuRenderingStats*) const; | 178 bool GetGpuRenderingStats(GpuRenderingStats*) const; |
179 | 179 |
180 RenderWidgetCompositor* compositor() const; | 180 RenderWidgetCompositor* compositor() const; |
181 | 181 |
182 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(); | 182 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(); |
| 183 scoped_ptr<cc::InputHandlerClient> CreateInputHandlerClient(); |
183 | 184 |
184 // Callback for use with BeginSmoothScroll. | 185 // Callback for use with BeginSmoothScroll. |
185 typedef base::Callback<void()> SmoothScrollCompletionCallback; | 186 typedef base::Callback<void()> SmoothScrollCompletionCallback; |
186 | 187 |
187 // Directs the host to begin a smooth scroll. This scroll should have the same | 188 // Directs the host to begin a smooth scroll. This scroll should have the same |
188 // performance characteristics as a user-initiated scroll. Returns an ID of | 189 // performance characteristics as a user-initiated scroll. Returns an ID of |
189 // the scroll gesture. |mouse_event_x| and |mouse_event_y| are expected to be | 190 // the scroll gesture. |mouse_event_x| and |mouse_event_y| are expected to be |
190 // in local DIP coordinates. | 191 // in local DIP coordinates. |
191 void BeginSmoothScroll(bool scroll_down, | 192 void BeginSmoothScroll(bool scroll_down, |
192 const SmoothScrollCompletionCallback& callback, | 193 const SmoothScrollCompletionCallback& callback, |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 bool overscroll_notifications_enabled_; | 728 bool overscroll_notifications_enabled_; |
728 | 729 |
729 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 730 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
730 | 731 |
731 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 732 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
732 }; | 733 }; |
733 | 734 |
734 } // namespace content | 735 } // namespace content |
735 | 736 |
736 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 737 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |