| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 | 206 |
| 207 // When paused in debugger, we send ack for mouse event early. This ensures | 207 // When paused in debugger, we send ack for mouse event early. This ensures |
| 208 // that we continue receiving mouse moves and pass them to debugger. Returns | 208 // that we continue receiving mouse moves and pass them to debugger. Returns |
| 209 // whether we are paused in mouse move event and have sent the ack. | 209 // whether we are paused in mouse move event and have sent the ack. |
| 210 bool SendAckForMouseMoveFromDebugger(); | 210 bool SendAckForMouseMoveFromDebugger(); |
| 211 | 211 |
| 212 // When resumed from pause in debugger while handling mouse move, | 212 // When resumed from pause in debugger while handling mouse move, |
| 213 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). | 213 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). |
| 214 void IgnoreAckForMouseMoveFromDebugger(); | 214 void IgnoreAckForMouseMoveFromDebugger(); |
| 215 | 215 |
| 216 bool UsingSynchronousRendererCompositor() const; | |
| 217 | |
| 218 // ScreenMetricsEmulator class manages screen emulation inside a render | 216 // ScreenMetricsEmulator class manages screen emulation inside a render |
| 219 // widget. This includes resizing, placing view on the screen at desired | 217 // widget. This includes resizing, placing view on the screen at desired |
| 220 // position, changing device scale factor, and scaling down the whole | 218 // position, changing device scale factor, and scaling down the whole |
| 221 // widget if required to fit into the browser window. | 219 // widget if required to fit into the browser window. |
| 222 class ScreenMetricsEmulator; | 220 class ScreenMetricsEmulator; |
| 223 | 221 |
| 224 // Emulates screen and widget metrics. Supplied values override everything | 222 // Emulates screen and widget metrics. Supplied values override everything |
| 225 // coming from host. | 223 // coming from host. |
| 226 void EnableScreenMetricsEmulation( | 224 void EnableScreenMetricsEmulation( |
| 227 const blink::WebDeviceEmulationParams& params); | 225 const blink::WebDeviceEmulationParams& params); |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 | 705 |
| 708 ui::MenuSourceType context_menu_source_type_; | 706 ui::MenuSourceType context_menu_source_type_; |
| 709 gfx::Point touch_editing_context_menu_location_; | 707 gfx::Point touch_editing_context_menu_location_; |
| 710 | 708 |
| 711 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 709 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 712 }; | 710 }; |
| 713 | 711 |
| 714 } // namespace content | 712 } // namespace content |
| 715 | 713 |
| 716 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 714 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |