| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DOMWindow_h | 5 #ifndef DOMWindow_h |
| 6 #define DOMWindow_h | 6 #define DOMWindow_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Transferables.h" | 8 #include "bindings/core/v8/Transferables.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const LocalDOMWindow* callingWindow) const; | 91 const LocalDOMWindow* callingWindow) const; |
| 92 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const KURL&); | 92 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const KURL&); |
| 93 | 93 |
| 94 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., | 94 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., |
| 95 // when its document is no longer the document that is displayed in its | 95 // when its document is no longer the document that is displayed in its |
| 96 // frame), we would like to zero out m_frame to avoid being confused | 96 // frame), we would like to zero out m_frame to avoid being confused |
| 97 // by the document that is currently active in m_frame. | 97 // by the document that is currently active in m_frame. |
| 98 // See https://bugs.webkit.org/show_bug.cgi?id=62054 | 98 // See https://bugs.webkit.org/show_bug.cgi?id=62054 |
| 99 bool isCurrentlyDisplayedInFrame() const; | 99 bool isCurrentlyDisplayedInFrame() const; |
| 100 | 100 |
| 101 void resetLocation(); | |
| 102 | |
| 103 bool isSecureContext() const; | 101 bool isSecureContext() const; |
| 104 | 102 |
| 105 InputDeviceCapabilitiesConstants* getInputDeviceCapabilities(); | 103 InputDeviceCapabilitiesConstants* getInputDeviceCapabilities(); |
| 106 | 104 |
| 107 protected: | 105 protected: |
| 108 explicit DOMWindow(Frame&); | 106 explicit DOMWindow(Frame&); |
| 109 | 107 |
| 110 virtual void schedulePostMessage(MessageEvent*, | 108 virtual void schedulePostMessage(MessageEvent*, |
| 111 PassRefPtr<SecurityOrigin> target, | 109 PassRefPtr<SecurityOrigin> target, |
| 112 Document* source) = 0; | 110 Document* source) = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 123 // only after the layout widget's deferred window close | 121 // only after the layout widget's deferred window close |
| 124 // operation has been performed, exposes (confusing) | 122 // operation has been performed, exposes (confusing) |
| 125 // implementation details to scripts. | 123 // implementation details to scripts. |
| 126 bool m_windowIsClosing; | 124 bool m_windowIsClosing; |
| 127 | 125 |
| 128 }; | 126 }; |
| 129 | 127 |
| 130 } // namespace blink | 128 } // namespace blink |
| 131 | 129 |
| 132 #endif // DOMWindow_h | 130 #endif // DOMWindow_h |
| OLD | NEW |