Title: [117078] trunk/Source/WebKit/blackberry
Revision
117078
Author
[email protected]
Date
2012-05-15 08:52:05 -0700 (Tue, 15 May 2012)

Log Message

[BlackBerry] adding a functionality for web inspector to inspect current selected element
https://bugs.webkit.org/show_bug.cgi?id=86394

Patch by Hanna Ma <[email protected]> on 2012-05-15
Reviewed by Rob Buis.

Add a way to trigger the remote web inspector on selected element.

* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::inspectCurrentContextElement):
(WebKit):
* Api/WebPage.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (117077 => 117078)


--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2012-05-15 15:48:22 UTC (rev 117077)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2012-05-15 15:52:05 UTC (rev 117078)
@@ -5490,6 +5490,12 @@
     d->m_page->inspectorController()->dispatchMessageFromFrontend(stringMessage);
 }
 
+void WebPage::inspectCurrentContextElement()
+{
+    if (isWebInspectorEnabled() && d->m_currentContextNode.get())
+        d->m_page->inspectorController()->inspect(d->m_currentContextNode.get());
+}
+
 bool WebPagePrivate::compositorDrawsRootLayer() const
 {
 #if USE(ACCELERATED_COMPOSITING)

Modified: trunk/Source/WebKit/blackberry/Api/WebPage.h (117077 => 117078)


--- trunk/Source/WebKit/blackberry/Api/WebPage.h	2012-05-15 15:48:22 UTC (rev 117077)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.h	2012-05-15 15:52:05 UTC (rev 117078)
@@ -311,6 +311,7 @@
     void enablePasswordEcho();
     void disablePasswordEcho();
     void dispatchInspectorMessage(const std::string& message);
+    void inspectCurrentContextElement();
 
     // FIXME: Needs API review on this header. See PR #120402.
     void notifyPagePause();

Modified: trunk/Source/WebKit/blackberry/ChangeLog (117077 => 117078)


--- trunk/Source/WebKit/blackberry/ChangeLog	2012-05-15 15:48:22 UTC (rev 117077)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2012-05-15 15:52:05 UTC (rev 117078)
@@ -1,3 +1,17 @@
+2012-05-15  Hanna Ma  <[email protected]>
+
+        [BlackBerry] adding a functionality for web inspector to inspect current selected element
+        https://bugs.webkit.org/show_bug.cgi?id=86394
+
+        Reviewed by Rob Buis.
+
+        Add a way to trigger the remote web inspector on selected element.
+
+        * Api/WebPage.cpp:
+        (BlackBerry::WebKit::WebPage::inspectCurrentContextElement):
+        (WebKit):
+        * Api/WebPage.h:
+
 2012-05-14  Jacky Jiang  <[email protected]>
 
         [BlackBerry] ASSERT failure in FrameView::paintContents when refleshing www.thestar.com/iphone
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to