Title: [109150] trunk/Source/WebKit/blackberry
- Revision
- 109150
- Author
- [email protected]
- Date
- 2012-02-28 14:23:13 -0800 (Tue, 28 Feb 2012)
Log Message
[BlackBerry] Change the API to use std::string
https://bugs.webkit.org/show_bug.cgi?id=79818
Patch by Konrad Piascik <[email protected]> on 2012-02-28
Reviewed by Antonio Gomes.
* Api/WebPage.cpp:
(BlackBerry::WebKit::WebPage::dispatchInspectorMessage):
* Api/WebPage.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.cpp (109149 => 109150)
--- trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-02-28 22:21:02 UTC (rev 109149)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.cpp 2012-02-28 22:23:13 UTC (rev 109150)
@@ -5033,9 +5033,9 @@
d->m_page->settings()->setPasswordEchoEnabled(false);
}
-void WebPage::dispatchInspectorMessage(const char* message, int length)
+void WebPage::dispatchInspectorMessage(const std::string& message)
{
- String stringMessage(message, length);
+ String stringMessage(message.c_str(), message.length());
d->m_page->inspectorController()->dispatchMessageFromFrontend(stringMessage);
}
Modified: trunk/Source/WebKit/blackberry/Api/WebPage.h (109149 => 109150)
--- trunk/Source/WebKit/blackberry/Api/WebPage.h 2012-02-28 22:21:02 UTC (rev 109149)
+++ trunk/Source/WebKit/blackberry/Api/WebPage.h 2012-02-28 22:23:13 UTC (rev 109150)
@@ -302,7 +302,7 @@
void disableWebInspector();
void enablePasswordEcho();
void disablePasswordEcho();
- void dispatchInspectorMessage(const char* message, int length);
+ void dispatchInspectorMessage(const std::string& message);
// FIXME: Needs API review on this header. See PR #120402.
void notifyPagePause();
Modified: trunk/Source/WebKit/blackberry/ChangeLog (109149 => 109150)
--- trunk/Source/WebKit/blackberry/ChangeLog 2012-02-28 22:21:02 UTC (rev 109149)
+++ trunk/Source/WebKit/blackberry/ChangeLog 2012-02-28 22:23:13 UTC (rev 109150)
@@ -1,3 +1,14 @@
+2012-02-28 Konrad Piascik <[email protected]>
+
+ [BlackBerry] Change the API to use std::string
+ https://bugs.webkit.org/show_bug.cgi?id=79818
+
+ Reviewed by Antonio Gomes.
+
+ * Api/WebPage.cpp:
+ (BlackBerry::WebKit::WebPage::dispatchInspectorMessage):
+ * Api/WebPage.h:
+
2012-02-28 Jacky Jiang <[email protected]>
[BlackBerry] x86 build fix after cleaning up WebPage.cpp
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes