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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // Called when a plugin is moved. These events are queued up and sent with | 158 // Called when a plugin is moved. These events are queued up and sent with |
159 // the next paint or scroll message to the host. | 159 // the next paint or scroll message to the host. |
160 void SchedulePluginMove(const WebPluginGeometry& move); | 160 void SchedulePluginMove(const WebPluginGeometry& move); |
161 | 161 |
162 // Called when a plugin window has been destroyed, to make sure the currently | 162 // Called when a plugin window has been destroyed, to make sure the currently |
163 // pending moves don't try to reference it. | 163 // pending moves don't try to reference it. |
164 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); | 164 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); |
165 | 165 |
166 RenderWidgetCompositor* compositor() const; | 166 RenderWidgetCompositor* compositor() const; |
167 | 167 |
| 168 const ui::LatencyInfo* current_event_latency_info() const { |
| 169 return current_event_latency_info_; |
| 170 } |
| 171 |
168 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback); | 172 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback); |
169 | 173 |
170 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll). | 174 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll). |
171 typedef base::Callback<void()> SyntheticGestureCompletionCallback; | 175 typedef base::Callback<void()> SyntheticGestureCompletionCallback; |
172 | 176 |
173 // Send a synthetic gesture to the browser to be queued to the synthetic | 177 // Send a synthetic gesture to the browser to be queued to the synthetic |
174 // gesture controller. | 178 // gesture controller. |
175 void QueueSyntheticGesture( | 179 void QueueSyntheticGesture( |
176 scoped_ptr<SyntheticGestureParams> gesture_params, | 180 scoped_ptr<SyntheticGestureParams> gesture_params, |
177 const SyntheticGestureCompletionCallback& callback); | 181 const SyntheticGestureCompletionCallback& callback); |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 | 695 |
692 // State associated with synthetic gestures. Synthetic gestures are processed | 696 // State associated with synthetic gestures. Synthetic gestures are processed |
693 // in-order, so a queue is sufficient to identify the correct state for a | 697 // in-order, so a queue is sufficient to identify the correct state for a |
694 // completed gesture. | 698 // completed gesture. |
695 std::queue<SyntheticGestureCompletionCallback> | 699 std::queue<SyntheticGestureCompletionCallback> |
696 pending_synthetic_gesture_callbacks_; | 700 pending_synthetic_gesture_callbacks_; |
697 | 701 |
698 // Specified whether the compositor will run in its own thread. | 702 // Specified whether the compositor will run in its own thread. |
699 bool is_threaded_compositing_enabled_; | 703 bool is_threaded_compositing_enabled_; |
700 | 704 |
| 705 const ui::LatencyInfo* current_event_latency_info_; |
| 706 |
701 uint32 next_output_surface_id_; | 707 uint32 next_output_surface_id_; |
702 | 708 |
703 #if defined(OS_ANDROID) | 709 #if defined(OS_ANDROID) |
704 // Indicates value in the focused text field is in dirty state, i.e. modified | 710 // Indicates value in the focused text field is in dirty state, i.e. modified |
705 // by script etc., not by user input. | 711 // by script etc., not by user input. |
706 bool text_field_is_dirty_; | 712 bool text_field_is_dirty_; |
707 | 713 |
708 // A counter for number of outstanding messages from the renderer to the | 714 // A counter for number of outstanding messages from the renderer to the |
709 // browser regarding IME-type events that have not been acknowledged by the | 715 // browser regarding IME-type events that have not been acknowledged by the |
710 // browser. If this value is not 0 IME events will be dropped. | 716 // browser. If this value is not 0 IME events will be dropped. |
(...skipping 16 matching lines...) Expand all Loading... |
727 | 733 |
728 ui::MenuSourceType context_menu_source_type_; | 734 ui::MenuSourceType context_menu_source_type_; |
729 gfx::Point touch_editing_context_menu_location_; | 735 gfx::Point touch_editing_context_menu_location_; |
730 | 736 |
731 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 737 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
732 }; | 738 }; |
733 | 739 |
734 } // namespace content | 740 } // namespace content |
735 | 741 |
736 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 742 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |