Chromium Code Reviews| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 202 DO_NOT_SHOW_IME, | 202 DO_NOT_SHOW_IME, |
| 203 SHOW_IME_IF_NEEDED | 203 SHOW_IME_IF_NEEDED |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 virtual void InstrumentWillBeginFrame() {} | 206 virtual void InstrumentWillBeginFrame() {} |
| 207 virtual void InstrumentDidBeginFrame() {} | 207 virtual void InstrumentDidBeginFrame() {} |
| 208 virtual void InstrumentDidCancelFrame() {} | 208 virtual void InstrumentDidCancelFrame() {} |
| 209 virtual void InstrumentWillComposite() {} | 209 virtual void InstrumentWillComposite() {} |
| 210 | 210 |
| 211 virtual bool AllowPartialSwap() const; | 211 virtual bool AllowPartialSwap() const; |
| 212 bool EnableSynchronousCompositing() const; | |
|
Sami
2013/05/03 17:55:33
SynchronousCompositingEnabled() might be a better
boliu
2013/05/03 17:59:39
Done.
| |
| 212 | 213 |
| 213 protected: | 214 protected: |
| 214 // Friend RefCounted so that the dtor can be non-public. Using this class | 215 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 215 // without ref-counting is an error. | 216 // without ref-counting is an error. |
| 216 friend class base::RefCounted<RenderWidget>; | 217 friend class base::RefCounted<RenderWidget>; |
| 217 // For unit tests. | 218 // For unit tests. |
| 218 friend class RenderWidgetTest; | 219 friend class RenderWidgetTest; |
| 219 | 220 |
| 220 enum ResizeAck { | 221 enum ResizeAck { |
| 221 SEND_RESIZE_ACK, | 222 SEND_RESIZE_ACK, |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 691 bool is_threaded_compositing_enabled_; | 692 bool is_threaded_compositing_enabled_; |
| 692 | 693 |
| 693 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 694 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
| 694 | 695 |
| 695 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 696 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 696 }; | 697 }; |
| 697 | 698 |
| 698 } // namespace content | 699 } // namespace content |
| 699 | 700 |
| 700 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 701 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |