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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // the scroll gesture. | 183 // the scroll gesture. |
184 void BeginSmoothScroll(bool scroll_down, | 184 void BeginSmoothScroll(bool scroll_down, |
185 const SmoothScrollCompletionCallback& callback, | 185 const SmoothScrollCompletionCallback& callback, |
186 int pixels_to_scroll, | 186 int pixels_to_scroll, |
187 int mouse_event_x, | 187 int mouse_event_x, |
188 int mouse_event_y); | 188 int mouse_event_y); |
189 | 189 |
190 // Close the underlying WebWidget. | 190 // Close the underlying WebWidget. |
191 virtual void Close(); | 191 virtual void Close(); |
192 | 192 |
| 193 // Notifies about a compositor frame commit operation having finished. |
| 194 virtual void DidCommitCompositorFrame(); |
| 195 |
193 float filtered_time_per_frame() const { | 196 float filtered_time_per_frame() const { |
194 return filtered_time_per_frame_; | 197 return filtered_time_per_frame_; |
195 } | 198 } |
196 | 199 |
197 enum ShowIme { | 200 enum ShowIme { |
198 DO_NOT_SHOW_IME, | 201 DO_NOT_SHOW_IME, |
199 SHOW_IME_IF_NEEDED | 202 SHOW_IME_IF_NEEDED |
200 }; | 203 }; |
201 | 204 |
202 protected: | 205 protected: |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 | 644 |
642 // Specified whether the compositor will run in its own thread. | 645 // Specified whether the compositor will run in its own thread. |
643 bool is_threaded_compositing_enabled_; | 646 bool is_threaded_compositing_enabled_; |
644 | 647 |
645 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 648 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
646 }; | 649 }; |
647 | 650 |
648 } // namespace content | 651 } // namespace content |
649 | 652 |
650 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 653 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |