Title: [123622] trunk/Source/WebKit/blackberry
- Revision
- 123622
- Author
- [email protected]
- Date
- 2012-07-25 08:40:04 -0700 (Wed, 25 Jul 2012)
Log Message
[BlackBerry] Add "SelectAll" to WebPage
https://bugs.webkit.org/show_bug.cgi?id=92246
Patch by Andy Chen <[email protected]> on 2012-07-25
Reviewed by Antonio Gomes.
Add "Select All" editor command to WebPage.
Internally reviewed by Mike Fenton.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::selectAll):
(WebKit):
* Api/WebPage.h:
* WebKitSupport/InputHandler.cpp:
(BlackBerry::WebKit::InputHandler::selectAll):
(WebKit):
* WebKitSupport/InputHandler.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (123621 => 123622)
--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-07-25 15:14:32 UTC (rev 123621)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-07-25 15:40:04 UTC (rev 123622)
@@ -4679,6 +4679,13 @@
d->m_inputHandler->paste();
}
+void WebPage::selectAll()
+{
+ if (d->m_page->defersLoading())
+ return;
+ d->m_inputHandler->selectAll();
+}
+
void WebPage::setSelection(const Platform::IntPoint& startPoint, const Platform::IntPoint& endPoint)
{
if (d->m_page->defersLoading())
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.h (123621 => 123622)
--- trunk/Source/WebKit/blackberry/Api/WebPage.h 2012-07-25 15:14:32 UTC (rev 123621)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.h 2012-07-25 15:40:04 UTC (rev 123622)
@@ -158,6 +158,7 @@
void cut();
void copy();
void paste();
+ void selectAll();
// Text encoding.
WebString textEncoding();
Modified: trunk/Source/WebKit/blackberry/ChangeLog (123621 => 123622)
--- trunk/Source/WebKit/blackberry/ChangeLog 2012-07-25 15:14:32 UTC (rev 123621)
+++ trunk/Source/WebKit/blackberry/ChangeLog 2012-07-25 15:40:04 UTC (rev 123622)
@@ -1,3 +1,22 @@
+2012-07-25 Andy Chen <[email protected]>
+
+ [BlackBerry] Add "SelectAll" to WebPage
+ https://bugs.webkit.org/show_bug.cgi?id=92246
+
+ Reviewed by Antonio Gomes.
+
+ Add "Select All" editor command to WebPage.
+ Internally reviewed by Mike Fenton.
+
+ * Api/WebPage.cpp:
+ (BlackBerry::WebKit::WebPage::selectAll):
+ (WebKit):
+ * Api/WebPage.h:
+ * WebKitSupport/InputHandler.cpp:
+ (BlackBerry::WebKit::InputHandler::selectAll):
+ (WebKit):
+ * WebKitSupport/InputHandler.h:
+
2012-07-25 Arvid Nilsson <[email protected]>
[BlackBerry] Don't touch a tile buffer while it's still on its way to the GPU
Modified: trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp (123621 => 123622)
--- trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp 2012-07-25 15:14:32 UTC (rev 123621)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.cpp 2012-07-25 15:40:04 UTC (rev 123622)
@@ -1168,6 +1168,11 @@
executeTextEditCommand("Paste");
}
+void InputHandler::selectAll()
+{
+ executeTextEditCommand("SelectAll");
+}
+
void InputHandler::addAttributedTextMarker(int start, int end, const AttributeTextStyle& style)
{
if ((end - start) < 1 || end > static_cast<int>(elementText().length()))
Modified: trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.h (123621 => 123622)
--- trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.h 2012-07-25 15:14:32 UTC (rev 123621)
+++ trunk/Source/WebKit/blackberry/WebKitSupport/InputHandler.h 2012-07-25 15:40:04 UTC (rev 123622)
@@ -74,6 +74,7 @@
void cut();
void copy();
void paste();
+ void selectAll();
void cancelSelection();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes