Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ac3b1f32
Commit
ac3b1f32
authored
Feb 27, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Merge htmlembed.c into htmlobject.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
48365004
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
256 additions
and
290 deletions
+256
-290
Makefile.in
dlls/mshtml/Makefile.in
+0
-1
htmlembed.c
dlls/mshtml/htmlembed.c
+0
-289
htmlobject.c
dlls/mshtml/htmlobject.c
+256
-0
No files found.
dlls/mshtml/Makefile.in
View file @
ac3b1f32
...
...
@@ -16,7 +16,6 @@ C_SRCS = \
htmldoc.c
\
htmlelem.c
\
htmlelemcol.c
\
htmlembed.c
\
htmlevent.c
\
htmlform.c
\
htmlframe.c
\
...
...
dlls/mshtml/htmlembed.c
deleted
100644 → 0
View file @
48365004
/*
* Copyright 2010 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "winreg.h"
#include "ole2.h"
#include "wine/debug.h"
#include "mshtml_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
struct
HTMLEmbed
{
HTMLElement
element
;
IHTMLEmbedElement
IHTMLEmbedElement_iface
;
};
static
inline
HTMLEmbed
*
impl_from_IHTMLEmbedElement
(
IHTMLEmbedElement
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLEmbed
,
IHTMLEmbedElement_iface
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_QueryInterface
(
IHTMLEmbedElement
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IHTMLDOMNode_QueryInterface
(
&
This
->
element
.
node
.
IHTMLDOMNode_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLEmbedElement_AddRef
(
IHTMLEmbedElement
*
iface
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IHTMLDOMNode_AddRef
(
&
This
->
element
.
node
.
IHTMLDOMNode_iface
);
}
static
ULONG
WINAPI
HTMLEmbedElement_Release
(
IHTMLEmbedElement
*
iface
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IHTMLDOMNode_Release
(
&
This
->
element
.
node
.
IHTMLDOMNode_iface
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_GetTypeInfoCount
(
IHTMLEmbedElement
*
iface
,
UINT
*
pctinfo
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
pctinfo
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_GetTypeInfo
(
IHTMLEmbedElement
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_GetTypeInfo
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_GetIDsOfNames
(
IHTMLEmbedElement
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_Invoke
(
IHTMLEmbedElement
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_Invoke
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_hidden
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_hidden
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_palette
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_pluginspage
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_src
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_src
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_units
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_units
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_name
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_name
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_width
(
IHTMLEmbedElement
*
iface
,
VARIANT
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_width
(
IHTMLEmbedElement
*
iface
,
VARIANT
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_height
(
IHTMLEmbedElement
*
iface
,
VARIANT
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_height
(
IHTMLEmbedElement
*
iface
,
VARIANT
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
const
IHTMLEmbedElementVtbl
HTMLEmbedElementVtbl
=
{
HTMLEmbedElement_QueryInterface
,
HTMLEmbedElement_AddRef
,
HTMLEmbedElement_Release
,
HTMLEmbedElement_GetTypeInfoCount
,
HTMLEmbedElement_GetTypeInfo
,
HTMLEmbedElement_GetIDsOfNames
,
HTMLEmbedElement_Invoke
,
HTMLEmbedElement_put_hidden
,
HTMLEmbedElement_get_hidden
,
HTMLEmbedElement_get_palette
,
HTMLEmbedElement_get_pluginspage
,
HTMLEmbedElement_put_src
,
HTMLEmbedElement_get_src
,
HTMLEmbedElement_put_units
,
HTMLEmbedElement_get_units
,
HTMLEmbedElement_put_name
,
HTMLEmbedElement_get_name
,
HTMLEmbedElement_put_width
,
HTMLEmbedElement_get_width
,
HTMLEmbedElement_put_height
,
HTMLEmbedElement_get_height
};
static
inline
HTMLEmbed
*
impl_from_HTMLDOMNode
(
HTMLDOMNode
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLEmbed
,
element
.
node
);
}
static
HRESULT
HTMLEmbedElement_QI
(
HTMLDOMNode
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLEmbed
*
This
=
impl_from_HTMLDOMNode
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLEmbedElement_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
*
ppv
=
&
This
->
IHTMLEmbedElement_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLEmbedElement
,
riid
))
{
*
ppv
=
&
This
->
IHTMLEmbedElement_iface
;
}
else
{
return
HTMLElement_QI
(
&
This
->
element
.
node
,
riid
,
ppv
);
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
void
HTMLEmbedElement_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLEmbed
*
This
=
impl_from_HTMLDOMNode
(
iface
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
static
const
NodeImplVtbl
HTMLEmbedElementImplVtbl
=
{
&
CLSID_HTMLEmbed
,
HTMLEmbedElement_QI
,
HTMLEmbedElement_destructor
,
HTMLElement_cpc
,
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
};
static
const
tid_t
HTMLEmbedElement_iface_tids
[]
=
{
HTMLELEMENT_TIDS
,
IHTMLEmbedElement_tid
,
0
};
static
dispex_static_data_t
HTMLEmbedElement_dispex
=
{
NULL
,
DispHTMLEmbed_tid
,
HTMLEmbedElement_iface_tids
,
HTMLElement_init_dispex_info
};
HRESULT
HTMLEmbedElement_Create
(
HTMLDocumentNode
*
doc
,
nsIDOMElement
*
nselem
,
HTMLElement
**
elem
)
{
HTMLEmbed
*
ret
;
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
if
(
!
ret
)
return
E_OUTOFMEMORY
;
ret
->
IHTMLEmbedElement_iface
.
lpVtbl
=
&
HTMLEmbedElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLEmbedElementImplVtbl
;
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLEmbedElement_dispex
);
*
elem
=
&
ret
->
element
;
return
S_OK
;
}
dlls/mshtml/htmlobject.c
View file @
ac3b1f32
...
...
@@ -798,3 +798,259 @@ HRESULT HTMLObjectElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, H
*
elem
=
&
ret
->
plugin_container
.
element
;
return
S_OK
;
}
struct
HTMLEmbed
{
HTMLElement
element
;
IHTMLEmbedElement
IHTMLEmbedElement_iface
;
};
static
inline
HTMLEmbed
*
impl_from_IHTMLEmbedElement
(
IHTMLEmbedElement
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLEmbed
,
IHTMLEmbedElement_iface
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_QueryInterface
(
IHTMLEmbedElement
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IHTMLDOMNode_QueryInterface
(
&
This
->
element
.
node
.
IHTMLDOMNode_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
HTMLEmbedElement_AddRef
(
IHTMLEmbedElement
*
iface
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IHTMLDOMNode_AddRef
(
&
This
->
element
.
node
.
IHTMLDOMNode_iface
);
}
static
ULONG
WINAPI
HTMLEmbedElement_Release
(
IHTMLEmbedElement
*
iface
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IHTMLDOMNode_Release
(
&
This
->
element
.
node
.
IHTMLDOMNode_iface
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_GetTypeInfoCount
(
IHTMLEmbedElement
*
iface
,
UINT
*
pctinfo
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_GetTypeInfoCount
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
pctinfo
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_GetTypeInfo
(
IHTMLEmbedElement
*
iface
,
UINT
iTInfo
,
LCID
lcid
,
ITypeInfo
**
ppTInfo
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_GetTypeInfo
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
iTInfo
,
lcid
,
ppTInfo
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_GetIDsOfNames
(
IHTMLEmbedElement
*
iface
,
REFIID
riid
,
LPOLESTR
*
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgDispId
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_GetIDsOfNames
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
riid
,
rgszNames
,
cNames
,
lcid
,
rgDispId
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_Invoke
(
IHTMLEmbedElement
*
iface
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
return
IDispatchEx_Invoke
(
&
This
->
element
.
node
.
event_target
.
dispex
.
IDispatchEx_iface
,
dispIdMember
,
riid
,
lcid
,
wFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
puArgErr
);
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_hidden
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_hidden
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_palette
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_pluginspage
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_src
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_src
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_units
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_units
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_name
(
IHTMLEmbedElement
*
iface
,
BSTR
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_name
(
IHTMLEmbedElement
*
iface
,
BSTR
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_width
(
IHTMLEmbedElement
*
iface
,
VARIANT
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_width
(
IHTMLEmbedElement
*
iface
,
VARIANT
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_put_height
(
IHTMLEmbedElement
*
iface
,
VARIANT
v
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
v
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
HTMLEmbedElement_get_height
(
IHTMLEmbedElement
*
iface
,
VARIANT
*
p
)
{
HTMLEmbed
*
This
=
impl_from_IHTMLEmbedElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
}
static
const
IHTMLEmbedElementVtbl
HTMLEmbedElementVtbl
=
{
HTMLEmbedElement_QueryInterface
,
HTMLEmbedElement_AddRef
,
HTMLEmbedElement_Release
,
HTMLEmbedElement_GetTypeInfoCount
,
HTMLEmbedElement_GetTypeInfo
,
HTMLEmbedElement_GetIDsOfNames
,
HTMLEmbedElement_Invoke
,
HTMLEmbedElement_put_hidden
,
HTMLEmbedElement_get_hidden
,
HTMLEmbedElement_get_palette
,
HTMLEmbedElement_get_pluginspage
,
HTMLEmbedElement_put_src
,
HTMLEmbedElement_get_src
,
HTMLEmbedElement_put_units
,
HTMLEmbedElement_get_units
,
HTMLEmbedElement_put_name
,
HTMLEmbedElement_get_name
,
HTMLEmbedElement_put_width
,
HTMLEmbedElement_get_width
,
HTMLEmbedElement_put_height
,
HTMLEmbedElement_get_height
};
static
inline
HTMLEmbed
*
embed_from_HTMLDOMNode
(
HTMLDOMNode
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
HTMLEmbed
,
element
.
node
);
}
static
HRESULT
HTMLEmbedElement_QI
(
HTMLDOMNode
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
HTMLEmbed
*
This
=
embed_from_HTMLDOMNode
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLEmbedElement_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
*
ppv
=
&
This
->
IHTMLEmbedElement_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLEmbedElement
,
riid
))
{
*
ppv
=
&
This
->
IHTMLEmbedElement_iface
;
}
else
{
return
HTMLElement_QI
(
&
This
->
element
.
node
,
riid
,
ppv
);
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
}
static
void
HTMLEmbedElement_destructor
(
HTMLDOMNode
*
iface
)
{
HTMLEmbed
*
This
=
embed_from_HTMLDOMNode
(
iface
);
HTMLElement_destructor
(
&
This
->
element
.
node
);
}
static
const
NodeImplVtbl
HTMLEmbedElementImplVtbl
=
{
&
CLSID_HTMLEmbed
,
HTMLEmbedElement_QI
,
HTMLEmbedElement_destructor
,
HTMLElement_cpc
,
HTMLElement_clone
,
HTMLElement_handle_event
,
HTMLElement_get_attr_col
};
static
const
tid_t
HTMLEmbedElement_iface_tids
[]
=
{
HTMLELEMENT_TIDS
,
IHTMLEmbedElement_tid
,
0
};
static
dispex_static_data_t
HTMLEmbedElement_dispex
=
{
NULL
,
DispHTMLEmbed_tid
,
HTMLEmbedElement_iface_tids
,
HTMLElement_init_dispex_info
};
HRESULT
HTMLEmbedElement_Create
(
HTMLDocumentNode
*
doc
,
nsIDOMElement
*
nselem
,
HTMLElement
**
elem
)
{
HTMLEmbed
*
ret
;
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
if
(
!
ret
)
return
E_OUTOFMEMORY
;
ret
->
IHTMLEmbedElement_iface
.
lpVtbl
=
&
HTMLEmbedElementVtbl
;
ret
->
element
.
node
.
vtbl
=
&
HTMLEmbedElementImplVtbl
;
HTMLElement_Init
(
&
ret
->
element
,
doc
,
nselem
,
&
HTMLEmbedElement_dispex
);
*
elem
=
&
ret
->
element
;
return
S_OK
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment