Title: [103022] trunk/Source/WebKit
Revision
103022
Author
[email protected]
Date
2011-12-15 21:22:48 -0800 (Thu, 15 Dec 2011)

Log Message

[BlackBerry] Upstream BlackBerry WebCoreSupport drag client and context menu client
https://bugs.webkit.org/show_bug.cgi?id=74643

Patch by Jacky Jiang <[email protected]> on 2011-12-15
Reviewed by Rob Buis.

Initial upstream, no new tests.

* blackberry/WebCoreSupport/ContextMenuClientBlackBerry.cpp: Added.
* blackberry/WebCoreSupport/ContextMenuClientBlackBerry.h: Added.
* blackberry/WebCoreSupport/DragClientBlackBerry.cpp: Added.
* blackberry/WebCoreSupport/DragClientBlackBerry.h: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (103021 => 103022)


--- trunk/Source/WebKit/ChangeLog	2011-12-16 05:21:00 UTC (rev 103021)
+++ trunk/Source/WebKit/ChangeLog	2011-12-16 05:22:48 UTC (rev 103022)
@@ -1,5 +1,19 @@
 2011-12-15  Jacky Jiang  <[email protected]>
 
+        [BlackBerry] Upstream BlackBerry WebCoreSupport drag client and context menu client
+        https://bugs.webkit.org/show_bug.cgi?id=74643
+
+        Reviewed by Rob Buis.
+
+        Initial upstream, no new tests.
+
+        * blackberry/WebCoreSupport/ContextMenuClientBlackBerry.cpp: Added.
+        * blackberry/WebCoreSupport/ContextMenuClientBlackBerry.h: Added.
+        * blackberry/WebCoreSupport/DragClientBlackBerry.cpp: Added.
+        * blackberry/WebCoreSupport/DragClientBlackBerry.h: Added.
+
+2011-12-15  Jacky Jiang  <[email protected]>
+
         [BlackBerry] Regression: lots of checkerboarding
         https://bugs.webkit.org/show_bug.cgi?id=74611
 

Added: trunk/Source/WebKit/blackberry/WebCoreSupport/ContextMenuClientBlackBerry.cpp (0 => 103022)


--- trunk/Source/WebKit/blackberry/WebCoreSupport/ContextMenuClientBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebKit/blackberry/WebCoreSupport/ContextMenuClientBlackBerry.cpp	2011-12-16 05:22:48 UTC (rev 103022)
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
+ * Copyright (C) 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 "ContextMenuClientBlackBerry.h"
+
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+void ContextMenuClientBlackBerry::contextMenuDestroyed()
+{
+    delete this;
+}
+
+void* ContextMenuClientBlackBerry::getCustomMenuFromDefaultItems(ContextMenu*)
+{
+    notImplemented();
+    return 0;
+}
+
+void ContextMenuClientBlackBerry::contextMenuItemSelected(ContextMenuItem*, const ContextMenu*)
+{
+    notImplemented();
+}
+
+void ContextMenuClientBlackBerry::downloadURL(const KURL&)
+{
+    notImplemented();
+}
+
+void ContextMenuClientBlackBerry::searchWithGoogle(const Frame*)
+{
+    notImplemented();
+}
+
+void ContextMenuClientBlackBerry::lookUpInDictionary(Frame*)
+{
+    notImplemented();
+}
+
+bool ContextMenuClientBlackBerry::isSpeaking()
+{
+    notImplemented();
+    return false;
+}
+
+void ContextMenuClientBlackBerry::speak(const String&)
+{
+    notImplemented();
+}
+
+void ContextMenuClientBlackBerry::stopSpeaking()
+{
+    notImplemented();
+}
+
+} // namespace WebCore

Added: trunk/Source/WebKit/blackberry/WebCoreSupport/ContextMenuClientBlackBerry.h (0 => 103022)


--- trunk/Source/WebKit/blackberry/WebCoreSupport/ContextMenuClientBlackBerry.h	                        (rev 0)
+++ trunk/Source/WebKit/blackberry/WebCoreSupport/ContextMenuClientBlackBerry.h	2011-12-16 05:22:48 UTC (rev 103022)
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
+ * Copyright (C) 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
+ */
+
+#ifndef ContextMenuClientBlackBerry_h
+#define ContextMenuClientBlackBerry_h
+
+#include "ContextMenuClient.h"
+
+namespace WebCore {
+
+class ContextMenuClientBlackBerry : public ContextMenuClient {
+public:
+    virtual void contextMenuDestroyed();
+    virtual void* getCustomMenuFromDefaultItems(ContextMenu*);
+    virtual void contextMenuItemSelected(ContextMenuItem*, const ContextMenu*);
+    virtual void downloadURL(const KURL&);
+    virtual void searchWithGoogle(const Frame*);
+    virtual void lookUpInDictionary(Frame*);
+    virtual bool isSpeaking();
+    virtual void speak(const String&);
+    virtual void stopSpeaking();
+};
+
+} // WebCore
+
+#endif // ContextMenuClientBlackBerry_h

Added: trunk/Source/WebKit/blackberry/WebCoreSupport/DragClientBlackBerry.cpp (0 => 103022)


--- trunk/Source/WebKit/blackberry/WebCoreSupport/DragClientBlackBerry.cpp	                        (rev 0)
+++ trunk/Source/WebKit/blackberry/WebCoreSupport/DragClientBlackBerry.cpp	2011-12-16 05:22:48 UTC (rev 103022)
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
+ * Copyright (C) 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 "DragClientBlackBerry.h"
+
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+void DragClientBlackBerry::willPerformDragDestinationAction(DragDestinationAction, DragData*)
+{
+    notImplemented();
+}
+
+void DragClientBlackBerry::willPerformDragSourceAction(DragSourceAction, const IntPoint&, Clipboard*)
+{
+    notImplemented();
+}
+
+DragDestinationAction DragClientBlackBerry::actionMaskForDrag(DragData*)
+{
+    notImplemented();
+    return DragDestinationActionNone;
+}
+
+DragSourceAction DragClientBlackBerry::dragSourceActionMaskForPoint(const IntPoint&)
+{
+    notImplemented();
+    return DragSourceActionNone;
+}
+
+void DragClientBlackBerry::startDrag(void*, const IntPoint&, const IntPoint&, Clipboard*, Frame*, bool)
+{
+    notImplemented();
+}
+
+void DragClientBlackBerry::dragControllerDestroyed()
+{
+    delete this;
+}
+
+} // namespace WebCore

Added: trunk/Source/WebKit/blackberry/WebCoreSupport/DragClientBlackBerry.h (0 => 103022)


--- trunk/Source/WebKit/blackberry/WebCoreSupport/DragClientBlackBerry.h	                        (rev 0)
+++ trunk/Source/WebKit/blackberry/WebCoreSupport/DragClientBlackBerry.h	2011-12-16 05:22:48 UTC (rev 103022)
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
+ * Copyright (C) 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
+ */
+
+#ifndef DragClientBlackBerry_h
+#define DragClientBlackBerry_h
+
+#include "DragClient.h"
+
+namespace WebCore {
+
+class DragClientBlackBerry : public DragClient {
+public:
+    virtual void willPerformDragDestinationAction(DragDestinationAction, DragData*);
+    virtual void willPerformDragSourceAction(DragSourceAction, const IntPoint&, Clipboard*);
+    virtual DragDestinationAction actionMaskForDrag(DragData*);
+    virtual DragSourceAction dragSourceActionMaskForPoint(const IntPoint&);
+    virtual void startDrag(void* dragImage, const IntPoint& dragImageOrigin, const IntPoint& eventPos, Clipboard*, Frame*, bool linkDrag = false);
+    virtual void dragControllerDestroyed();
+};
+
+} // WebCore
+
+#endif // DragClientBlackBerry_h
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to