| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 enum ShowIme { | 201 enum ShowIme { |
| 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; |
| 212 |
| 211 protected: | 213 protected: |
| 212 // Friend RefCounted so that the dtor can be non-public. Using this class | 214 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 213 // without ref-counting is an error. | 215 // without ref-counting is an error. |
| 214 friend class base::RefCounted<RenderWidget>; | 216 friend class base::RefCounted<RenderWidget>; |
| 215 // For unit tests. | 217 // For unit tests. |
| 216 friend class RenderWidgetTest; | 218 friend class RenderWidgetTest; |
| 217 | 219 |
| 218 enum ResizeAck { | 220 enum ResizeAck { |
| 219 SEND_RESIZE_ACK, | 221 SEND_RESIZE_ACK, |
| 220 NO_RESIZE_ACK, | 222 NO_RESIZE_ACK, |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 | 666 |
| 665 // Specified whether the compositor will run in its own thread. | 667 // Specified whether the compositor will run in its own thread. |
| 666 bool is_threaded_compositing_enabled_; | 668 bool is_threaded_compositing_enabled_; |
| 667 | 669 |
| 668 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 670 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 669 }; | 671 }; |
| 670 | 672 |
| 671 } // namespace content | 673 } // namespace content |
| 672 | 674 |
| 673 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 675 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |