Commit cf86cc15 authored by andersca@apple.com's avatar andersca@apple.com

2011-03-27 Anders Carlsson <andersca@apple.com>

        Reviewed by Sam Weinig.

        Dock doesn't come back after leaving fullscreen on Hulu
        https://bugs.webkit.org/show_bug.cgi?id=57189
        <rdar://problem/9192413>

        Port some code over from the old WebKit1 plug-in host.

        * PluginProcess/mac/PluginProcessShim.mm:
        (WebKit::shimShowMenuBar):
        (WebKit::shimHideMenuBar):
        (WebKit::shimIsMenuBarVisible):


git-svn-id: svn://svn.chromium.org/blink/trunk@82078 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent be80d27a
2011-03-27 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
Dock doesn't come back after leaving fullscreen on Hulu
https://bugs.webkit.org/show_bug.cgi?id=57189
<rdar://problem/9192413>
Port some code over from the old WebKit1 plug-in host.
* PluginProcess/mac/PluginProcessShim.mm:
(WebKit::shimShowMenuBar):
(WebKit::shimHideMenuBar):
(WebKit::shimIsMenuBarVisible):
2011-03-27 Anders Carlsson <andersca@apple.com>
Reviewed by Sam Weinig.
......@@ -10,7 +25,7 @@
Reviewed by Sam Weinig.
WKErrorCopyCFError() doesn&apos;t actually return a copy of the CFErrorRef
WKErrorCopyCFError() doesn't actually return a copy of the CFErrorRef
https://bugs.webkit.org/show_bug.cgi?id=57172
* Shared/API/c/cf/WKErrorCF.cpp:
......@@ -18,7 +33,7 @@
2011-03-26 Maciej Stachowiak <mjs@apple.com>
Revert inadvertantly commited changes.
Revert inadvertently commited changes.
* WebProcess/com.apple.WebProcess.sb:
......
......@@ -200,7 +200,7 @@ void PluginProcess::initializeShim()
cocoaWindowHidden,
carbonWindowShown,
carbonWindowHidden,
setModal
setModal,
};
PluginProcessShimInitializeFunc initFunc = reinterpret_cast<PluginProcessShimInitializeFunc>(dlsym(RTLD_DEFAULT, "WebKitPluginProcessShimInitialize"));
......
......@@ -121,6 +121,32 @@ static void shimHideWindow(WindowRef window)
HideWindow(window);
}
static bool isMenuBarVisible = true;
static void shimShowMenuBar(void)
{
isMenuBarVisible = true;
ShowMenuBar();
}
static void shimHideMenuBar(void)
{
isMenuBarVisible = false;
// Make sure to make ourselves the front process
ProcessSerialNumber psn;
GetCurrentProcess(&psn);
SetFrontProcess(&psn);
HideMenuBar();
}
static Boolean shimIsMenuBarVisible(void)
{
return isMenuBarVisible;
}
DYLD_INTERPOSE(shimDebugger, Debugger);
DYLD_INTERPOSE(shimGetCurrentEventButtonState, GetCurrentEventButtonState);
DYLD_INTERPOSE(shimIsWindowActive, IsWindowActive);
......@@ -128,6 +154,9 @@ DYLD_INTERPOSE(shimModalDialog, ModalDialog);
DYLD_INTERPOSE(shimAlert, Alert);
DYLD_INTERPOSE(shimShowWindow, ShowWindow);
DYLD_INTERPOSE(shimHideWindow, HideWindow);
DYLD_INTERPOSE(shimShowMenuBar, ShowMenuBar)
DYLD_INTERPOSE(shimHideMenuBar, HideMenuBar)
DYLD_INTERPOSE(shimIsMenuBarVisible, IsMenuBarVisible);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment