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

Side by Side Diff: ui/native_theme/native_theme_win.cc

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/win/window_impl.cc ('k') | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/native_theme/native_theme_win.h" 5 #include "ui/native_theme/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/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_handle.h" 14 #include "base/memory/scoped_handle.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/win/scoped_gdi_object.h" 16 #include "base/win/scoped_gdi_object.h"
17 #include "base/win/scoped_hdc.h" 17 #include "base/win/scoped_hdc.h"
18 #include "base/win/scoped_select_object.h" 18 #include "base/win/scoped_select_object.h"
19 #include "base/win/windows_version.h" 19 #include "base/win/windows_version.h"
20 #include "skia/ext/bitmap_platform_device.h" 20 #include "skia/ext/bitmap_platform_device.h"
21 #include "skia/ext/platform_canvas.h" 21 #include "skia/ext/platform_canvas.h"
22 #include "skia/ext/skia_utils_win.h" 22 #include "skia/ext/skia_utils_win.h"
23 #include "third_party/skia/include/core/SkCanvas.h" 23 #include "third_party/skia/include/core/SkCanvas.h"
24 #include "third_party/skia/include/core/SkColorPriv.h" 24 #include "third_party/skia/include/core/SkColorPriv.h"
25 #include "third_party/skia/include/core/SkShader.h" 25 #include "third_party/skia/include/core/SkShader.h"
26 #include "ui/gfx/color_utils.h" 26 #include "ui/gfx/color_utils.h"
27 #include "ui/gfx/dpi_win.h"
28 #include "ui/gfx/gdi_util.h" 27 #include "ui/gfx/gdi_util.h"
29 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
30 #include "ui/gfx/rect_conversions.h" 29 #include "ui/gfx/rect_conversions.h"
31 #include "ui/gfx/sys_color_change_listener.h" 30 #include "ui/gfx/sys_color_change_listener.h"
31 #include "ui/gfx/win/dpi.h"
32 #include "ui/native_theme/common_theme.h" 32 #include "ui/native_theme/common_theme.h"
33 33
34 // This was removed from Winvers.h but is still used. 34 // This was removed from Winvers.h but is still used.
35 #if !defined(COLOR_MENUHIGHLIGHT) 35 #if !defined(COLOR_MENUHIGHLIGHT)
36 #define COLOR_MENUHIGHLIGHT 29 36 #define COLOR_MENUHIGHLIGHT 29
37 #endif 37 #endif
38 38
39 namespace { 39 namespace {
40 40
41 // TODO: Obtain the correct colors using GetSysColor. 41 // TODO: Obtain the correct colors using GetSysColor.
(...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 handle = open_theme_(NULL, L"Spin"); 2089 handle = open_theme_(NULL, L"Spin");
2090 break; 2090 break;
2091 default: 2091 default:
2092 NOTREACHED(); 2092 NOTREACHED();
2093 } 2093 }
2094 theme_handles_[theme_name] = handle; 2094 theme_handles_[theme_name] = handle;
2095 return handle; 2095 return handle;
2096 } 2096 }
2097 2097
2098 } // namespace ui 2098 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/win/window_impl.cc ('k') | ui/surface/accelerated_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698