| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 const blink::WebRect& clipRect); | 126 const blink::WebRect& clipRect); |
| 127 virtual void didAutoResize(const blink::WebSize& new_size); | 127 virtual void didAutoResize(const blink::WebSize& new_size); |
| 128 virtual void didActivateCompositor() OVERRIDE; | 128 virtual void didActivateCompositor() OVERRIDE; |
| 129 virtual void didDeactivateCompositor(); | 129 virtual void didDeactivateCompositor(); |
| 130 virtual void initializeLayerTreeView(); | 130 virtual void initializeLayerTreeView(); |
| 131 virtual blink::WebLayerTreeView* layerTreeView(); | 131 virtual blink::WebLayerTreeView* layerTreeView(); |
| 132 virtual void didBecomeReadyForAdditionalInput(); | 132 virtual void didBecomeReadyForAdditionalInput(); |
| 133 virtual void didCommitAndDrawCompositorFrame(); | 133 virtual void didCommitAndDrawCompositorFrame(); |
| 134 virtual void didCompleteSwapBuffers(); | 134 virtual void didCompleteSwapBuffers(); |
| 135 virtual void scheduleComposite(); | 135 virtual void scheduleComposite(); |
| 136 virtual void scheduleAnimation(); | |
| 137 virtual void didFocus(); | 136 virtual void didFocus(); |
| 138 virtual void didBlur(); | 137 virtual void didBlur(); |
| 139 virtual void didChangeCursor(const blink::WebCursorInfo&); | 138 virtual void didChangeCursor(const blink::WebCursorInfo&); |
| 140 virtual void closeWidgetSoon(); | 139 virtual void closeWidgetSoon(); |
| 141 virtual void show(blink::WebNavigationPolicy); | 140 virtual void show(blink::WebNavigationPolicy); |
| 142 virtual void runModal() {} | 141 virtual void runModal() {} |
| 143 virtual blink::WebRect windowRect(); | 142 virtual blink::WebRect windowRect(); |
| 144 virtual void setToolTipText(const blink::WebString& text, | 143 virtual void setToolTipText(const blink::WebString& text, |
| 145 blink::WebTextDirection hint); | 144 blink::WebTextDirection hint); |
| 146 virtual void setWindowRect(const blink::WebRect&); | 145 virtual void setWindowRect(const blink::WebRect&); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 295 |
| 297 // Finishes creation of a pending view started with Init. | 296 // Finishes creation of a pending view started with Init. |
| 298 void CompleteInit(); | 297 void CompleteInit(); |
| 299 | 298 |
| 300 // Sets whether this RenderWidget has been swapped out to be displayed by | 299 // Sets whether this RenderWidget has been swapped out to be displayed by |
| 301 // a RenderWidget in a different process. If so, no new IPC messages will be | 300 // a RenderWidget in a different process. If so, no new IPC messages will be |
| 302 // sent (only ACKs) and the process is free to exit when there are no other | 301 // sent (only ACKs) and the process is free to exit when there are no other |
| 303 // active RenderWidgets. | 302 // active RenderWidgets. |
| 304 void SetSwappedOut(bool is_swapped_out); | 303 void SetSwappedOut(bool is_swapped_out); |
| 305 | 304 |
| 306 void AnimationCallback(); | |
| 307 void InvalidationCallback(); | 305 void InvalidationCallback(); |
| 308 void FlushPendingInputEventAck(); | 306 void FlushPendingInputEventAck(); |
| 309 void DoDeferredClose(); | 307 void DoDeferredClose(); |
| 310 void DoDeferredSetWindowRect(const blink::WebRect& pos); | 308 void DoDeferredSetWindowRect(const blink::WebRect& pos); |
| 311 | 309 |
| 312 // Set the background of the render widget to a bitmap. The bitmap will be | 310 // Set the background of the render widget to a bitmap. The bitmap will be |
| 313 // tiled in both directions if it isn't big enough to fill the area. This is | 311 // tiled in both directions if it isn't big enough to fill the area. This is |
| 314 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). | 312 // mainly intended to be used in conjuction with WebView::SetIsTransparent(). |
| 315 virtual void SetBackground(const SkBitmap& bitmap); | 313 virtual void SetBackground(const SkBitmap& bitmap); |
| 316 | 314 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // The time spent in input handlers this frame. Used to throttle input acks. | 650 // The time spent in input handlers this frame. Used to throttle input acks. |
| 653 base::TimeDelta total_input_handling_time_this_frame_; | 651 base::TimeDelta total_input_handling_time_this_frame_; |
| 654 | 652 |
| 655 // Indicates if the next sequence of Char events should be suppressed or not. | 653 // Indicates if the next sequence of Char events should be suppressed or not. |
| 656 bool suppress_next_char_events_; | 654 bool suppress_next_char_events_; |
| 657 | 655 |
| 658 // Set to true if painting to the window is handled by the accelerated | 656 // Set to true if painting to the window is handled by the accelerated |
| 659 // compositor. | 657 // compositor. |
| 660 bool is_accelerated_compositing_active_; | 658 bool is_accelerated_compositing_active_; |
| 661 | 659 |
| 662 base::OneShotTimer<RenderWidget> animation_timer_; | |
| 663 bool animation_update_pending_; | |
| 664 bool invalidation_task_posted_; | 660 bool invalidation_task_posted_; |
| 665 | 661 |
| 666 // Stats for legacy software mode | 662 // Stats for legacy software mode |
| 667 scoped_ptr<cc::RenderingStatsInstrumentation> legacy_software_mode_stats_; | 663 scoped_ptr<cc::RenderingStatsInstrumentation> legacy_software_mode_stats_; |
| 668 | 664 |
| 669 // Properties of the screen hosting this RenderWidget instance. | 665 // Properties of the screen hosting this RenderWidget instance. |
| 670 blink::WebScreenInfo screen_info_; | 666 blink::WebScreenInfo screen_info_; |
| 671 | 667 |
| 672 // The device scale factor. This value is computed from the DPI entries in | 668 // The device scale factor. This value is computed from the DPI entries in |
| 673 // |screen_info_| on some platforms, and defaults to 1 on other platforms. | 669 // |screen_info_| on some platforms, and defaults to 1 on other platforms. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 | 718 |
| 723 ui::MenuSourceType context_menu_source_type_; | 719 ui::MenuSourceType context_menu_source_type_; |
| 724 gfx::Point touch_editing_context_menu_location_; | 720 gfx::Point touch_editing_context_menu_location_; |
| 725 | 721 |
| 726 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 722 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 727 }; | 723 }; |
| 728 | 724 |
| 729 } // namespace content | 725 } // namespace content |
| 730 | 726 |
| 731 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 727 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |