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 | |
196 float filtered_time_per_frame() const { | 193 float filtered_time_per_frame() const { |
197 return filtered_time_per_frame_; | 194 return filtered_time_per_frame_; |
198 } | 195 } |
199 | 196 |
200 enum ShowIme { | 197 enum ShowIme { |
201 DO_NOT_SHOW_IME, | 198 DO_NOT_SHOW_IME, |
202 SHOW_IME_IF_NEEDED | 199 SHOW_IME_IF_NEEDED |
203 }; | 200 }; |
204 | 201 |
205 protected: | 202 protected: |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 | 641 |
645 // Specified whether the compositor will run in its own thread. | 642 // Specified whether the compositor will run in its own thread. |
646 bool is_threaded_compositing_enabled_; | 643 bool is_threaded_compositing_enabled_; |
647 | 644 |
648 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 645 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
649 }; | 646 }; |
650 | 647 |
651 } // namespace content | 648 } // namespace content |
652 | 649 |
653 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 650 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |