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

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

Issue 2973963003: Release mouse pointer capture when it starts drag (Closed)
Patch Set: Remove is_cancel from parameters 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
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(WebInputEvent::Type,
31 const WebMouseEvent&);
29 32
30 // TODO(crbug.com/736014): We need a clarified definition of the scale and 33 // TODO(crbug.com/736014): We need a clarified definition of the scale and
31 // the coordinate space on these attributes. 34 // the coordinate space on these attributes.
32 float width; 35 float width;
33 float height; 36 float height;
34 37
35 // ------------ Touch Point Specific ------------ 38 // ------------ Touch Point Specific ------------
36 39
37 float rotation_angle; 40 float rotation_angle;
38 41
(...skipping 18 matching lines...) Expand all
57 BLINK_PLATFORM_EXPORT WebPointerEvent WebPointerEventInRootFrame() const; 60 BLINK_PLATFORM_EXPORT WebPointerEvent WebPointerEventInRootFrame() const;
58 61
59 #endif 62 #endif
60 }; 63 };
61 64
62 #pragma pack(pop) 65 #pragma pack(pop)
63 66
64 } // namespace blink 67 } // namespace blink
65 68
66 #endif // WebMouseEvent_h 69 #endif // WebMouseEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698