Lines Matching refs:window
68 HTMLInnerWindow *window; member
213 void connect_scripts(HTMLInnerWindow *window) in connect_scripts() argument
217 LIST_FOR_EACH_ENTRY(iter, &window->script_hosts, ScriptHost, entry) { in connect_scripts()
286 if(This->window) in ActiveScriptSite_Release()
321 if(!This->window) in ActiveScriptSite_GetItemInfo()
325 *ppiunkItem = (IUnknown*)&This->window->base.IHTMLWindow2_iface; in ActiveScriptSite_GetItemInfo()
465 … if(!This->window || !This->window->base.outer_window || !This->window->base.outer_window->doc_obj) in ActiveScriptSiteWindow_GetWindow()
468 *phwnd = This->window->base.outer_window->doc_obj->hwnd; in ActiveScriptSiteWindow_GetWindow()
625 if(!This->window || !This->window->doc) in ASServiceProvider_QueryService()
628 …return IInternetHostSecurityManager_QueryInterface(&This->window->doc->IInternetHostSecurityManage… in ASServiceProvider_QueryService()
635 if(!This->window || !This->window->doc) in ASServiceProvider_QueryService()
638 … return IHTMLDocument2_QueryInterface(&This->window->doc->basedoc.IHTMLDocument2_iface, riid, ppv); in ASServiceProvider_QueryService()
652 static ScriptHost *create_script_host(HTMLInnerWindow *window, const GUID *guid) in create_script_host() argument
668 ret->window = window; in create_script_host()
672 list_add_tail(&window->script_hosts, &ret->entry); in create_script_host()
712 if(!script_elem->element.node.doc->window->parser_callback_cnt) { in set_script_elem_readystate()
727 script_elem->element.node.doc->window->task_magic); in set_script_elem_readystate()
884 static HRESULT bind_script_to_text(HTMLInnerWindow *window, IUri *uri, HTMLScriptElement *script_el… in bind_script_to_text() argument
913 hres = start_binding(window, &bsc->bsc, NULL); in bind_script_to_text()
946 cp = get_document_charset(window->doc); in bind_script_to_text()
986 hres = bind_script_to_text(script_host->window, uri, script_elem, &text); in parse_extern_script()
1055 static GUID get_default_script_guid(HTMLInnerWindow *window) in get_default_script_guid() argument
1058 return list_empty(&window->script_hosts) in get_default_script_guid()
1060 : LIST_ENTRY(list_head(&window->script_hosts), ScriptHost, entry)->guid; in get_default_script_guid()
1098 static BOOL get_script_guid(HTMLInnerWindow *window, nsIDOMHTMLScriptElement *nsscript, GUID *guid) in get_script_guid() argument
1133 *guid = get_default_script_guid(window); in get_script_guid()
1142 static ScriptHost *get_script_host(HTMLInnerWindow *window, const GUID *guid) in get_script_host() argument
1146 LIST_FOR_EACH_ENTRY(iter, &window->script_hosts, ScriptHost, entry) { in get_script_host()
1151 return create_script_host(window, guid); in get_script_host()
1154 static ScriptHost *get_elem_script_host(HTMLInnerWindow *window, HTMLScriptElement *script_elem) in get_elem_script_host() argument
1158 if(!get_script_guid(window, script_elem->nsscript, &guid)) { in get_elem_script_host()
1164 …&& (!window->base.outer_window || window->base.outer_window->scriptmode != SCRIPTMODE_ACTIVESCRIPT… in get_elem_script_host()
1169 return get_script_host(window, &guid); in get_elem_script_host()
1172 void doc_insert_script(HTMLInnerWindow *window, HTMLScriptElement *script_elem) in doc_insert_script() argument
1176 script_host = get_elem_script_host(window, script_elem); in doc_insert_script()
1184 IDispatch *script_parse_event(HTMLInnerWindow *window, LPCWSTR text) in script_parse_event() argument
1220 guid = get_default_script_guid(window); in script_parse_event()
1224 …&& (!window->base.outer_window || window->base.outer_window->scriptmode != SCRIPTMODE_ACTIVESCRIPT… in script_parse_event()
1229 script_host = get_script_host(window, &guid); in script_parse_event()
1245 HRESULT exec_script(HTMLInnerWindow *window, const WCHAR *code, const WCHAR *lang, VARIANT *ret) in exec_script() argument
1259 script_host = get_script_host(window, &guid); in exec_script()
1319 if(doc->window) { in find_event_target()
1320 event_target = &doc->window->event_target; in find_event_target()
1376 script_host = get_elem_script_host(doc->window, script_elem); in parse_event_elem()
1500 BOOL find_global_prop(HTMLInnerWindow *window, BSTR name, DWORD flags, ScriptHost **ret_host, DISPI… in find_global_prop() argument
1507 LIST_FOR_EACH_ENTRY(iter, &window->script_hosts, ScriptHost, entry) { in find_global_prop()
1551 void set_script_mode(HTMLOuterWindow *window, SCRIPTMODE mode) in set_script_mode() argument
1558 window->scriptmode = SCRIPTMODE_GECKO; in set_script_mode()
1562 window->scriptmode = mode; in set_script_mode()
1564 if(!window->doc_obj->nscontainer || !window->doc_obj->nscontainer->webbrowser) in set_script_mode()
1567 nsres = nsIWebBrowser_QueryInterface(window->doc_obj->nscontainer->webbrowser, in set_script_mode()
1571 window->scriptmode == SCRIPTMODE_GECKO); in set_script_mode()
1583 void release_script_hosts(HTMLInnerWindow *window) in release_script_hosts() argument
1588 while(!list_empty(&window->script_queue)) { in release_script_hosts()
1589 queue_iter = LIST_ENTRY(list_head(&window->script_queue), script_queue_entry_t, entry); in release_script_hosts()
1596 while(!list_empty(&window->script_hosts)) { in release_script_hosts()
1597 iter = LIST_ENTRY(list_head(&window->script_hosts), ScriptHost, entry); in release_script_hosts()
1601 iter->window = NULL; in release_script_hosts()