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; |
152 class TransformSource; | 154 class TransformSource; |
153 class TreeWalker; | 155 class TreeWalker; |
154 class VisitedLinkState; | 156 class VisitedLinkState; |
155 class XMLHttpRequest; | 157 class XMLHttpRequest; |
156 class XPathEvaluator; | 158 class XPathEvaluator; |
157 class XPathExpression; | 159 class XPathExpression; |
158 class XPathNSResolver; | 160 class XPathNSResolver; |
159 class XPathResult; | 161 class XPathResult; |
160 | 162 |
161 #if ENABLE(SVG) | 163 #if ENABLE(SVG) |
162 class SVGDocumentExtensions; | 164 class SVGDocumentExtensions; |
163 #endif | 165 #endif |
164 | 166 |
165 struct AnnotatedRegionValue; | 167 struct AnnotatedRegionValue; |
166 | 168 |
167 #if ENABLE(TOUCH_EVENTS) | |
168 class Touch; | |
169 class TouchList; | |
170 #endif | |
171 | |
172 #if ENABLE(FONT_LOAD_EVENTS) | 169 #if ENABLE(FONT_LOAD_EVENTS) |
173 class FontLoader; | 170 class FontLoader; |
174 #endif | 171 #endif |
175 | 172 |
176 typedef int ExceptionCode; | 173 typedef int ExceptionCode; |
177 | 174 |
178 enum PageshowEventPersistence { | 175 enum PageshowEventPersistence { |
179 PageshowEventNotPersisted = 0, | 176 PageshowEventNotPersisted = 0, |
180 PageshowEventPersisted = 1 | 177 PageshowEventPersisted = 1 |
181 }; | 178 }; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); | 259 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut); |
263 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); | 260 DEFINE_ATTRIBUTE_EVENT_LISTENER(cut); |
264 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); | 261 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy); |
265 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); | 262 DEFINE_ATTRIBUTE_EVENT_LISTENER(copy); |
266 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); | 263 DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste); |
267 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); | 264 DEFINE_ATTRIBUTE_EVENT_LISTENER(paste); |
268 DEFINE_ATTRIBUTE_EVENT_LISTENER(reset); | 265 DEFINE_ATTRIBUTE_EVENT_LISTENER(reset); |
269 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); | 266 DEFINE_ATTRIBUTE_EVENT_LISTENER(search); |
270 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); | 267 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectstart); |
271 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectionchange); | 268 DEFINE_ATTRIBUTE_EVENT_LISTENER(selectionchange); |
272 #if ENABLE(TOUCH_EVENTS) | |
273 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | 269 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); |
274 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | 270 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); |
275 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 271 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
276 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 272 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
277 #endif | |
278 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange); | 273 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenchange); |
279 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror); | 274 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitfullscreenerror); |
280 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockchange); | 275 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockchange); |
281 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockerror); | 276 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitpointerlockerror); |
282 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitvisibilitychange); | 277 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitvisibilitychange); |
283 DEFINE_ATTRIBUTE_EVENT_LISTENER(securitypolicyviolation); | 278 DEFINE_ATTRIBUTE_EVENT_LISTENER(securitypolicyviolation); |
284 | 279 |
285 void setViewportArguments(const ViewportArguments& viewportArguments) { m_vi
ewportArguments = viewportArguments; } | 280 void setViewportArguments(const ViewportArguments& viewportArguments) { m_vi
ewportArguments = viewportArguments; } |
286 ViewportArguments viewportArguments() const { return m_viewportArguments; } | 281 ViewportArguments viewportArguments() const { return m_viewportArguments; } |
287 #ifndef NDEBUG | 282 #ifndef NDEBUG |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 void webkitExitFullscreen(); | 1031 void webkitExitFullscreen(); |
1037 | 1032 |
1038 void webkitExitPointerLock(); | 1033 void webkitExitPointerLock(); |
1039 Element* webkitPointerLockElement() const; | 1034 Element* webkitPointerLockElement() const; |
1040 | 1035 |
1041 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. | 1036 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. |
1042 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } | 1037 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } |
1043 void decrementLoadEventDelayCount(); | 1038 void decrementLoadEventDelayCount(); |
1044 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } | 1039 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } |
1045 | 1040 |
1046 #if ENABLE(TOUCH_EVENTS) | |
1047 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; | 1041 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; |
1048 #endif | |
1049 | 1042 |
1050 const DocumentTiming* timing() const { return &m_documentTiming; } | 1043 const DocumentTiming* timing() const { return &m_documentTiming; } |
1051 | 1044 |
1052 int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>); | 1045 int requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback>); |
1053 void cancelAnimationFrame(int id); | 1046 void cancelAnimationFrame(int id); |
1054 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 1047 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
1055 | 1048 |
1056 virtual EventTarget* errorEventTarget(); | 1049 virtual EventTarget* errorEventTarget(); |
1057 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>); | 1050 virtual void logExceptionToConsole(const String& errorMessage, const String&
sourceURL, int lineNumber, PassRefPtr<ScriptCallStack>); |
1058 | 1051 |
1059 void initDNSPrefetch(); | 1052 void initDNSPrefetch(); |
1060 | 1053 |
1061 unsigned wheelEventHandlerCount() const { return m_wheelEventHandlerCount; } | 1054 unsigned wheelEventHandlerCount() const { return m_wheelEventHandlerCount; } |
1062 void didAddWheelEventHandler(); | 1055 void didAddWheelEventHandler(); |
1063 void didRemoveWheelEventHandler(); | 1056 void didRemoveWheelEventHandler(); |
1064 | 1057 |
1065 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes
tureTimestamp; } | 1058 double lastHandledUserGestureTimestamp() const { return m_lastHandledUserGes
tureTimestamp; } |
1066 void resetLastHandledUserGestureTimestamp(); | 1059 void resetLastHandledUserGestureTimestamp(); |
1067 | 1060 |
1068 #if ENABLE(TOUCH_EVENTS) | |
1069 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_
touchEventTargets->size() : false; } | 1061 bool hasTouchEventHandlers() const { return (m_touchEventTargets.get()) ? m_
touchEventTargets->size() : false; } |
1070 #else | |
1071 bool hasTouchEventHandlers() const { return false; } | |
1072 #endif | |
1073 | 1062 |
1074 void didAddTouchEventHandler(Node*); | 1063 void didAddTouchEventHandler(Node*); |
1075 void didRemoveTouchEventHandler(Node*); | 1064 void didRemoveTouchEventHandler(Node*); |
1076 | 1065 |
1077 #if ENABLE(TOUCH_EVENTS) | |
1078 void didRemoveEventTargetNode(Node*); | 1066 void didRemoveEventTargetNode(Node*); |
1079 #endif | |
1080 | 1067 |
1081 #if ENABLE(TOUCH_EVENTS) | |
1082 const TouchEventTargetSet* touchEventTargets() const { return m_touchEventTa
rgets.get(); } | 1068 const TouchEventTargetSet* touchEventTargets() const { return m_touchEventTa
rgets.get(); } |
1083 #else | |
1084 const TouchEventTargetSet* touchEventTargets() const { return 0; } | |
1085 #endif | |
1086 | 1069 |
1087 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } | 1070 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } |
1088 | 1071 |
1089 void suspendScheduledTasks(ActiveDOMObject::ReasonForSuspension); | 1072 void suspendScheduledTasks(ActiveDOMObject::ReasonForSuspension); |
1090 void resumeScheduledTasks(); | 1073 void resumeScheduledTasks(); |
1091 | 1074 |
1092 IntSize viewportSize() const; | 1075 IntSize viewportSize() const; |
1093 | 1076 |
1094 #if ENABLE(CSS_DEVICE_ADAPTATION) | 1077 #if ENABLE(CSS_DEVICE_ADAPTATION) |
1095 IntSize initialViewportSize() const; | 1078 IntSize initialViewportSize() const; |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 | 1435 |
1453 bool m_directionSetOnDocumentElement; | 1436 bool m_directionSetOnDocumentElement; |
1454 bool m_writingModeSetOnDocumentElement; | 1437 bool m_writingModeSetOnDocumentElement; |
1455 | 1438 |
1456 DocumentTiming m_documentTiming; | 1439 DocumentTiming m_documentTiming; |
1457 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; | 1440 RefPtr<MediaQueryMatcher> m_mediaQueryMatcher; |
1458 bool m_writeRecursionIsTooDeep; | 1441 bool m_writeRecursionIsTooDeep; |
1459 unsigned m_writeRecursionDepth; | 1442 unsigned m_writeRecursionDepth; |
1460 | 1443 |
1461 unsigned m_wheelEventHandlerCount; | 1444 unsigned m_wheelEventHandlerCount; |
1462 #if ENABLE(TOUCH_EVENTS) | |
1463 OwnPtr<TouchEventTargetSet> m_touchEventTargets; | 1445 OwnPtr<TouchEventTargetSet> m_touchEventTargets; |
1464 #endif | |
1465 | 1446 |
1466 double m_lastHandledUserGestureTimestamp; | 1447 double m_lastHandledUserGestureTimestamp; |
1467 | 1448 |
1468 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; | 1449 RefPtr<ScriptedAnimationController> m_scriptedAnimationController; |
1469 | 1450 |
1470 Timer<Document> m_pendingTasksTimer; | 1451 Timer<Document> m_pendingTasksTimer; |
1471 Vector<OwnPtr<Task> > m_pendingTasks; | 1452 Vector<OwnPtr<Task> > m_pendingTasks; |
1472 | 1453 |
1473 OwnPtr<Prerenderer> m_prerenderer; | 1454 OwnPtr<Prerenderer> m_prerenderer; |
1474 | 1455 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 trackForDebugging(); | 1554 trackForDebugging(); |
1574 #endif | 1555 #endif |
1575 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 1556 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
1576 } | 1557 } |
1577 | 1558 |
1578 Node* eventTargetNodeForDocument(Document*); | 1559 Node* eventTargetNodeForDocument(Document*); |
1579 | 1560 |
1580 } // namespace WebCore | 1561 } // namespace WebCore |
1581 | 1562 |
1582 #endif // Document_h | 1563 #endif // Document_h |
OLD | NEW |