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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 303 |
304 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll). | 304 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll). |
305 typedef base::Callback<void()> SyntheticGestureCompletionCallback; | 305 typedef base::Callback<void()> SyntheticGestureCompletionCallback; |
306 | 306 |
307 // Send a synthetic gesture to the browser to be queued to the synthetic | 307 // Send a synthetic gesture to the browser to be queued to the synthetic |
308 // gesture controller. | 308 // gesture controller. |
309 void QueueSyntheticGesture( | 309 void QueueSyntheticGesture( |
310 scoped_ptr<SyntheticGestureParams> gesture_params, | 310 scoped_ptr<SyntheticGestureParams> gesture_params, |
311 const SyntheticGestureCompletionCallback& callback); | 311 const SyntheticGestureCompletionCallback& callback); |
312 | 312 |
| 313 void QueueSyntheticGesture(scoped_ptr<SyntheticGestureParams> gesture_params); |
| 314 |
313 // Deliveres |message| together with compositor state change updates. The | 315 // Deliveres |message| together with compositor state change updates. The |
314 // exact behavior depends on |policy|. | 316 // exact behavior depends on |policy|. |
315 // This mechanism is not a drop-in replacement for IPC: messages sent this way | 317 // This mechanism is not a drop-in replacement for IPC: messages sent this way |
316 // will not be automatically available to BrowserMessageFilter, for example. | 318 // will not be automatically available to BrowserMessageFilter, for example. |
317 // FIFO ordering is preserved between messages enqueued with the same | 319 // FIFO ordering is preserved between messages enqueued with the same |
318 // |policy|, the ordering between messages enqueued for different policies is | 320 // |policy|, the ordering between messages enqueued for different policies is |
319 // undefined. | 321 // undefined. |
320 // | 322 // |
321 // |msg| message to send, ownership of |msg| is transferred. | 323 // |msg| message to send, ownership of |msg| is transferred. |
322 // |policy| see the comment on MessageDeliveryPolicy. | 324 // |policy| see the comment on MessageDeliveryPolicy. |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 private: | 772 private: |
771 // When emulated, this returns original device scale factor. | 773 // When emulated, this returns original device scale factor. |
772 float GetOriginalDeviceScaleFactor() const; | 774 float GetOriginalDeviceScaleFactor() const; |
773 | 775 |
774 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 776 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
775 }; | 777 }; |
776 | 778 |
777 } // namespace content | 779 } // namespace content |
778 | 780 |
779 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 781 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |