| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 void WillCloseLayerTreeView(); | 309 void WillCloseLayerTreeView(); |
| 310 | 310 |
| 311 RenderWidgetCompositor* compositor() const; | 311 RenderWidgetCompositor* compositor() const; |
| 312 | 312 |
| 313 const RenderWidgetInputHandler& input_handler() const { | 313 const RenderWidgetInputHandler& input_handler() const { |
| 314 return *input_handler_; | 314 return *input_handler_; |
| 315 } | 315 } |
| 316 | 316 |
| 317 void SetHandlingInputEventForTesting(bool handling_input_event); | 317 void SetHandlingInputEventForTesting(bool handling_input_event); |
| 318 | 318 |
| 319 // When paused in debugger, we send ack for mouse event early. This ensures | |
| 320 // that we continue receiving mouse moves and pass them to debugger. Returns | |
| 321 // whether we are paused in mouse move event and have sent the ack. | |
| 322 bool SendAckForMouseMoveFromDebugger(); | |
| 323 | |
| 324 // When resumed from pause in debugger while handling mouse move, | |
| 325 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). | |
| 326 void IgnoreAckForMouseMoveFromDebugger(); | |
| 327 | |
| 328 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll). | 319 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll). |
| 329 typedef base::Callback<void()> SyntheticGestureCompletionCallback; | 320 typedef base::Callback<void()> SyntheticGestureCompletionCallback; |
| 330 | 321 |
| 331 // Send a synthetic gesture to the browser to be queued to the synthetic | 322 // Send a synthetic gesture to the browser to be queued to the synthetic |
| 332 // gesture controller. | 323 // gesture controller. |
| 333 void QueueSyntheticGesture( | 324 void QueueSyntheticGesture( |
| 334 std::unique_ptr<SyntheticGestureParams> gesture_params, | 325 std::unique_ptr<SyntheticGestureParams> gesture_params, |
| 335 const SyntheticGestureCompletionCallback& callback); | 326 const SyntheticGestureCompletionCallback& callback); |
| 336 | 327 |
| 337 // Deliveres |message| together with compositor state change updates. The | 328 // Deliveres |message| together with compositor state change updates. The |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 // Stores edit commands associated to the next key event. | 820 // Stores edit commands associated to the next key event. |
| 830 // Will be cleared as soon as the next key event is processed. | 821 // Will be cleared as soon as the next key event is processed. |
| 831 EditCommands edit_commands_; | 822 EditCommands edit_commands_; |
| 832 | 823 |
| 833 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 824 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 834 }; | 825 }; |
| 835 | 826 |
| 836 } // namespace content | 827 } // namespace content |
| 837 | 828 |
| 838 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 829 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |