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

Side by Side Diff: content/browser/renderer_host/input/synthetic_web_input_event_builders.h

Issue 78263003: Ignore TouchCancel ack dispositions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REbase Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H _ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H _
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H _ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDERS_H _
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/native_web_keyboard_event.h" 10 #include "content/public/browser/native_web_keyboard_event.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 public: 61 public:
62 SyntheticWebTouchEvent(); 62 SyntheticWebTouchEvent();
63 63
64 // Mark all the points as stationary, and remove any released points. 64 // Mark all the points as stationary, and remove any released points.
65 void ResetPoints(); 65 void ResetPoints();
66 66
67 // Adds an additional point to the touch list, returning the point's index. 67 // Adds an additional point to the touch list, returning the point's index.
68 int PressPoint(int x, int y); 68 int PressPoint(int x, int y);
69 void MovePoint(int index, int x, int y); 69 void MovePoint(int index, int x, int y);
70 void ReleasePoint(int index); 70 void ReleasePoint(int index);
71 void CancelPoint(int index);
71 72
72 void SetTimestamp(base::TimeDelta timestamp); 73 void SetTimestamp(base::TimeDelta timestamp);
73 }; 74 };
74 75
75 class CONTENT_EXPORT SyntheticWebTouchEventBuilder { 76 class CONTENT_EXPORT SyntheticWebTouchEventBuilder {
76 public: 77 public:
77 static SyntheticWebTouchEvent Build(blink::WebInputEvent::Type type); 78 static SyntheticWebTouchEvent Build(blink::WebInputEvent::Type type);
78 }; 79 };
79 80
80 } // namespace content 81 } // namespace content
81 82
82 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDER S_H_ 83 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_WEB_INPUT_EVENT_BUILDER S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698