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

Unified Diff: ui/views/widget/default_theme_provider.cc

Issue 15240002: Cross-platform DefaultThemeProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comment. 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/views/widget/default_theme_provider.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/default_theme_provider.cc
diff --git a/ui/views/widget/default_theme_provider.cc b/ui/views/widget/default_theme_provider.cc
deleted file mode 100644
index a04b5bf135fc81fdd3804d049e7beafd0d189ebb..0000000000000000000000000000000000000000
--- a/ui/views/widget/default_theme_provider.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 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 "ui/views/widget/default_theme_provider.h"
-
-#include "ui/base/resource/resource_bundle.h"
-#include "ui/gfx/image/image_skia.h"
-
-#if defined(OS_WIN) && !defined(USE_AURA)
-#include "ui/base/win/shell.h"
-#endif
-
-namespace views {
-
-DefaultThemeProvider::DefaultThemeProvider() {}
-
-DefaultThemeProvider::~DefaultThemeProvider() {}
-
-gfx::ImageSkia* DefaultThemeProvider::GetImageSkiaNamed(int id) const {
- return ResourceBundle::GetSharedInstance().GetImageSkiaNamed(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 ui::win::IsAeroGlassEnabled();
-#else
- return false;
-#endif
-}
-
-bool DefaultThemeProvider::HasCustomImage(int id) const {
- return false;
-}
-
-base::RefCountedMemory* DefaultThemeProvider::GetRawData(
- int id,
- ui::ScaleFactor scale_factor) const {
- return NULL;
-}
-
-} // namespace views
« no previous file with comments | « ui/views/widget/default_theme_provider.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698