| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 void FinishHandlingImeEvent(); | 214 void FinishHandlingImeEvent(); |
| 215 | 215 |
| 216 virtual void InstrumentWillBeginFrame() {} | 216 virtual void InstrumentWillBeginFrame() {} |
| 217 virtual void InstrumentDidBeginFrame() {} | 217 virtual void InstrumentDidBeginFrame() {} |
| 218 virtual void InstrumentDidCancelFrame() {} | 218 virtual void InstrumentDidCancelFrame() {} |
| 219 virtual void InstrumentWillComposite() {} | 219 virtual void InstrumentWillComposite() {} |
| 220 | 220 |
| 221 virtual bool AllowPartialSwap() const; | 221 virtual bool AllowPartialSwap() const; |
| 222 bool UsingSynchronousRendererCompositor() const; | 222 bool UsingSynchronousRendererCompositor() const; |
| 223 | 223 |
| 224 bool is_swapped_out() { return is_swapped_out_; } |
| 225 |
| 224 protected: | 226 protected: |
| 225 // Friend RefCounted so that the dtor can be non-public. Using this class | 227 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 226 // without ref-counting is an error. | 228 // without ref-counting is an error. |
| 227 friend class base::RefCounted<RenderWidget>; | 229 friend class base::RefCounted<RenderWidget>; |
| 228 // For unit tests. | 230 // For unit tests. |
| 229 friend class RenderWidgetTest; | 231 friend class RenderWidgetTest; |
| 230 | 232 |
| 231 enum ResizeAck { | 233 enum ResizeAck { |
| 232 SEND_RESIZE_ACK, | 234 SEND_RESIZE_ACK, |
| 233 NO_RESIZE_ACK, | 235 NO_RESIZE_ACK, |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 ui::LatencyInfo latency_info_; | 703 ui::LatencyInfo latency_info_; |
| 702 | 704 |
| 703 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 705 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 704 | 706 |
| 705 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 707 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 706 }; | 708 }; |
| 707 | 709 |
| 708 } // namespace content | 710 } // namespace content |
| 709 | 711 |
| 710 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 712 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |