Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / frame / RemoteDOMWindow.cpp
blob29f8953940faa645e982cf07dc9a7daa591f14d4
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.
5 #include "config.h"
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"
13 namespace blink {
15 ExecutionContext* RemoteDOMWindow::executionContext() const
17 return nullptr;
20 DEFINE_TRACE(RemoteDOMWindow)
22 visitor->trace(m_frame);
23 DOMWindow::trace(visitor);
26 RemoteFrame* RemoteDOMWindow::frame() const
28 return m_frame.get();
31 Screen* RemoteDOMWindow::screen() const
33 ASSERT_NOT_REACHED();
34 return nullptr;
37 History* RemoteDOMWindow::history() const
39 ASSERT_NOT_REACHED();
40 return nullptr;
43 BarProp* RemoteDOMWindow::locationbar() const
45 ASSERT_NOT_REACHED();
46 return nullptr;
49 BarProp* RemoteDOMWindow::menubar() const
51 ASSERT_NOT_REACHED();
52 return nullptr;
55 BarProp* RemoteDOMWindow::personalbar() const
57 ASSERT_NOT_REACHED();
58 return nullptr;
61 BarProp* RemoteDOMWindow::scrollbars() const
63 ASSERT_NOT_REACHED();
64 return nullptr;
67 BarProp* RemoteDOMWindow::statusbar() const
69 ASSERT_NOT_REACHED();
70 return nullptr;
73 BarProp* RemoteDOMWindow::toolbar() const
75 ASSERT_NOT_REACHED();
76 return nullptr;
79 Navigator* RemoteDOMWindow::navigator() const
81 ASSERT_NOT_REACHED();
82 return nullptr;
85 bool RemoteDOMWindow::offscreenBuffering() const
87 ASSERT_NOT_REACHED();
88 return false;
91 int RemoteDOMWindow::outerHeight() const
93 ASSERT_NOT_REACHED();
94 return 0;
97 int RemoteDOMWindow::outerWidth() const
99 ASSERT_NOT_REACHED();
100 return 0;
103 int RemoteDOMWindow::innerHeight() const
105 ASSERT_NOT_REACHED();
106 return 0;
109 int RemoteDOMWindow::innerWidth() const
111 ASSERT_NOT_REACHED();
112 return 0;
115 int RemoteDOMWindow::screenX() const
117 ASSERT_NOT_REACHED();
118 return 0;
121 int RemoteDOMWindow::screenY() const
123 ASSERT_NOT_REACHED();
124 return 0;
127 double RemoteDOMWindow::scrollX() const
129 ASSERT_NOT_REACHED();
130 return 0.0;
133 double RemoteDOMWindow::scrollY() const
135 ASSERT_NOT_REACHED();
136 return 0.0;
139 const AtomicString& RemoteDOMWindow::name() const
141 // FIXME: Implement.
142 return emptyAtom;
145 void RemoteDOMWindow::setName(const AtomicString&)
149 String RemoteDOMWindow::status() const
151 ASSERT_NOT_REACHED();
152 return String();
155 void RemoteDOMWindow::setStatus(const String&)
157 ASSERT_NOT_REACHED();
160 String RemoteDOMWindow::defaultStatus() const
162 ASSERT_NOT_REACHED();
163 return String();
166 void RemoteDOMWindow::setDefaultStatus(const String&)
168 ASSERT_NOT_REACHED();
171 Document* RemoteDOMWindow::document() const
173 ASSERT_NOT_REACHED();
174 return nullptr;
177 StyleMedia* RemoteDOMWindow::styleMedia() const
179 ASSERT_NOT_REACHED();
180 return nullptr;
183 double RemoteDOMWindow::devicePixelRatio() const
185 ASSERT_NOT_REACHED();
186 return 0.0;
189 ApplicationCache* RemoteDOMWindow::applicationCache() const
191 ASSERT_NOT_REACHED();
192 return nullptr;
195 int RemoteDOMWindow::orientation() const
197 ASSERT_NOT_REACHED();
198 return 0;
201 Console* RemoteDOMWindow::console() const
203 ASSERT_NOT_REACHED();
204 return 0;
207 DOMSelection* RemoteDOMWindow::getSelection()
209 ASSERT_NOT_REACHED();
210 return 0;
213 void RemoteDOMWindow::focus(ExecutionContext* override)
215 // FIXME: Implement.
218 void RemoteDOMWindow::blur()
220 // FIXME: Implement.
223 void RemoteDOMWindow::print()
225 ASSERT_NOT_REACHED();
228 void RemoteDOMWindow::stop()
230 // FIXME: Implement.
233 void RemoteDOMWindow::alert(const String& message)
235 ASSERT_NOT_REACHED();
238 bool RemoteDOMWindow::confirm(const String& message)
240 ASSERT_NOT_REACHED();
241 return false;
244 String RemoteDOMWindow::prompt(const String& message, const String& defaultValue)
246 ASSERT_NOT_REACHED();
247 return String();
250 bool RemoteDOMWindow::find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const
252 ASSERT_NOT_REACHED();
253 return false;
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();
299 return nullptr;
302 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> RemoteDOMWindow::getComputedStyle(Element*, const String& pseudoElt) const
304 ASSERT_NOT_REACHED();
305 return nullptr;
308 PassRefPtrWillBeRawPtr<CSSRuleList> RemoteDOMWindow::getMatchedCSSRules(Element*, const String& pseudoElt) const
310 ASSERT_NOT_REACHED();
311 return nullptr;
314 int RemoteDOMWindow::requestAnimationFrame(FrameRequestCallback*)
316 ASSERT_NOT_REACHED();
317 return 0;
320 int RemoteDOMWindow::webkitRequestAnimationFrame(FrameRequestCallback*)
322 ASSERT_NOT_REACHED();
323 return 0;
326 void RemoteDOMWindow::cancelAnimationFrame(int id)
328 ASSERT_NOT_REACHED();
331 int RemoteDOMWindow::requestIdleCallback(IdleRequestCallback*, double timeoutMillis)
333 ASSERT_NOT_REACHED();
334 return 0;
337 void RemoteDOMWindow::cancelIdleCallback(int id)
339 ASSERT_NOT_REACHED();
342 RemoteDOMWindow::RemoteDOMWindow(RemoteFrame& frame)
343 : m_frame(&frame)
347 } // namespace blink