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

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

Issue 12508006: Fix scrollbars on the edit bookmarks window and task manager under Windows classic theme. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | no next file » | 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>
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // when theming is not enabled. Support for other parts can be added 247 // when theming is not enabled. Support for other parts can be added
248 // if/when needed. 248 // if/when needed.
249 switch (part) { 249 switch (part) {
250 case kCheckbox: 250 case kCheckbox:
251 case kRadio: 251 case kRadio:
252 // TODO(rogerta): I was not able to find any API to get the default 252 // TODO(rogerta): I was not able to find any API to get the default
253 // size of these controls, so determined these values empirically. 253 // size of these controls, so determined these values empirically.
254 size.cx = 13; 254 size.cx = 13;
255 size.cy = 13; 255 size.cy = 13;
256 break; 256 break;
257 case kScrollbarDownArrow:
258 case kScrollbarLeftArrow:
259 case kScrollbarRightArrow:
260 case kScrollbarUpArrow:
261 case kScrollbarHorizontalThumb:
262 case kScrollbarVerticalThumb:
263 case kScrollbarHorizontalTrack:
264 case kScrollbarVerticalTrack:
265 size.cx = size.cy = GetSystemMetrics(SM_CXVSCROLL) /
266 ui::win::GetDeviceScaleFactor();
267 break;
257 default: 268 default:
258 size.cx = 0; 269 size.cx = 0;
259 size.cy = 0; 270 size.cy = 0;
260 break; 271 break;
261 } 272 }
262 } 273 }
263 274
264 return gfx::Size(size.cx, size.cy); 275 return gfx::Size(size.cx, size.cy);
265 } 276 }
266 277
(...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 handle = open_theme_(NULL, L"Spin"); 2071 handle = open_theme_(NULL, L"Spin");
2061 break; 2072 break;
2062 default: 2073 default:
2063 NOTREACHED(); 2074 NOTREACHED();
2064 } 2075 }
2065 theme_handles_[theme_name] = handle; 2076 theme_handles_[theme_name] = handle;
2066 return handle; 2077 return handle;
2067 } 2078 }
2068 2079
2069 } // namespace ui 2080 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698