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

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

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on top of DOMWindow moves and UseCounter overload for Frame Created 6 years, 1 month 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 | Annotate | Revision Log
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 27 matching lines...) Expand all
38 #include "core/dom/DocumentLifecycle.h" 38 #include "core/dom/DocumentLifecycle.h"
39 #include "core/dom/DocumentSupplementable.h" 39 #include "core/dom/DocumentSupplementable.h"
40 #include "core/dom/DocumentTiming.h" 40 #include "core/dom/DocumentTiming.h"
41 #include "core/dom/ExecutionContext.h" 41 #include "core/dom/ExecutionContext.h"
42 #include "core/dom/MutationObserver.h" 42 #include "core/dom/MutationObserver.h"
43 #include "core/dom/TextLinkColors.h" 43 #include "core/dom/TextLinkColors.h"
44 #include "core/dom/TreeScope.h" 44 #include "core/dom/TreeScope.h"
45 #include "core/dom/UserActionElementSet.h" 45 #include "core/dom/UserActionElementSet.h"
46 #include "core/dom/ViewportDescription.h" 46 #include "core/dom/ViewportDescription.h"
47 #include "core/dom/custom/CustomElement.h" 47 #include "core/dom/custom/CustomElement.h"
48 #include "core/frame/LocalDOMWindow.h"
48 #include "core/html/CollectionType.h" 49 #include "core/html/CollectionType.h"
49 #include "core/page/FocusType.h" 50 #include "core/page/FocusType.h"
50 #include "core/page/PageVisibilityState.h" 51 #include "core/page/PageVisibilityState.h"
51 #include "platform/Length.h" 52 #include "platform/Length.h"
52 #include "platform/Timer.h" 53 #include "platform/Timer.h"
53 #include "platform/heap/Handle.h" 54 #include "platform/heap/Handle.h"
54 #include "platform/weborigin/KURL.h" 55 #include "platform/weborigin/KURL.h"
55 #include "platform/weborigin/ReferrerPolicy.h" 56 #include "platform/weborigin/ReferrerPolicy.h"
56 #include "wtf/HashSet.h" 57 #include "wtf/HashSet.h"
57 #include "wtf/OwnPtr.h" 58 #include "wtf/OwnPtr.h"
(...skipping 11 matching lines...) Expand all
69 class CSSStyleSheet; 70 class CSSStyleSheet;
70 class CanvasRenderingContext2D; 71 class CanvasRenderingContext2D;
71 class CanvasRenderingContext2DOrWebGLRenderingContext; 72 class CanvasRenderingContext2DOrWebGLRenderingContext;
72 class Chrome; 73 class Chrome;
73 class Comment; 74 class Comment;
74 class ConsoleMessage; 75 class ConsoleMessage;
75 class ContextFeatures; 76 class ContextFeatures;
76 class CustomElementMicrotaskRunQueue; 77 class CustomElementMicrotaskRunQueue;
77 class CustomElementRegistrationContext; 78 class CustomElementRegistrationContext;
78 class DOMImplementation; 79 class DOMImplementation;
80 class DOMWindow;
79 class DocumentFragment; 81 class DocumentFragment;
80 class DocumentLifecycleNotifier; 82 class DocumentLifecycleNotifier;
81 class DocumentLoader; 83 class DocumentLoader;
82 class DocumentMarkerController; 84 class DocumentMarkerController;
83 class DocumentNameCollection; 85 class DocumentNameCollection;
84 class DocumentParser; 86 class DocumentParser;
85 class DocumentState; 87 class DocumentState;
86 class DocumentType; 88 class DocumentType;
87 class Element; 89 class Element;
88 class ElementDataCache; 90 class ElementDataCache;
(...skipping 18 matching lines...) Expand all
107 class HTMLFrameOwnerElement; 109 class HTMLFrameOwnerElement;
108 class HTMLHeadElement; 110 class HTMLHeadElement;
109 class HTMLImportLoader; 111 class HTMLImportLoader;
110 class HTMLImportsController; 112 class HTMLImportsController;
111 class HTMLLinkElement; 113 class HTMLLinkElement;
112 class HTMLScriptElement; 114 class HTMLScriptElement;
113 class HitTestRequest; 115 class HitTestRequest;
114 class LayoutPoint; 116 class LayoutPoint;
115 class LiveNodeListBase; 117 class LiveNodeListBase;
116 class Locale; 118 class Locale;
117 class LocalDOMWindow;
118 class LocalFrame; 119 class LocalFrame;
119 class Location; 120 class Location;
120 class MainThreadTaskRunner; 121 class MainThreadTaskRunner;
121 class MediaQueryListListener; 122 class MediaQueryListListener;
122 class MediaQueryMatcher; 123 class MediaQueryMatcher;
123 class NodeFilter; 124 class NodeFilter;
124 class NodeIterator; 125 class NodeIterator;
125 class Page; 126 class Page;
126 class PlatformMouseEvent; 127 class PlatformMouseEvent;
127 class ProcessingInstruction; 128 class ProcessingInstruction;
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 void exitPointerLock(); 933 void exitPointerLock();
933 Element* pointerLockElement() const; 934 Element* pointerLockElement() const;
934 935
935 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event. 936 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event.
936 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } 937 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; }
937 void decrementLoadEventDelayCount(); 938 void decrementLoadEventDelayCount();
938 void checkLoadEventSoon(); 939 void checkLoadEventSoon();
939 bool isDelayingLoadEvent(); 940 bool isDelayingLoadEvent();
940 void loadPluginsSoon(); 941 void loadPluginsSoon();
941 942
942 PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const; 943 PassRefPtrWillBeRawPtr<Touch> createTouch(DOMWindow*, EventTarget*, int iden tifier, double pageX, double pageY, double screenX, double screenY, double radiu sX, double radiusY, float rotationAngle, float force) const;
943 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch>>&) const; 944 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch>>&) const;
944 945
945 const DocumentTiming& timing() const { return m_documentTiming; } 946 const DocumentTiming& timing() const { return m_documentTiming; }
946 947
947 int requestAnimationFrame(RequestAnimationFrameCallback*); 948 int requestAnimationFrame(RequestAnimationFrameCallback*);
948 void cancelAnimationFrame(int id); 949 void cancelAnimationFrame(int id);
949 void serviceScriptedAnimations(double monotonicAnimationStartTime); 950 void serviceScriptedAnimations(double monotonicAnimationStartTime);
950 951
951 virtual EventTarget* errorEventTarget() override final; 952 virtual EventTarget* errorEventTarget() override final;
952 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP tr<ScriptCallStack>) override final; 953 virtual void logExceptionToConsole(const String& errorMessage, int scriptId, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawP tr<ScriptCallStack>) override final;
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1423 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1423 1424
1424 } // namespace blink 1425 } // namespace blink
1425 1426
1426 #ifndef NDEBUG 1427 #ifndef NDEBUG
1427 // Outside the WebCore namespace for ease of invocation from gdb. 1428 // Outside the WebCore namespace for ease of invocation from gdb.
1428 void showLiveDocumentInstances(); 1429 void showLiveDocumentInstances();
1429 #endif 1430 #endif
1430 1431
1431 #endif // Document_h 1432 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698