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

Side by Side Diff: sky/engine/core/dom/Document.h

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/dom/DOMURL.cpp ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10 matching lines...) Expand all
21 * You should have received a copy of the GNU Library General Public License 21 * You should have received a copy of the GNU Library General Public License
22 * along with this library; see the file COPYING.LIB. If not, write to 22 * along with this library; see the file COPYING.LIB. If not, write to
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA. 24 * Boston, MA 02110-1301, USA.
25 * 25 *
26 */ 26 */
27 27
28 #ifndef SKY_ENGINE_CORE_DOM_DOCUMENT_H_ 28 #ifndef SKY_ENGINE_CORE_DOM_DOCUMENT_H_
29 #define SKY_ENGINE_CORE_DOM_DOCUMENT_H_ 29 #define SKY_ENGINE_CORE_DOM_DOCUMENT_H_
30 30
31 #include "sky/engine/bindings/core/v8/ExceptionStatePlaceholder.h" 31 #include "sky/engine/tonic/dart_value.h"
32 #include "sky/engine/bindings/core/v8/ScriptValue.h" 32 #include "sky/engine/bindings2/exception_state_placeholder.h"
33 #include "sky/engine/core/animation/AnimationClock.h" 33 #include "sky/engine/core/animation/AnimationClock.h"
34 #include "sky/engine/core/animation/PendingAnimations.h" 34 #include "sky/engine/core/animation/PendingAnimations.h"
35 #include "sky/engine/core/dom/ContainerNode.h" 35 #include "sky/engine/core/dom/ContainerNode.h"
36 #include "sky/engine/core/dom/DocumentInit.h" 36 #include "sky/engine/core/dom/DocumentInit.h"
37 #include "sky/engine/core/dom/DocumentLifecycle.h" 37 #include "sky/engine/core/dom/DocumentLifecycle.h"
38 #include "sky/engine/core/dom/DocumentSupplementable.h" 38 #include "sky/engine/core/dom/DocumentSupplementable.h"
39 #include "sky/engine/core/dom/ExecutionContext.h" 39 #include "sky/engine/core/dom/ExecutionContext.h"
40 #include "sky/engine/core/dom/MutationObserver.h" 40 #include "sky/engine/core/dom/MutationObserver.h"
41 #include "sky/engine/core/dom/TextLinkColors.h" 41 #include "sky/engine/core/dom/TextLinkColors.h"
42 #include "sky/engine/core/dom/TreeScope.h" 42 #include "sky/engine/core/dom/TreeScope.h"
43 #include "sky/engine/core/dom/UserActionElementSet.h" 43 #include "sky/engine/core/dom/UserActionElementSet.h"
44 #include "sky/engine/core/dom/custom/CustomElement.h" 44 #include "sky/engine/core/dom/custom/CustomElement.h"
45 #include "sky/engine/core/fetch/ResourceClient.h" 45 #include "sky/engine/core/fetch/ResourceClient.h"
46 #include "sky/engine/core/loader/DocumentLoadTiming.h" 46 #include "sky/engine/core/loader/DocumentLoadTiming.h"
47 #include "sky/engine/core/page/FocusType.h" 47 #include "sky/engine/core/page/FocusType.h"
48 #include "sky/engine/core/page/PageVisibilityState.h" 48 #include "sky/engine/core/page/PageVisibilityState.h"
49 #include "sky/engine/platform/Length.h" 49 #include "sky/engine/platform/Length.h"
50 #include "sky/engine/platform/Timer.h" 50 #include "sky/engine/platform/Timer.h"
51 #include "sky/engine/platform/heap/Handle.h" 51 #include "sky/engine/platform/heap/Handle.h"
52 #include "sky/engine/platform/weborigin/KURL.h" 52 #include "sky/engine/platform/weborigin/KURL.h"
53 #include "sky/engine/platform/weborigin/ReferrerPolicy.h" 53 #include "sky/engine/platform/weborigin/ReferrerPolicy.h"
54 #include "sky/engine/wtf/HashSet.h" 54 #include "sky/engine/wtf/HashSet.h"
55 #include "sky/engine/wtf/OwnPtr.h" 55 #include "sky/engine/wtf/OwnPtr.h"
56 #include "sky/engine/wtf/PassOwnPtr.h" 56 #include "sky/engine/wtf/PassOwnPtr.h"
57 #include "sky/engine/wtf/PassRefPtr.h" 57 #include "sky/engine/wtf/PassRefPtr.h"
58 #include "sky/engine/wtf/WeakPtr.h" 58 #include "sky/engine/wtf/WeakPtr.h"
59 #include "sky/engine/wtf/text/TextEncoding.h" 59 #include "sky/engine/wtf/text/TextEncoding.h"
60 #include "sky/engine/wtf/text/TextPosition.h"
60 61
61 namespace blink { 62 namespace blink {
62 63
63 class AbstractModule; 64 class AbstractModule;
64 class AnimationTimeline; 65 class AnimationTimeline;
65 class Attr; 66 class Attr;
66 class CSSStyleDeclaration; 67 class CSSStyleDeclaration;
67 class CSSStyleSheet; 68 class CSSStyleSheet;
68 class CanvasRenderingContext2D; 69 class CanvasRenderingContext2D;
69 class Comment; 70 class Comment;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 class Page; 103 class Page;
103 class QualifiedName; 104 class QualifiedName;
104 class Range; 105 class Range;
105 class RenderView; 106 class RenderView;
106 class RequestAnimationFrameCallback; 107 class RequestAnimationFrameCallback;
107 class ResourceFetcher; 108 class ResourceFetcher;
108 class ScriptRunner; 109 class ScriptRunner;
109 class ScriptedAnimationController; 110 class ScriptedAnimationController;
110 class SegmentedString; 111 class SegmentedString;
111 class SelectorQueryCache; 112 class SelectorQueryCache;
112 class SerializedScriptValue;
113 class Settings; 113 class Settings;
114 class StyleEngine; 114 class StyleEngine;
115 class StyleResolver; 115 class StyleResolver;
116 class Text; 116 class Text;
117 class WebGLRenderingContext; 117 class WebGLRenderingContext;
118 118
119 struct AnnotatedRegionValue; 119 struct AnnotatedRegionValue;
120 120
121 typedef int ExceptionCode; 121 typedef int ExceptionCode;
122 122
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 446
447 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>); 447 int requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback>);
448 void cancelAnimationFrame(int id); 448 void cancelAnimationFrame(int id);
449 void serviceScriptedAnimations(double monotonicAnimationStartTime); 449 void serviceScriptedAnimations(double monotonicAnimationStartTime);
450 450
451 virtual EventTarget* errorEventTarget() override final; 451 virtual EventTarget* errorEventTarget() override final;
452 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCal lStack>) override final; 452 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCal lStack>) override final;
453 453
454 IntSize initialViewportSize() const; 454 IntSize initialViewportSize() const;
455 455
456 ScriptValue registerElement(ScriptState*, const AtomicString& name, Exceptio nState&); 456 PassRefPtr<DartValue> registerElement(DartState*, const AtomicString& name, ExceptionState&);
457 ScriptValue registerElement(ScriptState*, const AtomicString& name, const Di ctionary& options, ExceptionState&);
458 CustomElementRegistrationContext& registrationContext() { return *m_registra tionContext; } 457 CustomElementRegistrationContext& registrationContext() { return *m_registra tionContext; }
459 CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue(); 458 CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue();
460 459
461 void setImportsController(HTMLImportsController*); 460 void setImportsController(HTMLImportsController*);
462 HTMLImportsController* importsController() const { return m_importsControlle r; } 461 HTMLImportsController* importsController() const { return m_importsControlle r; }
463 HTMLImportsController& ensureImportsController(); 462 HTMLImportsController& ensureImportsController();
464 HTMLImportLoader* importLoader() const; 463 HTMLImportLoader* importLoader() const;
465 HTMLImport* import() const; 464 HTMLImport* import() const;
466 465
467 bool haveImportsLoaded() const; 466 bool haveImportsLoaded() const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 void maybeHandleHttpRefresh(const String&, HttpRefreshType); 503 void maybeHandleHttpRefresh(const String&, HttpRefreshType);
505 504
506 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier(); 505 PassOwnPtr<LifecycleNotifier<Document> > createLifecycleNotifier();
507 506
508 void setHasViewportUnits() { m_hasViewportUnits = true; } 507 void setHasViewportUnits() { m_hasViewportUnits = true; }
509 bool hasViewportUnits() const { return m_hasViewportUnits; } 508 bool hasViewportUnits() const { return m_hasViewportUnits; }
510 void notifyResizeForViewportUnits(); 509 void notifyResizeForViewportUnits();
511 510
512 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; } 511 void didRecalculateStyleForElement() { ++m_styleRecalcElementCounter; }
513 512
514 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
515
516 protected: 513 protected:
517 explicit Document(const DocumentInit&); 514 explicit Document(const DocumentInit&);
518 515
519 #if !ENABLE(OILPAN) 516 #if !ENABLE(OILPAN)
520 virtual void dispose() override; 517 virtual void dispose() override;
521 #endif 518 #endif
522 519
523 PassRefPtr<Document> cloneDocumentWithoutChildren(); 520 PassRefPtr<Document> cloneDocumentWithoutChildren();
524 521
525 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr <ContainerNode> newContainerNode, ExceptionState&); 522 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr <ContainerNode> newContainerNode, ExceptionState&);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 Node* eventTargetNodeForDocument(Document*); 731 Node* eventTargetNodeForDocument(Document*);
735 732
736 } // namespace blink 733 } // namespace blink
737 734
738 #ifndef NDEBUG 735 #ifndef NDEBUG
739 // Outside the WebCore namespace for ease of invocation from gdb. 736 // Outside the WebCore namespace for ease of invocation from gdb.
740 void showLiveDocumentInstances(); 737 void showLiveDocumentInstances();
741 #endif 738 #endif
742 739
743 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_ 740 #endif // SKY_ENGINE_CORE_DOM_DOCUMENT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/DOMURL.cpp ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698