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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1814013002: Visual viewport API initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/dom/MutationObserver.h" 44 #include "core/dom/MutationObserver.h"
45 #include "core/dom/TextLinkColors.h" 45 #include "core/dom/TextLinkColors.h"
46 #include "core/dom/TreeScope.h" 46 #include "core/dom/TreeScope.h"
47 #include "core/dom/UserActionElementSet.h" 47 #include "core/dom/UserActionElementSet.h"
48 #include "core/dom/ViewportDescription.h" 48 #include "core/dom/ViewportDescription.h"
49 #include "core/dom/custom/CustomElement.h" 49 #include "core/dom/custom/CustomElement.h"
50 #include "core/fetch/ClientHintsPreferences.h" 50 #include "core/fetch/ClientHintsPreferences.h"
51 #include "core/frame/DOMTimerCoordinator.h" 51 #include "core/frame/DOMTimerCoordinator.h"
52 #include "core/frame/LocalDOMWindow.h" 52 #include "core/frame/LocalDOMWindow.h"
53 #include "core/frame/OriginsUsingFeatures.h" 53 #include "core/frame/OriginsUsingFeatures.h"
54 #include "core/frame/VisualViewport.h"
54 #include "core/html/CollectionType.h" 55 #include "core/html/CollectionType.h"
55 #include "core/html/parser/ParserSynchronizationPolicy.h" 56 #include "core/html/parser/ParserSynchronizationPolicy.h"
56 #include "core/page/PageVisibilityState.h" 57 #include "core/page/PageVisibilityState.h"
57 #include "platform/Length.h" 58 #include "platform/Length.h"
58 #include "platform/Timer.h" 59 #include "platform/Timer.h"
59 #include "platform/heap/Handle.h" 60 #include "platform/heap/Handle.h"
60 #include "platform/weborigin/KURL.h" 61 #include "platform/weborigin/KURL.h"
61 #include "platform/weborigin/ReferrerPolicy.h" 62 #include "platform/weborigin/ReferrerPolicy.h"
62 #include "public/platform/WebFocusType.h" 63 #include "public/platform/WebFocusType.h"
63 #include "wtf/HashSet.h" 64 #include "wtf/HashSet.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 RawPtr<Attr> createAttribute(const AtomicString& name, ExceptionState&); 292 RawPtr<Attr> createAttribute(const AtomicString& name, ExceptionState&);
292 RawPtr<Attr> createAttributeNS(const AtomicString& namespaceURI, const Atomi cString& qualifiedName, ExceptionState&, bool shouldIgnoreNamespaceChecks = fals e); 293 RawPtr<Attr> createAttributeNS(const AtomicString& namespaceURI, const Atomi cString& qualifiedName, ExceptionState&, bool shouldIgnoreNamespaceChecks = fals e);
293 RawPtr<Node> importNode(Node* importedNode, bool deep, ExceptionState&); 294 RawPtr<Node> importNode(Node* importedNode, bool deep, ExceptionState&);
294 RawPtr<Element> createElementNS(const AtomicString& namespaceURI, const Atom icString& qualifiedName, ExceptionState&); 295 RawPtr<Element> createElementNS(const AtomicString& namespaceURI, const Atom icString& qualifiedName, ExceptionState&);
295 RawPtr<Element> createElement(const QualifiedName&, bool createdByParser); 296 RawPtr<Element> createElement(const QualifiedName&, bool createdByParser);
296 297
297 Element* elementFromPoint(int x, int y) const; 298 Element* elementFromPoint(int x, int y) const;
298 HeapVector<Member<Element>> elementsFromPoint(int x, int y) const; 299 HeapVector<Member<Element>> elementsFromPoint(int x, int y) const;
299 RawPtr<Range> caretRangeFromPoint(int x, int y); 300 RawPtr<Range> caretRangeFromPoint(int x, int y);
300 Element* scrollingElement(); 301 Element* scrollingElement();
302 VisualViewport* visualViewport();
301 303
302 String readyState() const; 304 String readyState() const;
303 305
304 AtomicString characterSet() const { return Document::encodingName(); } 306 AtomicString characterSet() const { return Document::encodingName(); }
305 307
306 AtomicString encodingName() const; 308 AtomicString encodingName() const;
307 309
308 void setContent(const String&); 310 void setContent(const String&);
309 311
310 String suggestedMIMEType() const; 312 String suggestedMIMEType() const;
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 895
894 bool containsValidityStyleRules() const { return m_containsValidityStyleRule s; } 896 bool containsValidityStyleRules() const { return m_containsValidityStyleRule s; }
895 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; } 897 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; }
896 898
897 void enqueueResizeEvent(); 899 void enqueueResizeEvent();
898 void enqueueScrollEventForNode(Node*); 900 void enqueueScrollEventForNode(Node*);
899 void enqueueAnimationFrameEvent(RawPtr<Event>); 901 void enqueueAnimationFrameEvent(RawPtr<Event>);
900 // Only one event for a target/event type combination will be dispatched per frame. 902 // Only one event for a target/event type combination will be dispatched per frame.
901 void enqueueUniqueAnimationFrameEvent(RawPtr<Event>); 903 void enqueueUniqueAnimationFrameEvent(RawPtr<Event>);
902 void enqueueMediaQueryChangeListeners(HeapVector<Member<MediaQueryListListen er>>&); 904 void enqueueMediaQueryChangeListeners(HeapVector<Member<MediaQueryListListen er>>&);
905 void enqueueVisualViewportChangedEvent();
903 906
904 void dispatchEventsForPrinting(); 907 void dispatchEventsForPrinting();
905 908
906 bool hasFullscreenSupplement() const { return m_hasFullscreenSupplement; } 909 bool hasFullscreenSupplement() const { return m_hasFullscreenSupplement; }
907 void setHasFullscreenSupplement() { m_hasFullscreenSupplement = true; } 910 void setHasFullscreenSupplement() { m_hasFullscreenSupplement = true; }
908 911
909 void exitPointerLock(); 912 void exitPointerLock();
910 Element* pointerLockElement() const; 913 Element* pointerLockElement() const;
911 914
912 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event. 915 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event.
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1444 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1447 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1445 1448
1446 } // namespace blink 1449 } // namespace blink
1447 1450
1448 #ifndef NDEBUG 1451 #ifndef NDEBUG
1449 // Outside the WebCore namespace for ease of invocation from gdb. 1452 // Outside the WebCore namespace for ease of invocation from gdb.
1450 CORE_EXPORT void showLiveDocumentInstances(); 1453 CORE_EXPORT void showLiveDocumentInstances();
1451 #endif 1454 #endif
1452 1455
1453 #endif // Document_h 1456 #endif // Document_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698