Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1319)

Unified Diff: Source/core/rendering/RenderThemeChromiumLinux.cpp

Issue 738113003: Refactor RenderThemeChromiumDefault (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: FixGN build Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumLinux.h ('k') | Source/core/rendering/RenderThemeChromiumWin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderThemeChromiumLinux.cpp
diff --git a/Source/core/rendering/RenderThemeChromiumLinux.cpp b/Source/core/rendering/RenderThemeChromiumLinux.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..48f841833fea2f9dea52ff7b90c1eaee0472f54c
--- /dev/null
+++ b/Source/core/rendering/RenderThemeChromiumLinux.cpp
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "core/rendering/RenderThemeChromiumLinux.h"
+
+#include "core/UserAgentStyleSheets.h"
+
+namespace blink {
+
+PassRefPtr<RenderTheme> RenderThemeChromiumLinux::create()
+{
+ return adoptRef(new RenderThemeChromiumLinux());
+}
+
+RenderTheme& RenderTheme::theme()
+{
+ DEFINE_STATIC_REF(RenderTheme, renderTheme, (RenderThemeChromiumLinux::create()));
+ return *renderTheme;
+}
+
+String RenderThemeChromiumLinux::extraDefaultStyleSheet()
+{
+ return RenderThemeChromiumDefault::extraDefaultStyleSheet() +
+ String(themeChromiumLinuxCss, sizeof(themeChromiumLinuxCss));
+}
+
+} // namespace blink
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumLinux.h ('k') | Source/core/rendering/RenderThemeChromiumWin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698