| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 enum ShowIme { | 200 enum ShowIme { |
| 201 DO_NOT_SHOW_IME, | 201 DO_NOT_SHOW_IME, |
| 202 SHOW_IME_IF_NEEDED | 202 SHOW_IME_IF_NEEDED |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 virtual void InstrumentWillBeginFrame() {} | 205 virtual void InstrumentWillBeginFrame() {} |
| 206 virtual void InstrumentDidBeginFrame() {} | 206 virtual void InstrumentDidBeginFrame() {} |
| 207 virtual void InstrumentDidCancelFrame() {} | 207 virtual void InstrumentDidCancelFrame() {} |
| 208 virtual void InstrumentWillComposite() {} | 208 virtual void InstrumentWillComposite() {} |
| 209 | 209 |
| 210 virtual bool AllowPartialSwap() const; |
| 211 |
| 210 protected: | 212 protected: |
| 211 // Friend RefCounted so that the dtor can be non-public. Using this class | 213 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 212 // without ref-counting is an error. | 214 // without ref-counting is an error. |
| 213 friend class base::RefCounted<RenderWidget>; | 215 friend class base::RefCounted<RenderWidget>; |
| 214 // For unit tests. | 216 // For unit tests. |
| 215 friend class RenderWidgetTest; | 217 friend class RenderWidgetTest; |
| 216 | 218 |
| 217 enum ResizeAck { | 219 enum ResizeAck { |
| 218 SEND_RESIZE_ACK, | 220 SEND_RESIZE_ACK, |
| 219 NO_RESIZE_ACK, | 221 NO_RESIZE_ACK, |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 | 663 |
| 662 // Specified whether the compositor will run in its own thread. | 664 // Specified whether the compositor will run in its own thread. |
| 663 bool is_threaded_compositing_enabled_; | 665 bool is_threaded_compositing_enabled_; |
| 664 | 666 |
| 665 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 667 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 666 }; | 668 }; |
| 667 | 669 |
| 668 } // namespace content | 670 } // namespace content |
| 669 | 671 |
| 670 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 672 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |