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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 DO_NOT_SHOW_IME, | 208 DO_NOT_SHOW_IME, |
209 SHOW_IME_IF_NEEDED | 209 SHOW_IME_IF_NEEDED |
210 }; | 210 }; |
211 | 211 |
212 virtual void InstrumentWillBeginFrame() {} | 212 virtual void InstrumentWillBeginFrame() {} |
213 virtual void InstrumentDidBeginFrame() {} | 213 virtual void InstrumentDidBeginFrame() {} |
214 virtual void InstrumentDidCancelFrame() {} | 214 virtual void InstrumentDidCancelFrame() {} |
215 virtual void InstrumentWillComposite() {} | 215 virtual void InstrumentWillComposite() {} |
216 | 216 |
217 virtual bool AllowPartialSwap() const; | 217 virtual bool AllowPartialSwap() const; |
218 bool SynchronouslyDisableVSync() const; | 218 bool UsingSynchronousRendererCompositor() const; |
219 | 219 |
220 protected: | 220 protected: |
221 // Friend RefCounted so that the dtor can be non-public. Using this class | 221 // Friend RefCounted so that the dtor can be non-public. Using this class |
222 // without ref-counting is an error. | 222 // without ref-counting is an error. |
223 friend class base::RefCounted<RenderWidget>; | 223 friend class base::RefCounted<RenderWidget>; |
224 // For unit tests. | 224 // For unit tests. |
225 friend class RenderWidgetTest; | 225 friend class RenderWidgetTest; |
226 | 226 |
227 enum ResizeAck { | 227 enum ResizeAck { |
228 SEND_RESIZE_ACK, | 228 SEND_RESIZE_ACK, |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 bool overscroll_notifications_enabled_; | 709 bool overscroll_notifications_enabled_; |
710 | 710 |
711 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 711 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
712 | 712 |
713 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 713 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
714 }; | 714 }; |
715 | 715 |
716 } // namespace content | 716 } // namespace content |
717 | 717 |
718 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 718 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |