wow64: In wow64_NtSetInformationToken forward TokenIntegrityLevel.
[wine.git] / dlls / mshtml / htmlscript.h
blob8384ace573a1af7477021625d16255c24fbae546
1 /*
2 * Copyright 2012 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "activscp.h"
21 struct HTMLScriptElement {
22 HTMLElement element;
24 IHTMLScriptElement IHTMLScriptElement_iface;
26 nsIDOMHTMLScriptElement *nsscript;
27 BOOL parsed;
28 BOOL parse_on_bind;
29 BOOL pending_readystatechange_event;
30 READYSTATE readystate;
31 WCHAR *src_text; /* sctipt text downloaded from src */
32 BSCallback *binding; /* weak reference to current binding */
35 typedef struct {
36 struct list entry;
37 HTMLScriptElement *script;
38 } script_queue_entry_t;
40 HRESULT script_elem_from_nsscript(nsIDOMHTMLScriptElement*,HTMLScriptElement**);
41 void bind_event_scripts(HTMLDocumentNode*);
42 HRESULT load_script(HTMLScriptElement*,const WCHAR*,BOOL);
44 void release_script_hosts(HTMLInnerWindow*);
45 void connect_scripts(HTMLInnerWindow*);
46 void doc_insert_script(HTMLInnerWindow*,HTMLScriptElement*,BOOL);
47 IDispatch *script_parse_event(HTMLInnerWindow*,LPCWSTR);
48 HRESULT exec_script(HTMLInnerWindow*,const WCHAR*,const WCHAR*,VARIANT*);
49 void update_browser_script_mode(GeckoBrowser*,IUri*);
50 BOOL find_global_prop(HTMLInnerWindow*,BSTR,DWORD,ScriptHost**,DISPID*);
51 IDispatch *get_script_disp(ScriptHost*);
52 IActiveScriptSite *get_first_script_site(HTMLInnerWindow*);