Title: [102314] trunk/Source/WebCore
Revision
102314
Author
[email protected]
Date
2011-12-07 22:01:08 -0800 (Wed, 07 Dec 2011)

Log Message

Upstream 4 files into WebCore/platform/blackberry
https://bugs.webkit.org/show_bug.cgi?id=73541

Patch by Mary Wu <[email protected]> on 2011-12-07
Reviewed by Antonio Gomes.

Initial upstream of BlackBerry porting of PlatformScreen/
SSLKeyGenerator/Sound/Widget, no new tests.

* PlatformBlackBerry.cmake: Modified to remove empty file "WheelEventBlackBerry.cpp"
* platform/blackberry/PlatformScreenBlackBerry.cpp: Added.
(WebCore::screenIsMonochrome):
(WebCore::screenDepthPerComponent):
(WebCore::screenDepth):
(WebCore::screenAvailableRect):
(WebCore::screenRect):
* platform/blackberry/SSLKeyGeneratorBlackBerry.cpp: Added.
(WebCore::getSupportedKeySizes):
(WebCore::signedPublicKeyAndChallengeString):
* platform/blackberry/SoundBlackBerry.cpp: Added.
(WebCore::systemBeep):
* platform/blackberry/WidgetBlackBerry.cpp: Added.
(WebCore::Widget::Widget):
(WebCore::Widget::~Widget):
(WebCore::Widget::hide):
(WebCore::Widget::paint):
(WebCore::Widget::setCursor):
(WebCore::Widget::setFocus):
(WebCore::Widget::setFrameRect):
(WebCore::Widget::setIsSelected):
(WebCore::Widget::show):
(WebCore::Widget::frameRect):

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (102313 => 102314)


--- trunk/Source/WebCore/ChangeLog	2011-12-08 05:38:26 UTC (rev 102313)
+++ trunk/Source/WebCore/ChangeLog	2011-12-08 06:01:08 UTC (rev 102314)
@@ -1,3 +1,37 @@
+2011-12-07  Mary Wu  <[email protected]>
+
+        Upstream 4 files into WebCore/platform/blackberry
+        https://bugs.webkit.org/show_bug.cgi?id=73541
+
+        Reviewed by Antonio Gomes.
+
+        Initial upstream of BlackBerry porting of PlatformScreen/
+        SSLKeyGenerator/Sound/Widget, no new tests.
+
+        * PlatformBlackBerry.cmake: Modified to remove empty file "WheelEventBlackBerry.cpp"
+        * platform/blackberry/PlatformScreenBlackBerry.cpp: Added.
+        (WebCore::screenIsMonochrome):
+        (WebCore::screenDepthPerComponent):
+        (WebCore::screenDepth):
+        (WebCore::screenAvailableRect):
+        (WebCore::screenRect):
+        * platform/blackberry/SSLKeyGeneratorBlackBerry.cpp: Added.
+        (WebCore::getSupportedKeySizes):
+        (WebCore::signedPublicKeyAndChallengeString):
+        * platform/blackberry/SoundBlackBerry.cpp: Added.
+        (WebCore::systemBeep):
+        * platform/blackberry/WidgetBlackBerry.cpp: Added.
+        (WebCore::Widget::Widget):
+        (WebCore::Widget::~Widget):
+        (WebCore::Widget::hide):
+        (WebCore::Widget::paint):
+        (WebCore::Widget::setCursor):
+        (WebCore::Widget::setFocus):
+        (WebCore::Widget::setFrameRect):
+        (WebCore::Widget::setIsSelected):
+        (WebCore::Widget::show):
+        (WebCore::Widget::frameRect):
+
 2011-12-07  Kenichi Ishibashi  <[email protected]>
 
         Refactor CSSParser::parseFontFaceSrc()

Modified: trunk/Source/WebCore/PlatformBlackBerry.cmake (102313 => 102314)


--- trunk/Source/WebCore/PlatformBlackBerry.cmake	2011-12-08 05:38:26 UTC (rev 102313)
+++ trunk/Source/WebCore/PlatformBlackBerry.cmake	2011-12-08 06:01:08 UTC (rev 102314)
@@ -160,7 +160,6 @@
     platform/blackberry/SoundBlackBerry.cpp
     platform/blackberry/SystemTimeBlackBerry.cpp
     platform/blackberry/TemporaryLinkStubs.cpp
-    platform/blackberry/WheelEventBlackBerry.cpp
     platform/blackberry/WidgetBlackBerry.cpp
     platform/graphics/blackberry/FloatPointBlackBerry.cpp
     platform/graphics/blackberry/FloatRectBlackBerry.cpp

Added: trunk/Source/WebCore/platform/blackberry/PlatformScreenBlackBerry.cpp (0 => 102314)


--- trunk/Source/WebCore/platform/blackberry/PlatformScreenBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebCore/platform/blackberry/PlatformScreenBlackBerry.cpp	2011-12-08 06:01:08 UTC (rev 102314)
@@ -0,0 +1,54 @@
+/*
+ * 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 "PlatformScreen.h"
+
+#include "FloatRect.h"
+#include "Widget.h"
+
+#include <BlackBerryPlatformScreen.h>
+
+namespace WebCore {
+
+bool screenIsMonochrome(Widget*)
+{
+    return false;
+}
+
+int screenDepthPerComponent(Widget*)
+{
+    return 8;
+}
+
+int screenDepth(Widget*)
+{
+    return 24;
+}
+
+FloatRect screenAvailableRect(Widget* widget)
+{
+    return FloatRect(FloatPoint(), FloatSize(IntSize(BlackBerry::Platform::Graphics::Screen::size())));
+}
+
+FloatRect screenRect(Widget* widget)
+{
+    return FloatRect(FloatPoint(), FloatSize(IntSize(BlackBerry::Platform::Graphics::Screen::size())));
+}
+
+} // namespace WebCore

Added: trunk/Source/WebCore/platform/blackberry/SSLKeyGeneratorBlackBerry.cpp (0 => 102314)


--- trunk/Source/WebCore/platform/blackberry/SSLKeyGeneratorBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebCore/platform/blackberry/SSLKeyGeneratorBlackBerry.cpp	2011-12-08 06:01:08 UTC (rev 102314)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2009 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 "SSLKeyGenerator.h"
+
+#include "KURL.h"
+#include "NotImplemented.h"
+#include "PlatformString.h"
+#include "Vector.h"
+
+namespace WebCore {
+
+void getSupportedKeySizes(Vector<String>&)
+{
+    notImplemented();
+}
+
+String signedPublicKeyAndChallengeString(unsigned int, String const&, KURL const&)
+{
+    notImplemented();
+    return String();
+}
+
+} // namespace WebCore

Added: trunk/Source/WebCore/platform/blackberry/SoundBlackBerry.cpp (0 => 102314)


--- trunk/Source/WebCore/platform/blackberry/SoundBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebCore/platform/blackberry/SoundBlackBerry.cpp	2011-12-08 06:01:08 UTC (rev 102314)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2009 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 "Sound.h"
+
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+void systemBeep()
+{
+    notImplemented();
+}
+
+} // namespace WebCore

Added: trunk/Source/WebCore/platform/blackberry/WidgetBlackBerry.cpp (0 => 102314)


--- trunk/Source/WebCore/platform/blackberry/WidgetBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebCore/platform/blackberry/WidgetBlackBerry.cpp	2011-12-08 06:01:08 UTC (rev 102314)
@@ -0,0 +1,85 @@
+/*
+ * 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 "Widget.h"
+
+#include "Cursor.h"
+#include "GraphicsContext.h"
+#include "HostWindow.h"
+#include "IntRect.h"
+#include "NotImplemented.h"
+#include "ScrollView.h"
+
+namespace WebCore {
+
+Widget::Widget(PlatformWidget widget)
+{
+    init(widget);
+}
+
+Widget::~Widget()
+{
+}
+
+void Widget::hide()
+{
+    notImplemented();
+}
+
+void Widget::paint(GraphicsContext*, IntRect const&)
+{
+    notImplemented();
+}
+
+void Widget::setCursor(Cursor const& cursor)
+{
+    PlatformPageClient pageClient = root()->hostWindow()->platformPageClient();
+
+    if (pageClient)
+        pageClient->setCursor(cursor.impl());
+}
+
+void Widget::setFocus(bool)
+{
+    notImplemented();
+}
+
+void Widget::setFrameRect(const IntRect& rect)
+{
+    m_frame = rect;
+
+    frameRectsChanged();
+}
+
+void Widget::setIsSelected(bool)
+{
+    notImplemented();
+}
+
+void Widget::show()
+{
+    notImplemented();
+}
+
+IntRect Widget::frameRect() const
+{
+    return m_frame;
+}
+
+} // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to