| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/gfx/native_theme.h" | 5 #include "base/gfx/native_theme.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <uxtheme.h> | 8 #include <uxtheme.h> |
| 9 #include <vsstyle.h> | 9 #include <vsstyle.h> |
| 10 #include <vssym32.h> | 10 #include <vssym32.h> |
| 11 | 11 |
| 12 #include "base/gfx/gdi_util.h" | 12 #include "base/gfx/gdi_util.h" |
| 13 #include "base/gfx/platform_canvas_win.h" | |
| 14 #include "base/gfx/skia_utils.h" | 13 #include "base/gfx/skia_utils.h" |
| 15 #include "base/gfx/rect.h" | 14 #include "base/gfx/rect.h" |
| 16 #include "base/logging.h" | 15 #include "base/logging.h" |
| 17 #include "base/scoped_handle.h" | 16 #include "base/scoped_handle.h" |
| 17 #include "skia/ext/platform_canvas.h" |
| 18 #include "skia/include/SkShader.h" | 18 #include "skia/include/SkShader.h" |
| 19 | 19 |
| 20 namespace gfx { | 20 namespace gfx { |
| 21 | 21 |
| 22 /* static */ | 22 /* static */ |
| 23 const NativeTheme* NativeTheme::instance() { | 23 const NativeTheme* NativeTheme::instance() { |
| 24 // The global NativeTheme instance. | 24 // The global NativeTheme instance. |
| 25 static const NativeTheme s_native_theme; | 25 static const NativeTheme s_native_theme; |
| 26 return &s_native_theme; | 26 return &s_native_theme; |
| 27 } | 27 } |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 break; | 603 break; |
| 604 default: | 604 default: |
| 605 NOTREACHED(); | 605 NOTREACHED(); |
| 606 } | 606 } |
| 607 theme_handles_[theme_name] = handle; | 607 theme_handles_[theme_name] = handle; |
| 608 return handle; | 608 return handle; |
| 609 } | 609 } |
| 610 | 610 |
| 611 } // namespace gfx | 611 } // namespace gfx |
| 612 | 612 |
| OLD | NEW |