-
timothy@apple.com authored
https://webkit.org/b/79649 Reviewed by John Sullivan. Source/WebCore: Updated for WebKit2 string changes. * English.lproj/Localizable.strings: Updated. Source/WebKit2: Also makes the Safari Develop menu items work when the Web Inspector is frontmost. * UIProcess/API/C/WKInspector.cpp: (WKInspectorIsFront): Added. Call WebInspectorProxy::isFront. * UIProcess/API/C/WKInspector.h: * UIProcess/WebInspectorProxy.cpp: (WebKit::WebInspectorProxy::isFront): Added. Call platformIsFront. * UIProcess/WebInspectorProxy.h: * UIProcess/efl/WebInspectorEfl.cpp: (WebKit::WebInspectorProxy::platformIsFront): Added stub. * UIProcess/gtk/WebInspectorGtk.cpp: (WebKit::WebInspectorProxy::platformIsFront): Added stub. * UIProcess/mac/WebInspectorProxyMac.mm: (-[WKWebInspectorProxyObjCAdapter showWebInspector:]): Added. Makes the Develop menu items in Safari work when the Web Inspector window is front. (-[WKWebInspectorProxyObjCAdapter showErrorConsole:]): Added. Ditto. (-[WKWebInspectorProxyObjCAdapter showResources:]): Added. Ditto. (-[WKWebInspectorProxyObjCAdapter viewSource:]): Added. Ditto. (-[WKWebInspectorProxyObjCAdapter toggleDebuggingJavaScript:]): Added. Ditto. (-[WKWebInspectorProxyObjCAdapter toggleProfilingJavaScript:]): Added. Ditto. (-[WKWebInspectorProxyObjCAdapter validateUserInterfaceItem:]): Added. Update the menu item titles. (WebKit::WebInspectorProxy::platformIsFront): Added. Return if visible and the window is main. * UIProcess/qt/WebInspectorProxyQt.cpp: (WebKit::WebInspectorProxy::platformIsFront): Added stub. * UIProcess/win/WebInspectorProxyWin.cpp: (WebKit::WebInspectorProxy::platformIsFront): Added stub. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8274182d