2010-02-11 Kwang Yul Seo <skyul@company100.net>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Feb 2010 00:36:11 +0000 (00:36 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 12 Feb 2010 00:36:11 +0000 (00:36 +0000)
        Reviewed by Eric Seidel.

        [BREWMP] Add dummy Cursor
        https://bugs.webkit.org/show_bug.cgi?id=34672

        * platform/brew/CursorBrew.cpp: Added.
        (WebCore::Cursor::Cursor):
        (WebCore::Cursor::~Cursor):
        (WebCore::Cursor::operator=):
        (WebCore::dummyCursor):
        (WebCore::pointerCursor):
        (WebCore::crossCursor):
        (WebCore::handCursor):
        (WebCore::moveCursor):
        (WebCore::iBeamCursor):
        (WebCore::waitCursor):
        (WebCore::helpCursor):
        (WebCore::eastResizeCursor):
        (WebCore::northResizeCursor):
        (WebCore::northEastResizeCursor):
        (WebCore::northWestResizeCursor):
        (WebCore::southResizeCursor):
        (WebCore::southEastResizeCursor):
        (WebCore::southWestResizeCursor):
        (WebCore::westResizeCursor):
        (WebCore::northSouthResizeCursor):
        (WebCore::eastWestResizeCursor):
        (WebCore::northEastSouthWestResizeCursor):
        (WebCore::northWestSouthEastResizeCursor):
        (WebCore::columnResizeCursor):
        (WebCore::rowResizeCursor):
        (WebCore::verticalTextCursor):
        (WebCore::cellCursor):
        (WebCore::contextMenuCursor):
        (WebCore::noDropCursor):
        (WebCore::copyCursor):
        (WebCore::progressCursor):
        (WebCore::aliasCursor):
        (WebCore::noneCursor):
        (WebCore::notAllowedCursor):
        (WebCore::zoomInCursor):
        (WebCore::zoomOutCursor):
        (WebCore::middlePanningCursor):
        (WebCore::eastPanningCursor):
        (WebCore::northPanningCursor):
        (WebCore::northEastPanningCursor):
        (WebCore::northWestPanningCursor):
        (WebCore::southPanningCursor):
        (WebCore::southEastPanningCursor):
        (WebCore::southWestPanningCursor):
        (WebCore::westPanningCursor):
        (WebCore::grabCursor):
        (WebCore::grabbingCursor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@54685 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/brew/CursorBrew.cpp [new file with mode: 0644]

index 86724ab..790c1c4 100644 (file)
@@ -1,3 +1,59 @@
+2010-02-11  Kwang Yul Seo  <skyul@company100.net>
+
+        Reviewed by Eric Seidel.
+
+        [BREWMP] Add dummy Cursor
+        https://bugs.webkit.org/show_bug.cgi?id=34672
+
+        * platform/brew/CursorBrew.cpp: Added.
+        (WebCore::Cursor::Cursor):
+        (WebCore::Cursor::~Cursor):
+        (WebCore::Cursor::operator=):
+        (WebCore::dummyCursor):
+        (WebCore::pointerCursor):
+        (WebCore::crossCursor):
+        (WebCore::handCursor):
+        (WebCore::moveCursor):
+        (WebCore::iBeamCursor):
+        (WebCore::waitCursor):
+        (WebCore::helpCursor):
+        (WebCore::eastResizeCursor):
+        (WebCore::northResizeCursor):
+        (WebCore::northEastResizeCursor):
+        (WebCore::northWestResizeCursor):
+        (WebCore::southResizeCursor):
+        (WebCore::southEastResizeCursor):
+        (WebCore::southWestResizeCursor):
+        (WebCore::westResizeCursor):
+        (WebCore::northSouthResizeCursor):
+        (WebCore::eastWestResizeCursor):
+        (WebCore::northEastSouthWestResizeCursor):
+        (WebCore::northWestSouthEastResizeCursor):
+        (WebCore::columnResizeCursor):
+        (WebCore::rowResizeCursor):
+        (WebCore::verticalTextCursor):
+        (WebCore::cellCursor):
+        (WebCore::contextMenuCursor):
+        (WebCore::noDropCursor):
+        (WebCore::copyCursor):
+        (WebCore::progressCursor):
+        (WebCore::aliasCursor):
+        (WebCore::noneCursor):
+        (WebCore::notAllowedCursor):
+        (WebCore::zoomInCursor):
+        (WebCore::zoomOutCursor):
+        (WebCore::middlePanningCursor):
+        (WebCore::eastPanningCursor):
+        (WebCore::northPanningCursor):
+        (WebCore::northEastPanningCursor):
+        (WebCore::northWestPanningCursor):
+        (WebCore::southPanningCursor):
+        (WebCore::southEastPanningCursor):
+        (WebCore::southWestPanningCursor):
+        (WebCore::westPanningCursor):
+        (WebCore::grabCursor):
+        (WebCore::grabbingCursor):
+
 2010-02-11  Nate Chapin  <japhet@chromium.org>
 
         Reviewed by Dimitri Glazkov.
diff --git a/WebCore/platform/brew/CursorBrew.cpp b/WebCore/platform/brew/CursorBrew.cpp
new file mode 100644 (file)
index 0000000..3296b03
--- /dev/null
@@ -0,0 +1,320 @@
+/*
+ * Copyright (C) 2010 Company 100, Inc.
+ * Copyright (C) 2004, 2006 Apple Computer, Inc.  All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#define LOG_TAG "WebCore"
+
+#include "config.h"
+#include "Cursor.h"
+
+#include "NotImplemented.h"
+
+#include <wtf/StdLibExtras.h>
+
+namespace WebCore {
+
+Cursor::Cursor(Image*, const IntPoint&)
+{
+    notImplemented();
+}
+
+Cursor::Cursor(const Cursor&)
+{
+    notImplemented();
+}
+
+Cursor::~Cursor()
+{
+    notImplemented();
+}
+
+Cursor& Cursor::operator=(const Cursor&)
+{
+    notImplemented();
+    return *this;
+}
+
+static inline Cursor& dummyCursor()
+{
+    DEFINE_STATIC_LOCAL(Cursor, c, ());
+    return c;
+}
+
+const Cursor& pointerCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& crossCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& handCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& moveCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& iBeamCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& waitCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& helpCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& eastResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northEastResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northWestResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& southResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& southEastResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& southWestResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& westResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northSouthResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& eastWestResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northEastSouthWestResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northWestSouthEastResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& columnResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& rowResizeCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& verticalTextCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& cellCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& contextMenuCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& noDropCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& copyCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& progressCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& aliasCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& noneCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& notAllowedCursor()
+{
+    return dummyCursor();
+}
+
+const Cursor& zoomInCursor()
+{
+    return dummyCursor();
+}
+
+const Cursor& zoomOutCursor()
+{
+    return dummyCursor();
+}
+
+const Cursor& middlePanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& eastPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northEastPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& northWestPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& southPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& southEastPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& southWestPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& westPanningCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& grabCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+const Cursor& grabbingCursor()
+{
+    notImplemented();
+    return dummyCursor();
+}
+
+} // namespace WebCore