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

Unified Diff: Source/core/dom/Document.h

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 3bb563310a5060d65c17d754a97c7798218e964d..1d0e03783277fe3d2434fbff0dc351bcfdd6e01e 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -80,7 +80,7 @@ class ContextFeatures;
class CustomElementRegistrationContext;
class DOMImplementation;
class DOMSelection;
-class DOMWindow;
+class LocalDOMWindow;
class Database;
class DatabaseThread;
class DocumentFragment;
@@ -687,9 +687,9 @@ public:
void didSplitTextNode(Text& oldNode);
void clearDOMWindow() { m_domWindow = nullptr; }
- DOMWindow* domWindow() const { return m_domWindow; }
+ LocalDOMWindow* domWindow() const { return m_domWindow; }
- // Helper functions for forwarding DOMWindow event related tasks to the DOMWindow if it exists.
+ // Helper functions for forwarding LocalDOMWindow event related tasks to the LocalDOMWindow if it exists.
void setWindowAttributeEventListener(const AtomicString& eventType, PassRefPtr<EventListener>);
EventListener* getWindowAttributeEventListener(const AtomicString& eventType);
@@ -876,7 +876,7 @@ public:
bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
void parseDNSPrefetchControlHeader(const String&);
- // FIXME(crbug.com/305497): This should be removed once DOMWindow is an ExecutionContext.
+ // FIXME(crbug.com/305497): This should be removed once LocalDOMWindow is an ExecutionContext.
virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE; // Executes the task on context's thread asynchronously.
virtual void tasksWereSuspended() OVERRIDE FINAL;
@@ -956,7 +956,7 @@ public:
bool isDelayingLoadEvent();
void loadPluginsSoon();
- PassRefPtrWillBeRawPtr<Touch> createTouch(DOMWindow*, EventTarget*, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const;
+ PassRefPtrWillBeRawPtr<Touch> createTouch(LocalDOMWindow*, EventTarget*, int identifier, double pageX, double pageY, double screenX, double screenY, double radiusX, double radiusY, float rotationAngle, float force) const;
PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWillBeMember<Touch> >&) const;
const DocumentTiming& timing() const { return m_documentTiming; }
@@ -975,7 +975,7 @@ public:
// Called when a single touch event handler has been added or removed for a node.
// The Node should always be in this Document, except for child Documents which report
// themselves to their parent exactly once if they have any touch handlers.
- // Handlers added/removed from the DOMWindow are reported as the Document.
+ // Handlers added/removed from the LocalDOMWindow are reported as the Document.
void didAddTouchEventHandler(Node*);
void didRemoveTouchEventHandler(Node* handler) { didRemoveTouchEventHandler(handler, false); }
@@ -1047,7 +1047,7 @@ public:
void addConsoleMessageWithRequestIdentifier(MessageSource, MessageLevel, const String& message, unsigned long requestIdentifier);
- virtual DOMWindow* executingWindow() OVERRIDE FINAL;
+ virtual LocalDOMWindow* executingWindow() OVERRIDE FINAL;
LocalFrame* executingFrame();
DocumentLifecycleNotifier& lifecycleNotifier();
@@ -1165,8 +1165,8 @@ private:
PassRefPtrWillBeRawPtr<HTMLCollection> ensureCachedCollection(CollectionType);
- // Note that dispatching a window load event may cause the DOMWindow to be detached from
- // the LocalFrame, so callers should take a reference to the DOMWindow (which owns us) to
+ // Note that dispatching a window load event may cause the LocalDOMWindow to be detached from
+ // the LocalFrame, so callers should take a reference to the LocalDOMWindow (which owns us) to
// prevent the Document from getting blown away from underneath them.
void dispatchWindowLoadEvent();
@@ -1205,7 +1205,7 @@ private:
PendingSheetLayout m_pendingSheetLayout;
LocalFrame* m_frame;
- RawPtrWillBeMember<DOMWindow> m_domWindow;
+ RawPtrWillBeMember<LocalDOMWindow> m_domWindow;
// FIXME: oilpan: when we get rid of the transition types change the
// HTMLImportsController to not be a DocumentSupplement since it is
// redundant with oilpan.

Powered by Google App Engine
This is Rietveld 408576698