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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 virtual void DidCommitCompositorFrame(); | 205 virtual void DidCommitCompositorFrame(); |
206 | 206 |
207 float filtered_time_per_frame() const { | 207 float filtered_time_per_frame() const { |
208 return filtered_time_per_frame_; | 208 return filtered_time_per_frame_; |
209 } | 209 } |
210 | 210 |
211 // Handle common setup/teardown for handling IME events. | 211 // Handle common setup/teardown for handling IME events. |
212 void StartHandlingImeEvent(); | 212 void StartHandlingImeEvent(); |
213 void FinishHandlingImeEvent(); | 213 void FinishHandlingImeEvent(); |
214 | 214 |
215 virtual void InstrumentWillBeginFrame() {} | 215 virtual void InstrumentWillBeginFrame(int frame_id) {} |
216 virtual void InstrumentDidBeginFrame() {} | 216 virtual void InstrumentDidBeginFrame() {} |
217 virtual void InstrumentDidCancelFrame() {} | 217 virtual void InstrumentDidCancelFrame() {} |
218 virtual void InstrumentWillComposite() {} | 218 virtual void InstrumentWillComposite() {} |
219 | 219 |
220 virtual bool AllowPartialSwap() const; | 220 virtual bool AllowPartialSwap() const; |
221 bool UsingSynchronousRendererCompositor() const; | 221 bool UsingSynchronousRendererCompositor() const; |
222 | 222 |
223 bool is_swapped_out() { return is_swapped_out_; } | 223 bool is_swapped_out() { return is_swapped_out_; } |
224 | 224 |
225 // ScreenMetricsEmulator class manages screen emulation inside a render | 225 // ScreenMetricsEmulator class manages screen emulation inside a render |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 float popup_origin_scale_for_emulation_; | 789 float popup_origin_scale_for_emulation_; |
790 | 790 |
791 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; | 791 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; |
792 | 792 |
793 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 793 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
794 }; | 794 }; |
795 | 795 |
796 } // namespace content | 796 } // namespace content |
797 | 797 |
798 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 798 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |