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

Side by Side Diff: third_party/WebKit/public/platform/WebPointerEvent.h

Issue 2973963003: Release mouse pointer capture when it starts drag (Closed)
Patch Set: Add TODOs and comments Created 3 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
« no previous file with comments | « third_party/WebKit/Source/platform/WebPointerEvent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 WebPointerEvent_h 5 #ifndef WebPointerEvent_h
6 #define WebPointerEvent_h 6 #define WebPointerEvent_h
7 7
8 #include "WebInputEvent.h" 8 #include "WebInputEvent.h"
9 #include "WebMouseEvent.h"
9 #include "WebPointerProperties.h" 10 #include "WebPointerProperties.h"
10 #include "WebTouchEvent.h" 11 #include "WebTouchEvent.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 // See WebInputEvent.h for details why this pack is here. 15 // See WebInputEvent.h for details why this pack is here.
15 #pragma pack(push, 4) 16 #pragma pack(push, 4)
16 17
17 // WebPointerEvent 18 // WebPointerEvent
18 // This is a WIP and currently used only in Blink and only for touch. 19 // This is a WIP and currently used only in Blink and only for touch.
19 // TODO(nzolghadr): We should unify the fields in this class into 20 // TODO(nzolghadr): We should unify the fields in this class into
20 // WebPointerProperties and not have pointertype specific attributes here. 21 // WebPointerProperties and not have pointertype specific attributes here.
21 // -------------------------------------------------------------- 22 // --------------------------------------------------------------
22 23
23 class WebPointerEvent : public WebInputEvent, public WebPointerProperties { 24 class WebPointerEvent : public WebInputEvent, public WebPointerProperties {
24 public: 25 public:
25 WebPointerEvent() 26 WebPointerEvent()
26 : WebInputEvent(sizeof(WebPointerEvent)), WebPointerProperties(0) {} 27 : WebInputEvent(sizeof(WebPointerEvent)), WebPointerProperties(0) {}
27 BLINK_PLATFORM_EXPORT WebPointerEvent(const WebTouchEvent&, 28 BLINK_PLATFORM_EXPORT WebPointerEvent(const WebTouchEvent&,
28 const WebTouchPoint&); 29 const WebTouchPoint&);
30 BLINK_PLATFORM_EXPORT WebPointerEvent(const WebMouseEvent&, bool is_cancel);
dtapuska 2017/07/11 16:00:52 Can we get rid of the is_cancel? It is really odd.
Navid Zolghadr 2017/07/12 18:36:44 Done.
29 31
30 // TODO(crbug.com/736014): We need a clarified definition of the scale and 32 // TODO(crbug.com/736014): We need a clarified definition of the scale and
31 // the coordinate space on these attributes. 33 // the coordinate space on these attributes.
32 float width; 34 float width;
33 float height; 35 float height;
34 36
35 // ------------ Touch Point Specific ------------ 37 // ------------ Touch Point Specific ------------
36 38
37 float rotation_angle; 39 float rotation_angle;
38 40
(...skipping 18 matching lines...) Expand all
57 BLINK_PLATFORM_EXPORT WebPointerEvent WebPointerEventInRootFrame() const; 59 BLINK_PLATFORM_EXPORT WebPointerEvent WebPointerEventInRootFrame() const;
58 60
59 #endif 61 #endif
60 }; 62 };
61 63
62 #pragma pack(pop) 64 #pragma pack(pop)
63 65
64 } // namespace blink 66 } // namespace blink
65 67
66 #endif // WebMouseEvent_h 68 #endif // WebMouseEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/WebPointerEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698