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 RemoteDOMWindow_h | 5 #ifndef RemoteDOMWindow_h |
6 #define RemoteDOMWindow_h | 6 #define RemoteDOMWindow_h |
7 | 7 |
8 #include "core/frame/DOMWindow.h" | 8 #include "core/frame/DOMWindow.h" |
9 #include "core/frame/RemoteFrame.h" | 9 #include "core/frame/RemoteFrame.h" |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void resizeBy(int x, int y) const override; | 69 void resizeBy(int x, int y) const override; |
70 void resizeTo(int width, int height) const override; | 70 void resizeTo(int width, int height) const override; |
71 MediaQueryList* matchMedia(const String&) override; | 71 MediaQueryList* matchMedia(const String&) override; |
72 CSSStyleDeclaration* getComputedStyle(Element*, const String& pseudoElt) con
st override; | 72 CSSStyleDeclaration* getComputedStyle(Element*, const String& pseudoElt) con
st override; |
73 CSSRuleList* getMatchedCSSRules(Element*, const String& pseudoElt) const ove
rride; | 73 CSSRuleList* getMatchedCSSRules(Element*, const String& pseudoElt) const ove
rride; |
74 int requestAnimationFrame(FrameRequestCallback*) override; | 74 int requestAnimationFrame(FrameRequestCallback*) override; |
75 int webkitRequestAnimationFrame(FrameRequestCallback*) override; | 75 int webkitRequestAnimationFrame(FrameRequestCallback*) override; |
76 void cancelAnimationFrame(int id) override; | 76 void cancelAnimationFrame(int id) override; |
77 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove
rride; | 77 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove
rride; |
78 void cancelIdleCallback(int id) override; | 78 void cancelIdleCallback(int id) override; |
79 CustomElementsRegistry* customElements(ScriptState*) const override; | 79 CustomElementRegistry* customElements(ScriptState*) const override; |
80 | 80 |
81 void frameDetached(); | 81 void frameDetached(); |
82 | 82 |
83 protected: | 83 protected: |
84 // Protected DOMWindow overrides: | 84 // Protected DOMWindow overrides: |
85 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D
ocument* source) override; | 85 void schedulePostMessage(MessageEvent*, PassRefPtr<SecurityOrigin> target, D
ocument* source) override; |
86 | 86 |
87 private: | 87 private: |
88 explicit RemoteDOMWindow(RemoteFrame&); | 88 explicit RemoteDOMWindow(RemoteFrame&); |
89 | 89 |
90 // Intentionally private to prevent redundant checks when the type is | 90 // Intentionally private to prevent redundant checks when the type is |
91 // already RemoteDOMWindow. | 91 // already RemoteDOMWindow. |
92 bool isLocalDOMWindow() const override { return false; } | 92 bool isLocalDOMWindow() const override { return false; } |
93 bool isRemoteDOMWindow() const override { return true; } | 93 bool isRemoteDOMWindow() const override { return true; } |
94 | 94 |
95 Member<RemoteFrame> m_frame; | 95 Member<RemoteFrame> m_frame; |
96 }; | 96 }; |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
99 | 99 |
100 #endif // DOMWindow_h | 100 #endif // DOMWindow_h |
OLD | NEW |