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

Side by Side Diff: Source/WebCore/platform/PlatformTouchPoint.h

Issue 13687007: Remove PLATFORM(BLACKBERRY) support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) 2 Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
3 3
4 This library is free software; you can redistribute it and/or 4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public 5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either 6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version. 7 version 2 of the License, or (at your option) any later version.
8 8
9 This library is distributed in the hope that it will be useful, 9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 11 matching lines...) Expand all
22 22
23 #include "IntPoint.h" 23 #include "IntPoint.h"
24 #include <wtf/Vector.h> 24 #include <wtf/Vector.h>
25 25
26 #if ENABLE(TOUCH_EVENTS) 26 #if ENABLE(TOUCH_EVENTS)
27 27
28 #if PLATFORM(QT) 28 #if PLATFORM(QT)
29 #include <QTouchEvent> 29 #include <QTouchEvent>
30 #endif 30 #endif
31 31
32 #if PLATFORM(BLACKBERRY)
33 namespace BlackBerry {
34 namespace Platform {
35 class TouchPoint;
36 };
37 };
38 #endif
39
40 namespace WebCore { 32 namespace WebCore {
41 33
42 class PlatformTouchEvent; 34 class PlatformTouchEvent;
43 35
44 class PlatformTouchPoint { 36 class PlatformTouchPoint {
45 public: 37 public:
46 enum State { 38 enum State {
47 TouchReleased, 39 TouchReleased,
48 TouchPressed, 40 TouchPressed,
49 TouchMoved, 41 TouchMoved,
50 TouchStationary, 42 TouchStationary,
51 TouchCancelled, 43 TouchCancelled,
52 TouchStateEnd // Placeholder: must remain the last item. 44 TouchStateEnd // Placeholder: must remain the last item.
53 }; 45 };
54 46
55 // This is necessary for us to be able to build synthetic events. 47 // This is necessary for us to be able to build synthetic events.
56 PlatformTouchPoint() 48 PlatformTouchPoint()
57 : m_id(0) 49 : m_id(0)
58 , m_radiusY(0) 50 , m_radiusY(0)
59 , m_radiusX(0) 51 , m_radiusX(0)
60 , m_rotationAngle(0) 52 , m_rotationAngle(0)
61 , m_force(0) 53 , m_force(0)
62 { 54 {
63 } 55 }
64 56
65 #if PLATFORM(BLACKBERRY)
66 PlatformTouchPoint(const BlackBerry::Platform::TouchPoint&);
67 #endif
68
69 unsigned id() const { return m_id; } 57 unsigned id() const { return m_id; }
70 State state() const { return m_state; } 58 State state() const { return m_state; }
71 IntPoint screenPos() const { return m_screenPos; } 59 IntPoint screenPos() const { return m_screenPos; }
72 IntPoint pos() const { return m_pos; } 60 IntPoint pos() const { return m_pos; }
73 int radiusX() const { return m_radiusX; } 61 int radiusX() const { return m_radiusX; }
74 int radiusY() const { return m_radiusY; } 62 int radiusY() const { return m_radiusY; }
75 float rotationAngle() const { return m_rotationAngle; } 63 float rotationAngle() const { return m_rotationAngle; }
76 float force() const { return m_force; } 64 float force() const { return m_force; }
77 65
78 protected: 66 protected:
79 unsigned m_id; 67 unsigned m_id;
80 State m_state; 68 State m_state;
81 IntPoint m_screenPos; 69 IntPoint m_screenPos;
82 IntPoint m_pos; 70 IntPoint m_pos;
83 int m_radiusY; 71 int m_radiusY;
84 int m_radiusX; 72 int m_radiusX;
85 float m_rotationAngle; 73 float m_rotationAngle;
86 float m_force; 74 float m_force;
87 }; 75 };
88 76
89 } 77 }
90 78
91 #endif // ENABLE(TOUCH_EVENTS) 79 #endif // ENABLE(TOUCH_EVENTS)
92 80
93 #endif // PlatformTouchPoint_h 81 #endif // PlatformTouchPoint_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698