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

Unified Diff: webkit/glue/webfallbackthemeengine_impl.h

Issue 14424007: Use the default theme as the fallback UI in Blink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed static initializer Created 7 years, 7 months 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 | « ui/native_theme/native_theme_aura.cc ('k') | webkit/glue/webfallbackthemeengine_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webfallbackthemeengine_impl.h
diff --git a/webkit/glue/webfallbackthemeengine_impl.h b/webkit/glue/webfallbackthemeengine_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..08877746856769ebe03a5180580ed869489881e2
--- /dev/null
+++ b/webkit/glue/webfallbackthemeengine_impl.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2011 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.
+
+#ifndef WEBKIT_GLUE_WEBFALLBACKTHEMEENGINE_IMPL_H_
+#define WEBKIT_GLUE_WEBFALLBACKTHEMEENGINE_IMPL_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebFallbackThemeEngine.h"
+
+namespace ui {
+class FallbackTheme;
+}
+
+namespace webkit_glue {
+
+class WebFallbackThemeEngineImpl : public WebKit::WebFallbackThemeEngine {
+ public:
+ WebFallbackThemeEngineImpl();
+ virtual ~WebFallbackThemeEngineImpl();
+
+ // WebFallbackThemeEngine methods:
+ virtual WebKit::WebSize getSize(WebKit::WebFallbackThemeEngine::Part);
+ virtual void paint(
+ WebKit::WebCanvas* canvas,
+ WebKit::WebFallbackThemeEngine::Part part,
+ WebKit::WebFallbackThemeEngine::State state,
+ const WebKit::WebRect& rect,
+ const WebKit::WebFallbackThemeEngine::ExtraParams* extra_params);
+
+ private:
+ scoped_ptr<ui::FallbackTheme> theme_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebFallbackThemeEngineImpl);
+};
+
+} // namespace webkit_glue
+
+#endif // WEBKIT_GLUE_WEBFALLBACKTHEMEENGINE_IMPL_H_
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | webkit/glue/webfallbackthemeengine_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698