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 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 | 1076 |
1077 void setFullScreenRendererSize(const IntSize&); | 1077 void setFullScreenRendererSize(const IntSize&); |
1078 void setFullScreenRendererBackgroundColor(Color); | 1078 void setFullScreenRendererBackgroundColor(Color); |
1079 | 1079 |
1080 void fullScreenChangeDelayTimerFired(Timer<Document>*); | 1080 void fullScreenChangeDelayTimerFired(Timer<Document>*); |
1081 bool fullScreenIsAllowedForElement(Element*) const; | 1081 bool fullScreenIsAllowedForElement(Element*) const; |
1082 void fullScreenElementRemoved(); | 1082 void fullScreenElementRemoved(); |
1083 void removeFullScreenElementOfSubtree(Node*, bool amongChildrenOnly = false)
; | 1083 void removeFullScreenElementOfSubtree(Node*, bool amongChildrenOnly = false)
; |
1084 bool isAnimatingFullScreen() const; | 1084 bool isAnimatingFullScreen() const; |
1085 void setAnimatingFullScreen(bool); | 1085 void setAnimatingFullScreen(bool); |
1086 | |
1087 // W3C API | |
1088 bool webkitFullscreenEnabled() const; | |
1089 Element* webkitFullscreenElement() const { return !m_fullScreenElementStack.
isEmpty() ? m_fullScreenElementStack.first().get() : 0; } | |
1090 void webkitExitFullscreen(); | |
1091 #endif | 1086 #endif |
1092 | 1087 |
1093 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. | 1088 // Used to allow element that loads data without going through a FrameLoader
to delay the 'load' event. |
1094 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } | 1089 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } |
1095 void decrementLoadEventDelayCount(); | 1090 void decrementLoadEventDelayCount(); |
1096 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } | 1091 bool isDelayingLoadEvent() const { return m_loadEventDelayCount; } |
1097 | 1092 |
1098 #if ENABLE(TOUCH_EVENTS) | 1093 #if ENABLE(TOUCH_EVENTS) |
1099 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; | 1094 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; |
1100 PassRefPtr<TouchList> createTouchList(ExceptionCode&) const; | 1095 PassRefPtr<TouchList> createTouchList(ExceptionCode&) const; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 void pendingTasksTimerFired(Timer<Document>*); | 1188 void pendingTasksTimerFired(Timer<Document>*); |
1194 | 1189 |
1195 static void didReceiveTask(void*); | 1190 static void didReceiveTask(void*); |
1196 | 1191 |
1197 #if ENABLE(PAGE_VISIBILITY_API) | 1192 #if ENABLE(PAGE_VISIBILITY_API) |
1198 PageVisibilityState visibilityState() const; | 1193 PageVisibilityState visibilityState() const; |
1199 #endif | 1194 #endif |
1200 | 1195 |
1201 HTMLCollection* cachedCollection(CollectionType); | 1196 HTMLCollection* cachedCollection(CollectionType); |
1202 | 1197 |
1203 #if ENABLE(FULLSCREEN_API) | |
1204 void clearFullscreenElementStack(); | |
1205 void popFullscreenElementStack(); | |
1206 void pushFullscreenElementStack(Element*); | |
1207 void addDocumentToFullScreenChangeEventQueue(Document*); | |
1208 #endif | |
1209 | |
1210 int m_guardRefCount; | 1198 int m_guardRefCount; |
1211 | 1199 |
1212 OwnPtr<CSSStyleSelector> m_styleSelector; | 1200 OwnPtr<CSSStyleSelector> m_styleSelector; |
1213 bool m_didCalculateStyleSelector; | 1201 bool m_didCalculateStyleSelector; |
1214 bool m_hasDirtyStyleSelector; | 1202 bool m_hasDirtyStyleSelector; |
1215 Vector<OwnPtr<FontData> > m_customFonts; | 1203 Vector<OwnPtr<FontData> > m_customFonts; |
1216 | 1204 |
1217 mutable RefPtr<CSSValuePool> m_cssValuePool; | 1205 mutable RefPtr<CSSValuePool> m_cssValuePool; |
1218 | 1206 |
1219 Frame* m_frame; | 1207 Frame* m_frame; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 | 1419 |
1432 RefPtr<DocumentWeakReference> m_weakReference; | 1420 RefPtr<DocumentWeakReference> m_weakReference; |
1433 | 1421 |
1434 HashSet<MediaCanStartListener*> m_mediaCanStartListeners; | 1422 HashSet<MediaCanStartListener*> m_mediaCanStartListeners; |
1435 | 1423 |
1436 QualifiedName m_idAttributeName; | 1424 QualifiedName m_idAttributeName; |
1437 | 1425 |
1438 #if ENABLE(FULLSCREEN_API) | 1426 #if ENABLE(FULLSCREEN_API) |
1439 bool m_areKeysEnabledInFullScreen; | 1427 bool m_areKeysEnabledInFullScreen; |
1440 RefPtr<Element> m_fullScreenElement; | 1428 RefPtr<Element> m_fullScreenElement; |
1441 Deque<RefPtr<Element> > m_fullScreenElementStack; | |
1442 RenderFullScreen* m_fullScreenRenderer; | 1429 RenderFullScreen* m_fullScreenRenderer; |
1443 Timer<Document> m_fullScreenChangeDelayTimer; | 1430 Timer<Document> m_fullScreenChangeDelayTimer; |
1444 Deque<RefPtr<Node> > m_fullScreenChangeEventTargetQueue; | 1431 Deque<RefPtr<Element> > m_fullScreenChangeEventTargetQueue; |
1445 Deque<RefPtr<Node> > m_fullScreenErrorEventTargetQueue; | 1432 Deque<RefPtr<Element> > m_fullScreenErrorEventTargetQueue; |
1446 bool m_isAnimatingFullScreen; | 1433 bool m_isAnimatingFullScreen; |
1447 LayoutRect m_savedPlaceholderFrameRect; | 1434 LayoutRect m_savedPlaceholderFrameRect; |
1448 RefPtr<RenderStyle> m_savedPlaceholderRenderStyle; | 1435 RefPtr<RenderStyle> m_savedPlaceholderRenderStyle; |
1449 #endif | 1436 #endif |
1450 | 1437 |
1451 int m_loadEventDelayCount; | 1438 int m_loadEventDelayCount; |
1452 Timer<Document> m_loadEventDelayTimer; | 1439 Timer<Document> m_loadEventDelayTimer; |
1453 | 1440 |
1454 ViewportArguments m_viewportArguments; | 1441 ViewportArguments m_viewportArguments; |
1455 | 1442 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1492 document->guardRef(); | 1479 document->guardRef(); |
1493 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 1480 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
1494 trackForDebugging(); | 1481 trackForDebugging(); |
1495 #endif | 1482 #endif |
1496 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 1483 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
1497 } | 1484 } |
1498 | 1485 |
1499 } // namespace WebCore | 1486 } // namespace WebCore |
1500 | 1487 |
1501 #endif // Document_h | 1488 #endif // Document_h |
OLD | NEW |