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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 virtual void DidCommitCompositorFrame(); | 207 virtual void DidCommitCompositorFrame(); |
208 | 208 |
209 float filtered_time_per_frame() const { | 209 float filtered_time_per_frame() const { |
210 return filtered_time_per_frame_; | 210 return filtered_time_per_frame_; |
211 } | 211 } |
212 | 212 |
213 // Handle common setup/teardown for handling IME events. | 213 // Handle common setup/teardown for handling IME events. |
214 void StartHandlingImeEvent(); | 214 void StartHandlingImeEvent(); |
215 void FinishHandlingImeEvent(); | 215 void FinishHandlingImeEvent(); |
216 | 216 |
217 virtual void InstrumentWillBeginFrame() {} | 217 virtual void InstrumentWillBeginFrame(int /* frame_id */) {} |
jamesr
2013/11/06 19:04:03
we don't do the commented out parameter thing in c
caseq
2013/11/07 06:01:45
Thanks, fixed!
| |
218 virtual void InstrumentDidBeginFrame() {} | 218 virtual void InstrumentDidBeginFrame() {} |
219 virtual void InstrumentDidCancelFrame() {} | 219 virtual void InstrumentDidCancelFrame() {} |
220 virtual void InstrumentWillComposite() {} | 220 virtual void InstrumentWillComposite() {} |
221 | 221 |
222 virtual bool AllowPartialSwap() const; | 222 virtual bool AllowPartialSwap() const; |
223 bool UsingSynchronousRendererCompositor() const; | 223 bool UsingSynchronousRendererCompositor() const; |
224 | 224 |
225 bool is_swapped_out() { return is_swapped_out_; } | 225 bool is_swapped_out() { return is_swapped_out_; } |
226 | 226 |
227 // ScreenMetricsEmulator class manages screen emulation inside a render | 227 // ScreenMetricsEmulator class manages screen emulation inside a render |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
793 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; | 793 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; |
794 | 794 |
795 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 795 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
796 | 796 |
797 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 797 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
798 }; | 798 }; |
799 | 799 |
800 } // namespace content | 800 } // namespace content |
801 | 801 |
802 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 802 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |