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

Unified Diff: views/widget/default_theme_provider.cc

Issue 8562003: Revert "views: Move widget/ directory to ui/views." properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « views/widget/default_theme_provider.h ('k') | views/widget/drop_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/default_theme_provider.cc
diff --git a/views/widget/default_theme_provider.cc b/views/widget/default_theme_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6fdbb86bebd8ed753174ea5882d93a73087c74ed
--- /dev/null
+++ b/views/widget/default_theme_provider.cc
@@ -0,0 +1,50 @@
+// 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.
+
+#include "views/widget/default_theme_provider.h"
+
+#include "ui/base/resource/resource_bundle.h"
+
+#if defined(OS_WIN) && !defined(USE_AURA)
+#include "views/widget/native_widget_win.h"
+#endif
+
+namespace views {
+
+DefaultThemeProvider::DefaultThemeProvider() {}
+
+DefaultThemeProvider::~DefaultThemeProvider() {}
+
+void DefaultThemeProvider::Init(Profile* profile) {}
+
+SkBitmap* DefaultThemeProvider::GetBitmapNamed(int id) const {
+ return ResourceBundle::GetSharedInstance().GetBitmapNamed(id);
+}
+
+SkColor DefaultThemeProvider::GetColor(int id) const {
+ // Return debugging-blue.
+ return 0xff0000ff;
+}
+
+bool DefaultThemeProvider::GetDisplayProperty(int id, int* result) const {
+ return false;
+}
+
+bool DefaultThemeProvider::ShouldUseNativeFrame() const {
+#if defined(OS_WIN) && !defined(USE_AURA)
+ return NativeWidgetWin::IsAeroGlassEnabled();
+#else
+ return false;
+#endif
+}
+
+bool DefaultThemeProvider::HasCustomImage(int id) const {
+ return false;
+}
+
+RefCountedMemory* DefaultThemeProvider::GetRawData(int id) const {
+ return NULL;
+}
+
+} // namespace views
« no previous file with comments | « views/widget/default_theme_provider.h ('k') | views/widget/drop_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698