Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1062)

Side by Side Diff: content/renderer/render_widget.h

Issue 1884883005: Prepare SyntheticPointerAction to handle touch actions for multiple fingers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move logic to controller Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll). 302 // Callback for use with synthetic gestures (e.g. BeginSmoothScroll).
303 typedef base::Callback<void()> SyntheticGestureCompletionCallback; 303 typedef base::Callback<void()> SyntheticGestureCompletionCallback;
304 304
305 // Send a synthetic gesture to the browser to be queued to the synthetic 305 // Send a synthetic gesture to the browser to be queued to the synthetic
306 // gesture controller. 306 // gesture controller.
307 void QueueSyntheticGesture( 307 void QueueSyntheticGesture(
308 std::unique_ptr<SyntheticGestureParams> gesture_params, 308 std::unique_ptr<SyntheticGestureParams> gesture_params,
309 const SyntheticGestureCompletionCallback& callback); 309 const SyntheticGestureCompletionCallback& callback);
310 310
311 void QueueSyntheticGesture(
312 std::unique_ptr<SyntheticGestureParams> gesture_params);
313
311 // Deliveres |message| together with compositor state change updates. The 314 // Deliveres |message| together with compositor state change updates. The
312 // exact behavior depends on |policy|. 315 // exact behavior depends on |policy|.
313 // This mechanism is not a drop-in replacement for IPC: messages sent this way 316 // This mechanism is not a drop-in replacement for IPC: messages sent this way
314 // will not be automatically available to BrowserMessageFilter, for example. 317 // will not be automatically available to BrowserMessageFilter, for example.
315 // FIFO ordering is preserved between messages enqueued with the same 318 // FIFO ordering is preserved between messages enqueued with the same
316 // |policy|, the ordering between messages enqueued for different policies is 319 // |policy|, the ordering between messages enqueued for different policies is
317 // undefined. 320 // undefined.
318 // 321 //
319 // |msg| message to send, ownership of |msg| is transferred. 322 // |msg| message to send, ownership of |msg| is transferred.
320 // |policy| see the comment on MessageDeliveryPolicy. 323 // |policy| see the comment on MessageDeliveryPolicy.
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 private: 760 private:
758 // When emulated, this returns original device scale factor. 761 // When emulated, this returns original device scale factor.
759 float GetOriginalDeviceScaleFactor() const; 762 float GetOriginalDeviceScaleFactor() const;
760 763
761 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 764 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
762 }; 765 };
763 766
764 } // namespace content 767 } // namespace content
765 768
766 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 769 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698