OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 class SelectorQueryCache; | 142 class SelectorQueryCache; |
143 class SerializedScriptValue; | 143 class SerializedScriptValue; |
144 class Settings; | 144 class Settings; |
145 class StyleResolver; | 145 class StyleResolver; |
146 class StyleSheet; | 146 class StyleSheet; |
147 class StyleSheetContents; | 147 class StyleSheetContents; |
148 class StyleSheetList; | 148 class StyleSheetList; |
149 class Text; | 149 class Text; |
150 class TextAutosizer; | 150 class TextAutosizer; |
151 class TextResourceDecoder; | 151 class TextResourceDecoder; |
152 class Touch; | |
153 class TouchList; | |
154 class TransformSource; | 152 class TransformSource; |
155 class TreeWalker; | 153 class TreeWalker; |
156 class VisitedLinkState; | 154 class VisitedLinkState; |
157 class XMLHttpRequest; | 155 class XMLHttpRequest; |
158 class XPathEvaluator; | 156 class XPathEvaluator; |
159 class XPathExpression; | 157 class XPathExpression; |
160 class XPathNSResolver; | 158 class XPathNSResolver; |
161 class XPathResult; | 159 class XPathResult; |
162 | 160 |
163 #if ENABLE(SVG) | 161 #if ENABLE(SVG) |
164 class SVGDocumentExtensions; | 162 class SVGDocumentExtensions; |
165 #endif | 163 #endif |
166 | 164 |
167 struct AnnotatedRegionValue; | 165 struct AnnotatedRegionValue; |
168 | 166 |
| 167 #if ENABLE(TOUCH_EVENTS) |
| 168 class Touch; |
| 169 class TouchList; |
| 170 #endif |
| 171 |
169 class FontLoader; | 172 class FontLoader; |
170 | 173 |
171 typedef int ExceptionCode; | 174 typedef int ExceptionCode; |
172 | 175 |
173 enum PageshowEventPersistence { | 176 enum PageshowEventPersistence { |
174 PageshowEventNotPersisted = 0, | 177 PageshowEventNotPersisted = 0, |
175 PageshowEventPersisted = 1 | 178 PageshowEventPersisted = 1 |
176 }; | 179 }; |
177 | 180 |
178 enum StyleResolverUpdateFlag { RecalcStyleImmediately, DeferRecalcStyle, RecalcS
tyleIfNeeded }; | 181 enum StyleResolverUpdateFlag { RecalcStyleImmediately, DeferRecalcStyle, RecalcS
tyleIfNeeded }; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); | 260 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); |
258 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); | 261 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); |
259 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); | 262 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); |
260 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); | 263 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); |
261 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); | 264 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); |
262 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); | 265 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); |
263 DEFINE_ATTRIBUTE_EVENT_LISTENER(reset); | 266 DEFINE_ATTRIBUTE_EVENT_LISTENER(reset); |
264 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); | 267 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); |
265 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); | 268 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); |
266 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectionchange); | 269 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectionchange); |
| 270 #if ENABLE(TOUCH_EVENTS) |
267 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | 271 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); |
268 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | 272 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); |
269 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 273 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
270 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 274 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
| 275 #endif |
271 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange); | 276 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange); |
272 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror); | 277 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror); |
273 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockchange); | 278 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockchange); |
274 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockerror); | 279 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockerror); |
275 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitvisibilitychange); | 280 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitvisibilitychange); |
276 DEFINE_ATTRIBUTE_EVENT_LISTENER(securitypolicyviolation); | 281 DEFINE_ATTRIBUTE_EVENT_LISTENER(securitypolicyviolation); |
277 | 282 |
278 void setViewportArguments(const ViewportArguments& viewportArguments) { m_vi
ewportArguments = viewportArguments; } | 283 void setViewportArguments(const ViewportArguments& viewportArguments) { m_vi
ewportArguments = viewportArguments; } |
279 ViewportArguments viewportArguments() const { return m_viewportArguments; } | 284 ViewportArguments viewportArguments() const { return m_viewportArguments; } |
280 #ifndef NDEBUG | 285 #ifndef NDEBUG |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 void webkitExitFullscreen(); | 1034 void webkitExitFullscreen(); |
1030 | 1035 |
1031 void webkitExitPointerLock(); | 1036 void webkitExitPointerLock(); |
1032 Element* webkitPointerLockElement() const; | 1037 Element* webkitPointerLockElement() const; |
1033 | 1038 |
1034 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. | 1039 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. |
1035 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } | 1040 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } |
1036 void decrementLoadEventDelayCount(); | 1041 void decrementLoadEventDelayCount(); |
1037 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } | 1042 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } |
1038 | 1043 |
| 1044 #if ENABLE(TOUCH_EVENTS) |
1039 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int
pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota
tionAngle, float force, ExceptionCode&) const; | 1045 PassRefPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, int
pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY, float rota
tionAngle, float force, ExceptionCode&) const; |
| 1046 #endif |
1040 | 1047 |
1041 const DocumentTiming* timing() const { return &m_documentTiming; } | 1048 const DocumentTiming* timing() const { return &m_documentTiming; } |
1042 | 1049 |
1043 int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>); | 1050 int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>); |
1044 void cancelAnimationFrame(int id); | 1051 void cancelAnimationFrame(int id); |
1045 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 1052 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
1046 | 1053 |
1047 virtual EventTarget* errorEventTarget(); | 1054 virtual EventTarget* errorEventTarget(); |
1048 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>); | 1055 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>); |
1049 | 1056 |
1050 void initDNSPrefetch(); | 1057 void initDNSPrefetch(); |
1051 | 1058 |
1052 unsigned wheelEventHandlerCount() const { return m_wheelEventHandlerCount; } | 1059 unsigned wheelEventHandlerCount() const { return m_wheelEventHandlerCount; } |
1053 void didAddWheelEventHandler(); | 1060 void didAddWheelEventHandler(); |
1054 void didRemoveWheelEventHandler(); | 1061 void didRemoveWheelEventHandler(); |
1055 | 1062 |
1056 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes
tureTimestamp; } | 1063 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes
tureTimestamp; } |
1057 void resetLastHandledUserGestureTimestamp(); | 1064 void resetLastHandledUserGestureTimestamp(); |
1058 | 1065 |
| 1066 #if ENABLE(TOUCH_EVENTS) |
1059 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_
touchEventTargets->size() : false; } | 1067 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_
touchEventTargets->size() : false; } |
| 1068 #else |
| 1069 bool hasTouchEventHandlers() const { return false; } |
| 1070 #endif |
1060 | 1071 |
1061 void didAddTouchEventHandler(Node*); | 1072 void didAddTouchEventHandler(Node*); |
1062 void didRemoveTouchEventHandler(Node*); | 1073 void didRemoveTouchEventHandler(Node*); |
1063 | 1074 |
| 1075 #if ENABLE(TOUCH_EVENTS) |
1064 void didRemoveEventTargetNode(Node*); | 1076 void didRemoveEventTargetNode(Node*); |
| 1077 #endif |
1065 | 1078 |
| 1079 #if ENABLE(TOUCH_EVENTS) |
1066 const TouchEventTargetSet* touchEventTargets() const { return m_touchEventTa
rgets.get(); } | 1080 const TouchEventTargetSet* touchEventTargets() const { return m_touchEventTa
rgets.get(); } |
| 1081 #else |
| 1082 const TouchEventTargetSet* touchEventTargets() const { return 0; } |
| 1083 #endif |
1067 | 1084 |
1068 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } | 1085 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } |
1069 | 1086 |
1070 void suspendScheduledTasks(ActiveDOMObject::ReasonForSuspension); | 1087 void suspendScheduledTasks(ActiveDOMObject::ReasonForSuspension); |
1071 void resumeScheduledTasks(); | 1088 void resumeScheduledTasks(); |
1072 | 1089 |
1073 IntSize viewportSize() const; | 1090 IntSize viewportSize() const; |
1074 | 1091 |
1075 #if ENABLE(CSS_DEVICE_ADAPTATION) | 1092 #if ENABLE(CSS_DEVICE_ADAPTATION) |
1076 IntSize initialViewportSize() const; | 1093 IntSize initialViewportSize() const; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 | 1448 |
1432 bool m_directionSetOnDocumentElement; | 1449 bool m_directionSetOnDocumentElement; |
1433 bool m_writingModeSetOnDocumentElement; | 1450 bool m_writingModeSetOnDocumentElement; |
1434 | 1451 |
1435 DocumentTiming m_documentTiming; | 1452 DocumentTiming m_documentTiming; |
1436 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; | 1453 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; |
1437 bool m_writeRecursionIsTooDeep; | 1454 bool m_writeRecursionIsTooDeep; |
1438 unsigned m_writeRecursionDepth; | 1455 unsigned m_writeRecursionDepth; |
1439 | 1456 |
1440 unsigned m_wheelEventHandlerCount; | 1457 unsigned m_wheelEventHandlerCount; |
| 1458 #if ENABLE(TOUCH_EVENTS) |
1441 OwnPtr<TouchEventTargetSet> m_touchEventTargets; | 1459 OwnPtr<TouchEventTargetSet> m_touchEventTargets; |
| 1460 #endif |
1442 | 1461 |
1443 double m_lastHandledUserGestureTimestamp; | 1462 double m_lastHandledUserGestureTimestamp; |
1444 | 1463 |
1445 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; | 1464 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; |
1446 | 1465 |
1447 Timer<Document> m_pendingTasksTimer; | 1466 Timer<Document> m_pendingTasksTimer; |
1448 Vector<OwnPtr<Task> > m_pendingTasks; | 1467 Vector<OwnPtr<Task> > m_pendingTasks; |
1449 | 1468 |
1450 OwnPtr<Prerenderer> m_prerenderer; | 1469 OwnPtr<Prerenderer> m_prerenderer; |
1451 | 1470 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 trackForDebugging(); | 1567 trackForDebugging(); |
1549 #endif | 1568 #endif |
1550 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 1569 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
1551 } | 1570 } |
1552 | 1571 |
1553 Node* eventTargetNodeForDocument(Document*); | 1572 Node* eventTargetNodeForDocument(Document*); |
1554 | 1573 |
1555 } // namespace WebCore | 1574 } // namespace WebCore |
1556 | 1575 |
1557 #endif // Document_h | 1576 #endif // Document_h |
OLD | NEW |