blob: 5096870b32d09d999204e79ba37a85995897643e [file] [log] [blame]
// 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"
#if defined(OS_WIN) && !defined(USE_AURA)
#include "ui/views/widget/native_widget_win.h"
#endif
namespace views {
DefaultThemeProvider::DefaultThemeProvider() {}
DefaultThemeProvider::~DefaultThemeProvider() {}
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