Title: [143943] trunk/Source/WebKit/blackberry
Revision
143943
Author
[email protected]
Date
2013-02-25 10:13:23 -0800 (Mon, 25 Feb 2013)

Log Message

[BlackBerry] Add isInputMode() method to WebPage class.
https://bugs.webkit.org/show_bug.cgi?id=110754

Patch by Yongxin Dai <[email protected]> on 2013-02-25
Reviewed by Rob Buis.

PR #262569.

There is a case we need to know if the active node is content editable
from TouchHandlerWebKitThread class. WebPage::isInputMode() just delegates
InputHandler::isInputMode().

Reviewed Internally by Mike Fenton.

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

Modified Paths

Diff

Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (143942 => 143943)


--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2013-02-25 18:10:52 UTC (rev 143942)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp	2013-02-25 18:13:23 UTC (rev 143943)
@@ -4501,6 +4501,11 @@
     d->m_inputHandler->selectAll();
 }
 
+bool WebPage::isInputMode() const
+{
+    return d->m_inputHandler->isInputMode();
+}
+
 void WebPage::setDocumentSelection(const Platform::IntPoint& documentStartPoint, const Platform::IntPoint& documentEndPoint)
 {
     if (d->m_page->defersLoading())

Modified: trunk/Source/WebKit/blackberry/Api/WebPage.h (143942 => 143943)


--- trunk/Source/WebKit/blackberry/Api/WebPage.h	2013-02-25 18:10:52 UTC (rev 143942)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.h	2013-02-25 18:13:23 UTC (rev 143943)
@@ -257,6 +257,7 @@
     void spellCheckingRequestProcessed(int32_t transactionId, spannable_string_t*);
     void spellCheckingRequestCancelled(int32_t transactionId);
 
+    bool isInputMode() const;
     void setDocumentSelection(const Platform::IntPoint& documentStartPoint, const Platform::IntPoint& documentEndPoint);
     void setDocumentCaretPosition(const Platform::IntPoint&);
     void selectAtDocumentPoint(const Platform::IntPoint&);

Modified: trunk/Source/WebKit/blackberry/ChangeLog (143942 => 143943)


--- trunk/Source/WebKit/blackberry/ChangeLog	2013-02-25 18:10:52 UTC (rev 143942)
+++ trunk/Source/WebKit/blackberry/ChangeLog	2013-02-25 18:13:23 UTC (rev 143943)
@@ -1,3 +1,23 @@
+2013-02-25  Yongxin Dai  <[email protected]>
+
+        [BlackBerry] Add isInputMode() method to WebPage class.
+        https://bugs.webkit.org/show_bug.cgi?id=110754
+
+        Reviewed by Rob Buis.
+
+        PR #262569.
+
+        There is a case we need to know if the active node is content editable
+        from TouchHandlerWebKitThread class. WebPage::isInputMode() just delegates
+        InputHandler::isInputMode().
+
+        Reviewed Internally by Mike Fenton.
+
+        * Api/WebPage.cpp:
+        (BlackBerry::WebKit::WebPage::isInputMode):
+        (WebKit):
+        * Api/WebPage.h:
+
 2013-02-25  Mike Fenton  <[email protected]>
 
         [BlackBerry] Force form submission when implicit submission fails.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to