summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-22 21:22:05 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-22 21:22:05 +0000
commitd50940e2d32793185f0c872e73c4d70691a0257c (patch)
tree42d942feea1377a6f6d8292f8d6c13c7040706e4 /webkit/port
parent93786d86863a0fc8e83872a78ba875fd08753ae2 (diff)
downloadchromium_src-d50940e2d32793185f0c872e73c4d70691a0257c.zip
chromium_src-d50940e2d32793185f0c872e73c4d70691a0257c.tar.gz
chromium_src-d50940e2d32793185f0c872e73c4d70691a0257c.tar.bz2
Create a stub implementation for RenderTheme for Linux.
Review URL: http://codereview.chromium.org/7880 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/rendering/RenderThemeGtk.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/webkit/port/rendering/RenderThemeGtk.cpp b/webkit/port/rendering/RenderThemeGtk.cpp
new file mode 100644
index 0000000..d2f99ba
--- /dev/null
+++ b/webkit/port/rendering/RenderThemeGtk.cpp
@@ -0,0 +1,54 @@
+/*
+ * This file is part of the WebKit project.
+ *
+ * Copyright (C) 2006 Apple Computer, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ */
+
+#include "config.h"
+#include "RenderThemeWin.h"
+
+#include "Document.h"
+#include "FontSelector.h"
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+// TODO(port): This is an absolute minimal work needed to get the
+// WebCore::theme() call linking. This is guarenteed to give suboptimal
+// results, and will need rework when we care about render quality.
+class RenderThemeGtk : public RenderTheme {
+public:
+ // The only abstract method in RenderTheme (and therefore the only thing that
+ // needs to be written and for now I'm just making it a notImplemented....).
+ //
+ // AWESOME TRIVIA NOTE:
+ // third_party/WebKit/WebCore/platform/gtk/RenderThemeGtk.cpp also leaves
+ // this notImplemented().
+ virtual void systemFont(int cssValueId, Document*, FontDescription&) const {
+ notImplemented();
+ }
+};
+
+RenderTheme* theme()
+{
+ static RenderThemeGtk gtkTheme;
+ return &gtkTheme;
+}
+
+}