Title: [101159] trunk/Source/WebCore
Revision
101159
Author
leo.y...@torchmobile.com.cn
Date
2011-11-25 02:06:55 -0800 (Fri, 25 Nov 2011)

Log Message

Upstream BlackBerry porting of platform/text
https://bugs.webkit.org/show_bug.cgi?id=73117

Reviewed by Daniel Bates.

Initial upstream, can't be built yet, no test cases.

* platform/text/blackberry/StringBlackBerry.cpp: Added.
(WTF::String::String):
(WTF::String::operator WebString):
* platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp: Added.
(WebCore::currentSearchLocaleID):
(WebCore::currentTextBreakLocaleID):

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (101158 => 101159)


--- trunk/Source/WebCore/ChangeLog	2011-11-25 09:41:53 UTC (rev 101158)
+++ trunk/Source/WebCore/ChangeLog	2011-11-25 10:06:55 UTC (rev 101159)
@@ -1,3 +1,19 @@
+2011-11-25  Leo Yang  <leo.y...@torchmobile.com.cn>
+
+        Upstream BlackBerry porting of platform/text
+        https://bugs.webkit.org/show_bug.cgi?id=73117
+
+        Reviewed by Daniel Bates.
+
+        Initial upstream, can't be built yet, no test cases.
+
+        * platform/text/blackberry/StringBlackBerry.cpp: Added.
+        (WTF::String::String):
+        (WTF::String::operator WebString):
+        * platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp: Added.
+        (WebCore::currentSearchLocaleID):
+        (WebCore::currentTextBreakLocaleID):
+
 2011-11-25  Kentaro Hara  <hara...@chromium.org>
 
         Remove WebCore.gyp/scripts/rule_binding.py

Added: trunk/Source/WebCore/platform/text/blackberry/StringBlackBerry.cpp (0 => 101159)


--- trunk/Source/WebCore/platform/text/blackberry/StringBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebCore/platform/text/blackberry/StringBlackBerry.cpp	2011-11-25 10:06:55 UTC (rev 101159)
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2009, 2010, 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include "config.h"
+#include "PlatformString.h"
+
+#include "WebString.h"
+#include "WebStringImpl.h"
+
+using BlackBerry::WebKit::WebString;
+using BlackBerry::WebKit::WebStringImpl;
+
+namespace WTF {
+
+String::String(const WebString& webString)
+    : m_impl(webString.impl())
+{
+}
+
+String::operator WebString() const
+{
+    WebString webString(static_cast<WebStringImpl*>(m_impl.get()));
+    return webString;
+}
+
+} // namespace WTF

Added: trunk/Source/WebCore/platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp (0 => 101159)


--- trunk/Source/WebCore/platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebCore/platform/text/blackberry/TextBreakIteratorInternalICUBlackBerry.cpp	2011-11-25 10:06:55 UTC (rev 101159)
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2010, 2011 Research In Motion Limited. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include "config.h"
+#include "TextBreakIteratorInternalICU.h"
+
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+const char* currentSearchLocaleID()
+{
+    notImplemented();
+    return "";
+}
+
+const char* currentTextBreakLocaleID()
+{
+    notImplemented();
+    return "en_us";
+}
+
+}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to