OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/gfx/native_theme_win.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 "app/gfx/gdi_util.h" |
13 #include "base/gfx/rect.h" | 13 #include "base/gfx/rect.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/scoped_handle.h" | 15 #include "base/scoped_handle.h" |
16 #include "skia/ext/platform_canvas.h" | 16 #include "skia/ext/platform_canvas.h" |
17 #include "skia/ext/skia_utils_win.h" | 17 #include "skia/ext/skia_utils_win.h" |
18 #include "third_party/skia/include/core/SkShader.h" | 18 #include "third_party/skia/include/core/SkShader.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 void SetCheckerboardShader(SkPaint* paint, const RECT& align_rect) { | 22 void SetCheckerboardShader(SkPaint* paint, const RECT& align_rect) { |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 handle = open_theme_(NULL, L"Window"); | 701 handle = open_theme_(NULL, L"Window"); |
702 break; | 702 break; |
703 default: | 703 default: |
704 NOTREACHED(); | 704 NOTREACHED(); |
705 } | 705 } |
706 theme_handles_[theme_name] = handle; | 706 theme_handles_[theme_name] = handle; |
707 return handle; | 707 return handle; |
708 } | 708 } |
709 | 709 |
710 } // namespace gfx | 710 } // namespace gfx |
OLD | NEW |