OLD | NEW |
---|---|
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 DECLARE_VIRTUAL_TRACE(); | 79 DECLARE_VIRTUAL_TRACE(); |
80 | 80 |
81 Document* installNewDocument(const String& mimeType, const DocumentInit&, bo ol forceXHTML = false); | 81 Document* installNewDocument(const String& mimeType, const DocumentInit&, bo ol forceXHTML = false); |
82 | 82 |
83 // EventTarget overrides: | 83 // EventTarget overrides: |
84 ExecutionContext* getExecutionContext() const override; | 84 ExecutionContext* getExecutionContext() const override; |
85 const LocalDOMWindow* toLocalDOMWindow() const override; | 85 const LocalDOMWindow* toLocalDOMWindow() const override; |
86 LocalDOMWindow* toLocalDOMWindow() override; | 86 LocalDOMWindow* toLocalDOMWindow() override; |
87 | 87 |
88 // DOMWindow overrides: | 88 // DOMWindow overrides: |
89 bool isLocalDOMWindow() const override { return true; } | |
90 LocalFrame* frame() const override; | 89 LocalFrame* frame() const override; |
91 Screen* screen() const override; | 90 Screen* screen() const override; |
92 History* history() const override; | 91 History* history() const override; |
93 BarProp* locationbar() const override; | 92 BarProp* locationbar() const override; |
94 BarProp* menubar() const override; | 93 BarProp* menubar() const override; |
95 BarProp* personalbar() const override; | 94 BarProp* personalbar() const override; |
96 BarProp* scrollbars() const override; | 95 BarProp* scrollbars() const override; |
97 BarProp* statusbar() const override; | 96 BarProp* statusbar() const override; |
98 BarProp* toolbar() const override; | 97 BarProp* toolbar() const override; |
99 Navigator* navigator() const override; | 98 Navigator* navigator() const override; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 // EventTarget overrides. | 203 // EventTarget overrides. |
205 void addedEventListener(const AtomicString& eventType, RegisteredEventListen er&) override; | 204 void addedEventListener(const AtomicString& eventType, RegisteredEventListen er&) override; |
206 void removedEventListener(const AtomicString& eventType, const RegisteredEve ntListener&) override; | 205 void removedEventListener(const AtomicString& eventType, const RegisteredEve ntListener&) override; |
207 | 206 |
208 // Protected DOMWindow overrides. | 207 // Protected DOMWindow overrides. |
209 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D ocument* source) override; | 208 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D ocument* source) override; |
210 | 209 |
211 private: | 210 private: |
212 class WindowFrameObserver; | 211 class WindowFrameObserver; |
213 | 212 |
213 // Intentionally private to prevent redundant checks when the type is | |
214 // already LocalDOMWindow. | |
215 bool isLocalDOMWindow() const override { return true; } | |
216 using DOMWindow::isRemoteDOMWindow; | |
esprehn
2016/05/26 20:36:45
can we just write return false here?
dcheng
2016/05/26 20:45:32
Done.
| |
217 | |
214 explicit LocalDOMWindow(LocalFrame&); | 218 explicit LocalDOMWindow(LocalFrame&); |
215 void dispose(); | 219 void dispose(); |
216 | 220 |
217 void dispatchLoadEvent(); | 221 void dispatchLoadEvent(); |
218 void clearDocument(); | 222 void clearDocument(); |
219 void willDestroyDocumentInFrame(); | 223 void willDestroyDocumentInFrame(); |
220 | 224 |
221 void willDetachFrameHost(); | 225 void willDetachFrameHost(); |
222 void frameDestroyed(); | 226 void frameDestroyed(); |
223 | 227 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
259 } | 263 } |
260 | 264 |
261 inline String LocalDOMWindow::defaultStatus() const | 265 inline String LocalDOMWindow::defaultStatus() const |
262 { | 266 { |
263 return m_defaultStatus; | 267 return m_defaultStatus; |
264 } | 268 } |
265 | 269 |
266 } // namespace blink | 270 } // namespace blink |
267 | 271 |
268 #endif // LocalDOMWindow_h | 272 #endif // LocalDOMWindow_h |
OLD | NEW |