| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 virtual blink::WebRect rootWindowRect(); | 164 virtual blink::WebRect rootWindowRect(); |
| 165 virtual blink::WebScreenInfo screenInfo(); | 165 virtual blink::WebScreenInfo screenInfo(); |
| 166 virtual float deviceScaleFactor(); | 166 virtual float deviceScaleFactor(); |
| 167 virtual void resetInputMethod(); | 167 virtual void resetInputMethod(); |
| 168 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, | 168 virtual void didHandleGestureEvent(const blink::WebGestureEvent& event, |
| 169 bool event_cancelled); | 169 bool event_cancelled); |
| 170 virtual void showImeIfNeeded(); | 170 virtual void showImeIfNeeded(); |
| 171 | 171 |
| 172 // Begins the compositor's scheduler to start producing frames. | 172 // Begins the compositor's scheduler to start producing frames. |
| 173 void StartCompositor(); | 173 void StartCompositor(); |
| 174 | 174 void StopCompositor(); |
| 175 // Stop compositing. | |
| 176 void DestroyLayerTreeView(); | |
| 177 | 175 |
| 178 // Called when a plugin is moved. These events are queued up and sent with | 176 // Called when a plugin is moved. These events are queued up and sent with |
| 179 // the next paint or scroll message to the host. | 177 // the next paint or scroll message to the host. |
| 180 void SchedulePluginMove(const WebPluginGeometry& move); | 178 void SchedulePluginMove(const WebPluginGeometry& move); |
| 181 | 179 |
| 182 // Called when a plugin window has been destroyed, to make sure the currently | 180 // Called when a plugin window has been destroyed, to make sure the currently |
| 183 // pending moves don't try to reference it. | 181 // pending moves don't try to reference it. |
| 184 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); | 182 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); |
| 185 | 183 |
| 186 RenderWidgetCompositor* compositor() const; | 184 RenderWidgetCompositor* compositor() const; |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 ui::MenuSourceType context_menu_source_type_; | 746 ui::MenuSourceType context_menu_source_type_; |
| 749 bool has_host_context_menu_location_; | 747 bool has_host_context_menu_location_; |
| 750 gfx::Point host_context_menu_location_; | 748 gfx::Point host_context_menu_location_; |
| 751 | 749 |
| 752 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 750 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 753 }; | 751 }; |
| 754 | 752 |
| 755 } // namespace content | 753 } // namespace content |
| 756 | 754 |
| 757 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 755 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |