Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d22928fb
Commit
d22928fb
authored
Nov 19, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Send command state change notifications from history navigation handlers.
parent
9db50228
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
0 deletions
+39
-0
ieframe.h
dlls/ieframe/ieframe.h
+1
-0
navigate.c
dlls/ieframe/navigate.c
+35
-0
oleobject.c
dlls/ieframe/oleobject.c
+3
-0
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+0
-0
No files found.
dlls/ieframe/ieframe.h
View file @
d22928fb
...
...
@@ -273,6 +273,7 @@ HRESULT dochost_object_available(DocHost*,IUnknown*) DECLSPEC_HIDDEN;
void
set_doc_state
(
DocHost
*
,
READYSTATE
)
DECLSPEC_HIDDEN
;
void
deactivate_document
(
DocHost
*
)
DECLSPEC_HIDDEN
;
void
create_doc_view_hwnd
(
DocHost
*
)
DECLSPEC_HIDDEN
;
void
on_commandstate_change
(
DocHost
*
,
LONG
,
VARIANT_BOOL
)
DECLSPEC_HIDDEN
;
#define WM_DOCHOSTTASK (WM_USER+0x300)
void
push_dochost_task
(
DocHost
*
,
task_header_t
*
,
task_proc_t
,
task_destr_t
,
BOOL
)
DECLSPEC_HIDDEN
;
...
...
dlls/ieframe/navigate.c
View file @
d22928fb
...
...
@@ -773,6 +773,27 @@ static void doc_navigate_task_destr(task_header_t *t)
heap_free
(
task
);
}
void
on_commandstate_change
(
DocHost
*
doc_host
,
LONG
command
,
VARIANT_BOOL
enable
)
{
DISPPARAMS
dispparams
;
VARIANTARG
params
[
2
];
TRACE
(
"command=%d enable=%d
\n
"
,
command
,
enable
);
dispparams
.
cArgs
=
2
;
dispparams
.
cNamedArgs
=
0
;
dispparams
.
rgdispidNamedArgs
=
NULL
;
dispparams
.
rgvarg
=
params
;
V_VT
(
params
)
=
VT_BOOL
;
V_BOOL
(
params
)
=
enable
;
V_VT
(
params
+
1
)
=
VT_I4
;
V_I4
(
params
+
1
)
=
command
;
call_sink
(
doc_host
->
cps
.
wbe2
,
DISPID_COMMANDSTATECHANGE
,
&
dispparams
);
}
static
void
doc_navigate_proc
(
DocHost
*
This
,
task_header_t
*
t
)
{
task_doc_navigate_t
*
task
=
(
task_doc_navigate_t
*
)
t
;
...
...
@@ -876,6 +897,9 @@ static HRESULT navigate_bsc(DocHost *This, BindStatusCallback *bsc, IMoniker *mo
return
S_OK
;
}
on_commandstate_change
(
This
,
CSC_NAVIGATEBACK
,
VARIANT_FALSE
);
on_commandstate_change
(
This
,
CSC_NAVIGATEFORWARD
,
VARIANT_FALSE
);
if
(
This
->
document
)
deactivate_document
(
This
);
...
...
@@ -1069,6 +1093,17 @@ static HRESULT navigate_history(DocHost *This, unsigned travellog_pos)
return
E_NOTIMPL
;
}
if
(
travellog_pos
<
This
->
travellog
.
position
)
{
on_commandstate_change
(
This
,
CSC_NAVIGATEBACK
,
VARIANT_FALSE
);
on_commandstate_change
(
This
,
CSC_NAVIGATEFORWARD
,
VARIANT_TRUE
);
}
else
if
(
travellog_pos
>
This
->
travellog
.
position
)
{
on_commandstate_change
(
This
,
CSC_NAVIGATEBACK
,
VARIANT_TRUE
);
on_commandstate_change
(
This
,
CSC_NAVIGATEFORWARD
,
VARIANT_FALSE
);
}
This
->
travellog
.
loading_pos
=
travellog_pos
;
entry
=
This
->
travellog
.
log
+
This
->
travellog
.
loading_pos
;
...
...
dlls/ieframe/oleobject.c
View file @
d22928fb
...
...
@@ -442,6 +442,9 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, LPOLECLIENTSITE
release_client_site
(
This
);
if
(
!
pClientSite
)
{
on_commandstate_change
(
&
This
->
doc_host
,
CSC_NAVIGATEBACK
,
VARIANT_FALSE
);
on_commandstate_change
(
&
This
->
doc_host
,
CSC_NAVIGATEFORWARD
,
VARIANT_FALSE
);
if
(
This
->
doc_host
.
document
)
deactivate_document
(
&
This
->
doc_host
);
return
S_OK
;
...
...
dlls/ieframe/tests/webbrowser.c
View file @
d22928fb
This diff is collapsed.
Click to expand it.
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