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

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: nits Created 4 years, 9 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 PassRefPtrWillBeRawPtr<Attr> createAttribute(const AtomicString& name, Excep tionState&); 292 PassRefPtrWillBeRawPtr<Attr> createAttribute(const AtomicString& name, Excep tionState&);
292 PassRefPtrWillBeRawPtr<Attr> createAttributeNS(const AtomicString& namespace URI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamesp aceChecks = false); 293 PassRefPtrWillBeRawPtr<Attr> createAttributeNS(const AtomicString& namespace URI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamesp aceChecks = false);
293 PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, bool deep, Excep tionState&); 294 PassRefPtrWillBeRawPtr<Node> importNode(Node* importedNode, bool deep, Excep tionState&);
294 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac eURI, const AtomicString& qualifiedName, ExceptionState&); 295 PassRefPtrWillBeRawPtr<Element> createElementNS(const AtomicString& namespac eURI, const AtomicString& qualifiedName, ExceptionState&);
295 PassRefPtrWillBeRawPtr<Element> createElement(const QualifiedName&, bool cre atedByParser); 296 PassRefPtrWillBeRawPtr<Element> createElement(const QualifiedName&, bool cre atedByParser);
296 297
297 Element* elementFromPoint(int x, int y) const; 298 Element* elementFromPoint(int x, int y) const;
298 WillBeHeapVector<RawPtrWillBeMember<Element>> elementsFromPoint(int x, int y ) const; 299 WillBeHeapVector<RawPtrWillBeMember<Element>> elementsFromPoint(int x, int y ) const;
299 PassRefPtrWillBeRawPtr<Range> caretRangeFromPoint(int x, int y); 300 PassRefPtrWillBeRawPtr<Range> caretRangeFromPoint(int x, int y);
300 Element* scrollingElement(); 301 Element* scrollingElement();
302 VisualViewport* visualViewport();
303 void dispatchVisualViewportChangedEvent();
301 304
302 String readyState() const; 305 String readyState() const;
303 306
304 AtomicString characterSet() const { return Document::encodingName(); } 307 AtomicString characterSet() const { return Document::encodingName(); }
305 308
306 AtomicString encodingName() const; 309 AtomicString encodingName() const;
307 310
308 void setContent(const String&); 311 void setContent(const String&);
309 312
310 String suggestedMIMEType() const; 313 String suggestedMIMEType() const;
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1456 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1454 1457
1455 } // namespace blink 1458 } // namespace blink
1456 1459
1457 #ifndef NDEBUG 1460 #ifndef NDEBUG
1458 // Outside the WebCore namespace for ease of invocation from gdb. 1461 // Outside the WebCore namespace for ease of invocation from gdb.
1459 CORE_EXPORT void showLiveDocumentInstances(); 1462 CORE_EXPORT void showLiveDocumentInstances();
1460 #endif 1463 #endif
1461 1464
1462 #endif // Document_h 1465 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698