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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 2790313004: Move ScriptState::domWindow() (Closed)
Patch Set: Rebase again Created 3 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) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void didRemoveAllEventListeners(LocalDOMWindow*) = 0; 93 virtual void didRemoveAllEventListeners(LocalDOMWindow*) = 0;
94 }; 94 };
95 95
96 static Document* createDocument(const String& mimeType, 96 static Document* createDocument(const String& mimeType,
97 const DocumentInit&, 97 const DocumentInit&,
98 bool forceXHTML); 98 bool forceXHTML);
99 static LocalDOMWindow* create(LocalFrame& frame) { 99 static LocalDOMWindow* create(LocalFrame& frame) {
100 return new LocalDOMWindow(frame); 100 return new LocalDOMWindow(frame);
101 } 101 }
102 102
103 static LocalDOMWindow* from(const ScriptState*);
104
103 ~LocalDOMWindow() override; 105 ~LocalDOMWindow() override;
104 106
105 LocalFrame* frame() const { return toLocalFrame(DOMWindow::frame()); } 107 LocalFrame* frame() const { return toLocalFrame(DOMWindow::frame()); }
106 108
107 DECLARE_VIRTUAL_TRACE(); 109 DECLARE_VIRTUAL_TRACE();
108 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 110 DECLARE_VIRTUAL_TRACE_WRAPPERS();
109 111
110 Document* installNewDocument(const String& mimeType, 112 Document* installNewDocument(const String& mimeType,
111 const DocumentInit&, 113 const DocumentInit&,
112 bool forceXHTML = false); 114 bool forceXHTML = false);
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 return m_status; 381 return m_status;
380 } 382 }
381 383
382 inline String LocalDOMWindow::defaultStatus() const { 384 inline String LocalDOMWindow::defaultStatus() const {
383 return m_defaultStatus; 385 return m_defaultStatus;
384 } 386 }
385 387
386 } // namespace blink 388 } // namespace blink
387 389
388 #endif // LocalDOMWindow_h 390 #endif // LocalDOMWindow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/Event.cpp ('k') | third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698