Title: [109002] trunk/Source
- Revision
- 109002
- Author
- timo...@apple.com
- Date
- 2012-02-27 09:51:06 -0800 (Mon, 27 Feb 2012)
Log Message
Add WKInspector API to know when the Web Inspector is the frontmost window.
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.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (109001 => 109002)
--- trunk/Source/WebCore/ChangeLog 2012-02-27 17:42:51 UTC (rev 109001)
+++ trunk/Source/WebCore/ChangeLog 2012-02-27 17:51:06 UTC (rev 109002)
@@ -1,3 +1,13 @@
+2012-02-27 Timothy Hatcher <timo...@apple.com>
+
+ Updated for WebKit2 string changes.
+
+ https://webkit.org/b/79649
+
+ Reviewed by John Sullivan.
+
+ * English.lproj/Localizable.strings: Updated.
+
2012-02-27 Pavel Feldman <pfeld...@google.com>
Web Inspector: Ctrl+K should not zoom in
Modified: trunk/Source/WebCore/English.lproj/Localizable.strings (109001 => 109002)
--- trunk/Source/WebCore/English.lproj/Localizable.strings 2012-02-27 17:42:51 UTC (rev 109001)
+++ trunk/Source/WebCore/English.lproj/Localizable.strings 2012-02-27 17:51:06 UTC (rev 109002)
@@ -100,9 +100,6 @@
/ * C o p y I m a g e c o n t e x t m e n u i t e m * /
"