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_
12 #include "chrome_frame/chrome_tab.h"
13 #include "chrome_frame/resource.h"
14 #include "grit/chrome_frame_resources.h"
17 class ATL_NO_VTABLE HTMLWindowImpl
18 : public IDispatchImpl
<T
> {
22 // IHTMLFramesCollection2
23 STDMETHOD(item
)(VARIANT
* index
, VARIANT
* result
) {
24 DLOG(INFO
) << __FUNCTION__
;
28 STDMETHOD(get_length
)(long* length
) {
29 DLOG(INFO
) << __FUNCTION__
;
38 STDMETHOD(get_frames
)(IHTMLFramesCollection2
** collection
) {
39 DLOG(INFO
) << __FUNCTION__
;
43 STDMETHOD(put_defaultStatus
)(BSTR status
) {
44 DLOG(INFO
) << __FUNCTION__
;
48 STDMETHOD(get_defaultStatus
)(BSTR
* status
) {
49 DLOG(INFO
) << __FUNCTION__
;
53 STDMETHOD(put_status
)(BSTR status
) {
54 DLOG(INFO
) << __FUNCTION__
;
58 STDMETHOD(get_status
)(BSTR
* status
) {
59 DLOG(INFO
) << __FUNCTION__
;
63 STDMETHOD(setTimeout
)(BSTR expression
, long msec
, VARIANT
* language
,
65 DLOG(INFO
) << __FUNCTION__
;
69 STDMETHOD(clearTimeout
)(long timer_id
) {
70 DLOG(INFO
) << __FUNCTION__
;
74 STDMETHOD(alert
)(BSTR message
) {
75 DLOG(INFO
) << __FUNCTION__
;
79 STDMETHOD(confirm
)(BSTR message
, VARIANT_BOOL
* confirmed
) {
80 DLOG(INFO
) << __FUNCTION__
;
84 STDMETHOD(prompt
)(BSTR message
, BSTR defstr
, VARIANT
* textdata
) {
85 DLOG(INFO
) << __FUNCTION__
;
89 STDMETHOD(get_Image
)(IHTMLImageElementFactory
** factory
) {
90 DLOG(INFO
) << __FUNCTION__
;
94 STDMETHOD(get_location
)(IHTMLLocation
** location
) {
95 DLOG(INFO
) << __FUNCTION__
;
99 STDMETHOD(get_history
)(IOmHistory
** history
) {
100 DLOG(INFO
) << __FUNCTION__
;
105 DLOG(INFO
) << __FUNCTION__
;
109 STDMETHOD(put_opener
)(VARIANT opener
) {
110 DLOG(INFO
) << __FUNCTION__
;
114 STDMETHOD(get_opener
)(VARIANT
* opener
) {
115 DLOG(INFO
) << __FUNCTION__
;
119 STDMETHOD(get_navigator
)(IOmNavigator
** navigator
) {
120 DLOG(INFO
) << __FUNCTION__
;
124 STDMETHOD(put_name
)(BSTR name
) {
125 DLOG(INFO
) << __FUNCTION__
;
129 STDMETHOD(get_name
)(BSTR
* name
) {
130 DLOG(INFO
) << __FUNCTION__
;
134 STDMETHOD(get_parent
)(IHTMLWindow2
** parent
) {
135 DLOG(INFO
) << __FUNCTION__
;
139 STDMETHOD(open
)(BSTR url
, BSTR name
, BSTR features
, VARIANT_BOOL replace
,
140 IHTMLWindow2
** window_result
) {
141 DLOG(INFO
) << __FUNCTION__
;
145 STDMETHOD(get_self
)(IHTMLWindow2
** self
) {
146 DLOG(INFO
) << __FUNCTION__
;
150 STDMETHOD(get_top
)(IHTMLWindow2
** top
) {
151 DLOG(INFO
) << __FUNCTION__
;
155 STDMETHOD(get_window
)(IHTMLWindow2
** window
) {
156 DLOG(INFO
) << __FUNCTION__
;
160 STDMETHOD(navigate
)(BSTR url
) {
161 DLOG(INFO
) << __FUNCTION__
;
165 STDMETHOD(put_onfocus
)(VARIANT focus_handler
) {
166 DLOG(INFO
) << __FUNCTION__
;
170 STDMETHOD(get_onfocus
)(VARIANT
* focus_handler
) {
171 DLOG(INFO
) << __FUNCTION__
;
175 STDMETHOD(put_onblur
)(VARIANT blur_handler
) {
176 DLOG(INFO
) << __FUNCTION__
;
180 STDMETHOD(get_onblur
)(VARIANT
* blur_handler
) {
181 DLOG(INFO
) << __FUNCTION__
;
185 STDMETHOD(put_onload
)(VARIANT onload_handler
) {
186 DLOG(INFO
) << __FUNCTION__
;
190 STDMETHOD(get_onload
)(VARIANT
* onload_handler
) {
191 DLOG(INFO
) << __FUNCTION__
;
195 STDMETHOD(put_onbeforeunload
)(VARIANT before_onload
) {
196 DLOG(INFO
) << __FUNCTION__
;
200 STDMETHOD(get_onbeforeunload
)(VARIANT
* before_onload
) {
201 DLOG(INFO
) << __FUNCTION__
;
205 STDMETHOD(put_onunload
)(VARIANT unload_handler
) {
206 DLOG(INFO
) << __FUNCTION__
;
210 STDMETHOD(get_onunload
)(VARIANT
* unload_handler
) {
211 DLOG(INFO
) << __FUNCTION__
;
215 STDMETHOD(put_onhelp
)(VARIANT help_handler
) {
216 DLOG(INFO
) << __FUNCTION__
;
220 STDMETHOD(get_onhelp
)(VARIANT
* help_handler
) {
221 DLOG(INFO
) << __FUNCTION__
;
225 STDMETHOD(put_onerror
)(VARIANT error_handler
) {
226 DLOG(INFO
) << __FUNCTION__
;
230 STDMETHOD(get_onerror
)(VARIANT
* error_handler
) {
231 DLOG(INFO
) << __FUNCTION__
;
235 STDMETHOD(put_onresize
)(VARIANT resize_handler
) {
236 DLOG(INFO
) << __FUNCTION__
;
240 STDMETHOD(get_onresize
)(VARIANT
* resize_handler
) {
241 DLOG(INFO
) << __FUNCTION__
;
245 STDMETHOD(put_onscroll
)(VARIANT scroll_handler
) {
246 DLOG(INFO
) << __FUNCTION__
;
250 STDMETHOD(get_onscroll
)(VARIANT
* scroll_handler
) {
251 DLOG(INFO
) << __FUNCTION__
;
255 STDMETHOD(get_document
)(IHTMLDocument2
** document
) {
256 DLOG(INFO
) << __FUNCTION__
;
260 STDMETHOD(get_event
)(IHTMLEventObj
** event_object
) {
261 DLOG(INFO
) << __FUNCTION__
;
265 STDMETHOD(get__newEnum
)(IUnknown
** new_enum
) {
266 DLOG(INFO
) << __FUNCTION__
;
270 STDMETHOD(showModalDialog
)(BSTR dialog
, VARIANT
* in
, VARIANT
* options
,
272 DLOG(INFO
) << __FUNCTION__
;
276 STDMETHOD(showHelp
)(BSTR help_url
, VARIANT help_arg
, BSTR features
) {
277 DLOG(INFO
) << __FUNCTION__
;
281 STDMETHOD(get_screen
)(IHTMLScreen
** screen
) {
282 DLOG(INFO
) << __FUNCTION__
;
286 STDMETHOD(get_Option
)(IHTMLOptionElementFactory
** option_factory
) {
287 DLOG(INFO
) << __FUNCTION__
;
292 DLOG(INFO
) << __FUNCTION__
;
296 STDMETHOD(get_closed
)(VARIANT_BOOL
* is_closed
) {
297 DLOG(INFO
) << __FUNCTION__
;
302 DLOG(INFO
) << __FUNCTION__
;
306 STDMETHOD(scroll
)(long x
, long y
) {
307 DLOG(INFO
) << __FUNCTION__
;
311 STDMETHOD(get_clientInformation
)(IOmNavigator
** navigator
) {
312 DLOG(INFO
) << __FUNCTION__
;
316 STDMETHOD(setInterval
)(BSTR expression
, long msec
, VARIANT
* language
,
318 DLOG(INFO
) << __FUNCTION__
;
322 STDMETHOD(clearInterval
)(long timerID
) {
323 DLOG(INFO
) << __FUNCTION__
;
327 STDMETHOD(put_offscreenBuffering
)(VARIANT off_screen_buffering
) {
328 DLOG(INFO
) << __FUNCTION__
;
332 STDMETHOD(get_offscreenBuffering
)(VARIANT
* off_screen_buffering
) {
333 DLOG(INFO
) << __FUNCTION__
;
337 STDMETHOD(execScript
)(BSTR code
, BSTR language
, VARIANT
* ret
) {
338 DLOG(INFO
) << __FUNCTION__
;
342 STDMETHOD(toString
)(BSTR
* String
) {
343 DLOG(INFO
) << __FUNCTION__
;
347 STDMETHOD(scrollBy
)(long x
, long y
) {
348 DLOG(INFO
) << __FUNCTION__
;
352 STDMETHOD(scrollTo
)(long x
, long y
) {
353 DLOG(INFO
) << __FUNCTION__
;
357 STDMETHOD(moveTo
)(long x
, long y
) {
358 DLOG(INFO
) << __FUNCTION__
;
362 STDMETHOD(moveBy
)(long x
, long y
) {
363 DLOG(INFO
) << __FUNCTION__
;
367 STDMETHOD(resizeTo
)(long x
, long y
) {
368 DLOG(INFO
) << __FUNCTION__
;
372 STDMETHOD(resizeBy
)(long x
, long y
) {
373 DLOG(INFO
) << __FUNCTION__
;
377 STDMETHOD(get_external
)(IDispatch
** external
) {
378 DLOG(INFO
) << __FUNCTION__
;
384 #endif // CHROME_FRAME_HTML_WINDOW_IMPL_H_