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
3 // found in the LICENSE file.
6 #include "core/frame/RemoteDOMWindow.h"
8 #include "bindings/core/v8/SerializedScriptValue.h"
9 #include "core/css/CSSRuleList.h"
10 #include "core/css/CSSStyleDeclaration.h"
11 #include "core/css/MediaQueryList.h"
15 ExecutionContext
* RemoteDOMWindow::executionContext() const
20 DEFINE_TRACE(RemoteDOMWindow
)
22 visitor
->trace(m_frame
);
23 DOMWindow::trace(visitor
);
26 RemoteFrame
* RemoteDOMWindow::frame() const
31 Screen
* RemoteDOMWindow::screen() const
37 History
* RemoteDOMWindow::history() const
43 BarProp
* RemoteDOMWindow::locationbar() const
49 BarProp
* RemoteDOMWindow::menubar() const
55 BarProp
* RemoteDOMWindow::personalbar() const
61 BarProp
* RemoteDOMWindow::scrollbars() const
67 BarProp
* RemoteDOMWindow::statusbar() const
73 BarProp
* RemoteDOMWindow::toolbar() const
79 Navigator
* RemoteDOMWindow::navigator() const
85 bool RemoteDOMWindow::offscreenBuffering() const
91 int RemoteDOMWindow::outerHeight() const
97 int RemoteDOMWindow::outerWidth() const
103 int RemoteDOMWindow::innerHeight() const
105 ASSERT_NOT_REACHED();
109 int RemoteDOMWindow::innerWidth() const
111 ASSERT_NOT_REACHED();
115 int RemoteDOMWindow::screenX() const
117 ASSERT_NOT_REACHED();
121 int RemoteDOMWindow::screenY() const
123 ASSERT_NOT_REACHED();
127 double RemoteDOMWindow::scrollX() const
129 ASSERT_NOT_REACHED();
133 double RemoteDOMWindow::scrollY() const
135 ASSERT_NOT_REACHED();
139 const AtomicString
& RemoteDOMWindow::name() const
145 void RemoteDOMWindow::setName(const AtomicString
&)
149 String
RemoteDOMWindow::status() const
151 ASSERT_NOT_REACHED();
155 void RemoteDOMWindow::setStatus(const String
&)
157 ASSERT_NOT_REACHED();
160 String
RemoteDOMWindow::defaultStatus() const
162 ASSERT_NOT_REACHED();
166 void RemoteDOMWindow::setDefaultStatus(const String
&)
168 ASSERT_NOT_REACHED();
171 Document
* RemoteDOMWindow::document() const
173 ASSERT_NOT_REACHED();
177 StyleMedia
* RemoteDOMWindow::styleMedia() const
179 ASSERT_NOT_REACHED();
183 double RemoteDOMWindow::devicePixelRatio() const
185 ASSERT_NOT_REACHED();
189 ApplicationCache
* RemoteDOMWindow::applicationCache() const
191 ASSERT_NOT_REACHED();
195 int RemoteDOMWindow::orientation() const
197 ASSERT_NOT_REACHED();
201 Console
* RemoteDOMWindow::console() const
203 ASSERT_NOT_REACHED();
207 DOMSelection
* RemoteDOMWindow::getSelection()
209 ASSERT_NOT_REACHED();
213 void RemoteDOMWindow::focus(ExecutionContext
* override
)
218 void RemoteDOMWindow::blur()
223 void RemoteDOMWindow::print()
225 ASSERT_NOT_REACHED();
228 void RemoteDOMWindow::stop()
233 void RemoteDOMWindow::alert(const String
& message
)
235 ASSERT_NOT_REACHED();
238 bool RemoteDOMWindow::confirm(const String
& message
)
240 ASSERT_NOT_REACHED();
244 String
RemoteDOMWindow::prompt(const String
& message
, const String
& defaultValue
)
246 ASSERT_NOT_REACHED();
250 bool RemoteDOMWindow::find(const String
&, bool caseSensitive
, bool backwards
, bool wrap
, bool wholeWord
, bool searchInFrames
, bool showDialog
) const
252 ASSERT_NOT_REACHED();
256 void RemoteDOMWindow::scrollBy(double x
, double y
, ScrollBehavior
) const
258 ASSERT_NOT_REACHED();
261 void RemoteDOMWindow::scrollBy(const ScrollToOptions
&) const
263 ASSERT_NOT_REACHED();
266 void RemoteDOMWindow::scrollTo(double x
, double y
) const
268 ASSERT_NOT_REACHED();
271 void RemoteDOMWindow::scrollTo(const ScrollToOptions
&) const
273 ASSERT_NOT_REACHED();
276 void RemoteDOMWindow::moveBy(int x
, int y
) const
278 ASSERT_NOT_REACHED();
281 void RemoteDOMWindow::moveTo(int x
, int y
) const
283 ASSERT_NOT_REACHED();
286 void RemoteDOMWindow::resizeBy(int x
, int y
) const
288 ASSERT_NOT_REACHED();
291 void RemoteDOMWindow::resizeTo(int width
, int height
) const
293 ASSERT_NOT_REACHED();
296 PassRefPtrWillBeRawPtr
<MediaQueryList
> RemoteDOMWindow::matchMedia(const String
&)
298 ASSERT_NOT_REACHED();
302 PassRefPtrWillBeRawPtr
<CSSStyleDeclaration
> RemoteDOMWindow::getComputedStyle(Element
*, const String
& pseudoElt
) const
304 ASSERT_NOT_REACHED();
308 PassRefPtrWillBeRawPtr
<CSSRuleList
> RemoteDOMWindow::getMatchedCSSRules(Element
*, const String
& pseudoElt
) const
310 ASSERT_NOT_REACHED();
314 int RemoteDOMWindow::requestAnimationFrame(FrameRequestCallback
*)
316 ASSERT_NOT_REACHED();
320 int RemoteDOMWindow::webkitRequestAnimationFrame(FrameRequestCallback
*)
322 ASSERT_NOT_REACHED();
326 void RemoteDOMWindow::cancelAnimationFrame(int id
)
328 ASSERT_NOT_REACHED();
331 int RemoteDOMWindow::requestIdleCallback(IdleRequestCallback
*, double timeoutMillis
)
333 ASSERT_NOT_REACHED();
337 void RemoteDOMWindow::cancelIdleCallback(int id
)
339 ASSERT_NOT_REACHED();
342 RemoteDOMWindow::RemoteDOMWindow(RemoteFrame
& frame
)