Add installation warning message for networkingPrivate api
[chromium-blink-merge.git] / chrome_frame / html_window_impl.h
blob2bce98ce36bf83dc452e00bf9cc96268b102393f
1 // Copyright (c) 2011 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 #ifndef CHROME_FRAME_HTML_WINDOW_IMPL_H_
6 #define CHROME_FRAME_HTML_WINDOW_IMPL_H_
8 #include <atlbase.h>
9 #include <atlcom.h>
10 #include <mshtml.h>
12 #include "chrome_frame/chrome_tab.h"
13 #include "chrome_frame/resource.h"
14 #include "grit/chrome_frame_resources.h"
16 template <typename T>
17 class ATL_NO_VTABLE HTMLWindowImpl
18 : public IDispatchImpl<T> {
19 public:
20 HTMLWindowImpl() {}
22 // IHTMLFramesCollection2
23 STDMETHOD(item)(VARIANT* index, VARIANT* result) {
24 DLOG(INFO) << __FUNCTION__;
25 return E_NOTIMPL;
28 STDMETHOD(get_length)(long* length) {
29 DLOG(INFO) << __FUNCTION__;
30 if (!length)
31 return E_POINTER;
33 *length = 0;
34 return S_OK;
37 // IHTMLWindow2
38 STDMETHOD(get_frames)(IHTMLFramesCollection2** collection) {
39 DLOG(INFO) << __FUNCTION__;
40 return E_NOTIMPL;
43 STDMETHOD(put_defaultStatus)(BSTR status) {
44 DLOG(INFO) << __FUNCTION__;
45 return E_NOTIMPL;
48 STDMETHOD(get_defaultStatus)(BSTR* status) {
49 DLOG(INFO) << __FUNCTION__;
50 return E_NOTIMPL;
53 STDMETHOD(put_status)(BSTR status) {
54 DLOG(INFO) << __FUNCTION__;
55 return E_NOTIMPL;
58 STDMETHOD(get_status)(BSTR* status) {
59 DLOG(INFO) << __FUNCTION__;
60 return E_NOTIMPL;
63 STDMETHOD(setTimeout)(BSTR expression, long msec, VARIANT* language,
64 long* timer_id) {
65 DLOG(INFO) << __FUNCTION__;
66 return E_NOTIMPL;
69 STDMETHOD(clearTimeout)(long timer_id) {
70 DLOG(INFO) << __FUNCTION__;
71 return E_NOTIMPL;
74 STDMETHOD(alert)(BSTR message) {
75 DLOG(INFO) << __FUNCTION__;
76 return E_NOTIMPL;
79 STDMETHOD(confirm)(BSTR message, VARIANT_BOOL* confirmed) {
80 DLOG(INFO) << __FUNCTION__;
81 return E_NOTIMPL;
84 STDMETHOD(prompt)(BSTR message, BSTR defstr, VARIANT* textdata) {
85 DLOG(INFO) << __FUNCTION__;
86 return E_NOTIMPL;
89 STDMETHOD(get_Image)(IHTMLImageElementFactory** factory) {
90 DLOG(INFO) << __FUNCTION__;
91 return E_NOTIMPL;
94 STDMETHOD(get_location)(IHTMLLocation** location) {
95 DLOG(INFO) << __FUNCTION__;
96 return E_NOTIMPL;
99 STDMETHOD(get_history)(IOmHistory** history) {
100 DLOG(INFO) << __FUNCTION__;
101 return E_NOTIMPL;
104 STDMETHOD(close)() {
105 DLOG(INFO) << __FUNCTION__;
106 return E_NOTIMPL;
109 STDMETHOD(put_opener)(VARIANT opener) {
110 DLOG(INFO) << __FUNCTION__;
111 return E_NOTIMPL;
114 STDMETHOD(get_opener)(VARIANT* opener) {
115 DLOG(INFO) << __FUNCTION__;
116 return E_NOTIMPL;
119 STDMETHOD(get_navigator)(IOmNavigator** navigator) {
120 DLOG(INFO) << __FUNCTION__;
121 return E_NOTIMPL;
124 STDMETHOD(put_name)(BSTR name) {
125 DLOG(INFO) << __FUNCTION__;
126 return E_NOTIMPL;
129 STDMETHOD(get_name)(BSTR* name) {
130 DLOG(INFO) << __FUNCTION__;
131 return E_NOTIMPL;
134 STDMETHOD(get_parent)(IHTMLWindow2** parent) {
135 DLOG(INFO) << __FUNCTION__;
136 return E_NOTIMPL;
139 STDMETHOD(open)(BSTR url, BSTR name, BSTR features, VARIANT_BOOL replace,
140 IHTMLWindow2** window_result) {
141 DLOG(INFO) << __FUNCTION__;
142 return E_NOTIMPL;
145 STDMETHOD(get_self)(IHTMLWindow2** self) {
146 DLOG(INFO) << __FUNCTION__;
147 return E_NOTIMPL;
150 STDMETHOD(get_top)(IHTMLWindow2** top) {
151 DLOG(INFO) << __FUNCTION__;
152 return E_NOTIMPL;
155 STDMETHOD(get_window)(IHTMLWindow2** window) {
156 DLOG(INFO) << __FUNCTION__;
157 return E_NOTIMPL;
160 STDMETHOD(navigate)(BSTR url) {
161 DLOG(INFO) << __FUNCTION__;
162 return E_NOTIMPL;
165 STDMETHOD(put_onfocus)(VARIANT focus_handler) {
166 DLOG(INFO) << __FUNCTION__;
167 return E_NOTIMPL;
170 STDMETHOD(get_onfocus)(VARIANT* focus_handler) {
171 DLOG(INFO) << __FUNCTION__;
172 return E_NOTIMPL;
175 STDMETHOD(put_onblur)(VARIANT blur_handler) {
176 DLOG(INFO) << __FUNCTION__;
177 return E_NOTIMPL;
180 STDMETHOD(get_onblur)(VARIANT* blur_handler) {
181 DLOG(INFO) << __FUNCTION__;
182 return E_NOTIMPL;
185 STDMETHOD(put_onload)(VARIANT onload_handler) {
186 DLOG(INFO) << __FUNCTION__;
187 return E_NOTIMPL;
190 STDMETHOD(get_onload)(VARIANT* onload_handler) {
191 DLOG(INFO) << __FUNCTION__;
192 return E_NOTIMPL;
195 STDMETHOD(put_onbeforeunload)(VARIANT before_onload) {
196 DLOG(INFO) << __FUNCTION__;
197 return E_NOTIMPL;
200 STDMETHOD(get_onbeforeunload)(VARIANT* before_onload) {
201 DLOG(INFO) << __FUNCTION__;
202 return E_NOTIMPL;
205 STDMETHOD(put_onunload)(VARIANT unload_handler) {
206 DLOG(INFO) << __FUNCTION__;
207 return E_NOTIMPL;
210 STDMETHOD(get_onunload)(VARIANT* unload_handler) {
211 DLOG(INFO) << __FUNCTION__;
212 return E_NOTIMPL;
215 STDMETHOD(put_onhelp)(VARIANT help_handler) {
216 DLOG(INFO) << __FUNCTION__;
217 return E_NOTIMPL;
220 STDMETHOD(get_onhelp)(VARIANT* help_handler) {
221 DLOG(INFO) << __FUNCTION__;
222 return E_NOTIMPL;
225 STDMETHOD(put_onerror)(VARIANT error_handler) {
226 DLOG(INFO) << __FUNCTION__;
227 return E_NOTIMPL;
230 STDMETHOD(get_onerror)(VARIANT* error_handler) {
231 DLOG(INFO) << __FUNCTION__;
232 return E_NOTIMPL;
235 STDMETHOD(put_onresize)(VARIANT resize_handler) {
236 DLOG(INFO) << __FUNCTION__;
237 return E_NOTIMPL;
240 STDMETHOD(get_onresize)(VARIANT* resize_handler) {
241 DLOG(INFO) << __FUNCTION__;
242 return E_NOTIMPL;
245 STDMETHOD(put_onscroll)(VARIANT scroll_handler) {
246 DLOG(INFO) << __FUNCTION__;
247 return E_NOTIMPL;
250 STDMETHOD(get_onscroll)(VARIANT* scroll_handler) {
251 DLOG(INFO) << __FUNCTION__;
252 return E_NOTIMPL;
255 STDMETHOD(get_document)(IHTMLDocument2** document) {
256 DLOG(INFO) << __FUNCTION__;
257 return E_NOTIMPL;
260 STDMETHOD(get_event)(IHTMLEventObj** event_object) {
261 DLOG(INFO) << __FUNCTION__;
262 return E_NOTIMPL;
265 STDMETHOD(get__newEnum)(IUnknown** new_enum) {
266 DLOG(INFO) << __FUNCTION__;
267 return E_NOTIMPL;
270 STDMETHOD(showModalDialog)(BSTR dialog, VARIANT* in, VARIANT* options,
271 VARIANT* out) {
272 DLOG(INFO) << __FUNCTION__;
273 return E_NOTIMPL;
276 STDMETHOD(showHelp)(BSTR help_url, VARIANT help_arg, BSTR features) {
277 DLOG(INFO) << __FUNCTION__;
278 return E_NOTIMPL;
281 STDMETHOD(get_screen)(IHTMLScreen** screen) {
282 DLOG(INFO) << __FUNCTION__;
283 return E_NOTIMPL;
286 STDMETHOD(get_Option)(IHTMLOptionElementFactory** option_factory) {
287 DLOG(INFO) << __FUNCTION__;
288 return E_NOTIMPL;
291 STDMETHOD(focus)() {
292 DLOG(INFO) << __FUNCTION__;
293 return E_NOTIMPL;
296 STDMETHOD(get_closed)(VARIANT_BOOL* is_closed) {
297 DLOG(INFO) << __FUNCTION__;
298 return E_NOTIMPL;
301 STDMETHOD(blur)() {
302 DLOG(INFO) << __FUNCTION__;
303 return E_NOTIMPL;
306 STDMETHOD(scroll)(long x, long y) {
307 DLOG(INFO) << __FUNCTION__;
308 return E_NOTIMPL;
311 STDMETHOD(get_clientInformation)(IOmNavigator** navigator) {
312 DLOG(INFO) << __FUNCTION__;
313 return E_NOTIMPL;
316 STDMETHOD(setInterval)(BSTR expression, long msec, VARIANT* language,
317 long* timerID) {
318 DLOG(INFO) << __FUNCTION__;
319 return E_NOTIMPL;
322 STDMETHOD(clearInterval)(long timerID) {
323 DLOG(INFO) << __FUNCTION__;
324 return E_NOTIMPL;
327 STDMETHOD(put_offscreenBuffering)(VARIANT off_screen_buffering) {
328 DLOG(INFO) << __FUNCTION__;
329 return E_NOTIMPL;
332 STDMETHOD(get_offscreenBuffering)(VARIANT* off_screen_buffering) {
333 DLOG(INFO) << __FUNCTION__;
334 return E_NOTIMPL;
337 STDMETHOD(execScript)(BSTR code, BSTR language, VARIANT* ret) {
338 DLOG(INFO) << __FUNCTION__;
339 return E_NOTIMPL;
342 STDMETHOD(toString)(BSTR* String) {
343 DLOG(INFO) << __FUNCTION__;
344 return E_NOTIMPL;
347 STDMETHOD(scrollBy)(long x, long y) {
348 DLOG(INFO) << __FUNCTION__;
349 return E_NOTIMPL;
352 STDMETHOD(scrollTo)(long x, long y) {
353 DLOG(INFO) << __FUNCTION__;
354 return E_NOTIMPL;
357 STDMETHOD(moveTo)(long x, long y) {
358 DLOG(INFO) << __FUNCTION__;
359 return E_NOTIMPL;
362 STDMETHOD(moveBy)(long x, long y) {
363 DLOG(INFO) << __FUNCTION__;
364 return E_NOTIMPL;
367 STDMETHOD(resizeTo)(long x, long y) {
368 DLOG(INFO) << __FUNCTION__;
369 return E_NOTIMPL;
372 STDMETHOD(resizeBy)(long x, long y) {
373 DLOG(INFO) << __FUNCTION__;
374 return E_NOTIMPL;
377 STDMETHOD(get_external)(IDispatch** external) {
378 DLOG(INFO) << __FUNCTION__;
379 return E_NOTIMPL;
384 #endif // CHROME_FRAME_HTML_WINDOW_IMPL_H_