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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 // Called when animations due to focus change have completed (if any). Can be | 331 // Called when animations due to focus change have completed (if any). Can be |
332 // called from the renderer, browser, or compositor. | 332 // called from the renderer, browser, or compositor. |
333 virtual void FocusChangeComplete() {} | 333 virtual void FocusChangeComplete() {} |
334 | 334 |
335 // Checks if the composition range or composition character bounds have been | 335 // Checks if the composition range or composition character bounds have been |
336 // changed. If they are changed, the new value will be sent to the browser | 336 // changed. If they are changed, the new value will be sent to the browser |
337 // process. This method does nothing when the browser process is not able to | 337 // process. This method does nothing when the browser process is not able to |
338 // handle composition range and composition character bounds. | 338 // handle composition range and composition character bounds. |
339 void UpdateCompositionInfo(bool should_update_range); | 339 void UpdateCompositionInfo(bool should_update_range); |
340 | 340 |
341 #if defined(OS_ANDROID) | |
342 virtual bool DoesRecordFullLayer() const; | |
343 #endif | |
344 | |
345 bool host_closing() const { return host_closing_; } | 341 bool host_closing() const { return host_closing_; } |
346 | 342 |
347 protected: | 343 protected: |
348 // Friend RefCounted so that the dtor can be non-public. Using this class | 344 // Friend RefCounted so that the dtor can be non-public. Using this class |
349 // without ref-counting is an error. | 345 // without ref-counting is an error. |
350 friend class base::RefCounted<RenderWidget>; | 346 friend class base::RefCounted<RenderWidget>; |
351 // For unit tests. | 347 // For unit tests. |
352 friend class RenderWidgetTest; | 348 friend class RenderWidgetTest; |
353 | 349 |
354 enum ResizeAck { | 350 enum ResizeAck { |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 | 799 |
804 scoped_ptr<scheduler::RenderWidgetSchedulingState> | 800 scoped_ptr<scheduler::RenderWidgetSchedulingState> |
805 render_widget_scheduling_state_; | 801 render_widget_scheduling_state_; |
806 | 802 |
807 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 803 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
808 }; | 804 }; |
809 | 805 |
810 } // namespace content | 806 } // namespace content |
811 | 807 |
812 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 808 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |