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

Side by Side Diff: content/browser/renderer_host/input/synthetic_mouse_pointer.cc

Issue 1884883005: Prepare SyntheticPointerAction to handle touch actions for multiple fingers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: return nullptr Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "content/browser/renderer_host/input/synthetic_mouse_pointer.h" 5 #include "content/browser/renderer_host/input/synthetic_mouse_pointer.h"
6 6
7 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" 7 #include "content/browser/renderer_host/input/synthetic_gesture_target.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 void SyntheticMousePointer::Release(int index, 41 void SyntheticMousePointer::Release(int index,
42 SyntheticGestureTarget* target, 42 SyntheticGestureTarget* target,
43 const base::TimeTicks& timestamp) { 43 const base::TimeTicks& timestamp) {
44 mouse_event_ = SyntheticWebMouseEventBuilder::Build( 44 mouse_event_ = SyntheticWebMouseEventBuilder::Build(
45 blink::WebInputEvent::MouseUp, mouse_event_.x, mouse_event_.y, 0); 45 blink::WebInputEvent::MouseUp, mouse_event_.x, mouse_event_.y, 0);
46 mouse_event_.clickCount = 1; 46 mouse_event_.clickCount = 1;
47 } 47 }
48 48
49 SyntheticGestureParams::GestureSourceType SyntheticMousePointer::SourceType()
50 const {
51 return SyntheticGestureParams::MOUSE_INPUT;
52 }
53
49 } // namespace content 54 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/synthetic_mouse_pointer.h ('k') | content/browser/renderer_host/input/synthetic_pointer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698