| OLD | NEW |
| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 case kScrollbarUpArrow: | 447 case kScrollbarUpArrow: |
| 448 case kScrollbarLeftArrow: | 448 case kScrollbarLeftArrow: |
| 449 case kScrollbarRightArrow: | 449 case kScrollbarRightArrow: |
| 450 PaintScrollbarArrow(hdc, part, state, rect, extra.scrollbar_arrow); | 450 PaintScrollbarArrow(hdc, part, state, rect, extra.scrollbar_arrow); |
| 451 break; | 451 break; |
| 452 case kScrollbarHorizontalTrack: | 452 case kScrollbarHorizontalTrack: |
| 453 case kScrollbarVerticalTrack: | 453 case kScrollbarVerticalTrack: |
| 454 PaintScrollbarTrack(canvas, hdc, part, state, rect, | 454 PaintScrollbarTrack(canvas, hdc, part, state, rect, |
| 455 extra.scrollbar_track); | 455 extra.scrollbar_track); |
| 456 break; | 456 break; |
| 457 case kScrollbarCorner: |
| 458 canvas->drawColor(SK_ColorWHITE, SkXfermode::kSrc_Mode); |
| 459 break; |
| 457 case kScrollbarHorizontalThumb: | 460 case kScrollbarHorizontalThumb: |
| 458 case kScrollbarVerticalThumb: | 461 case kScrollbarVerticalThumb: |
| 459 case kScrollbarHorizontalGripper: | 462 case kScrollbarHorizontalGripper: |
| 460 case kScrollbarVerticalGripper: | 463 case kScrollbarVerticalGripper: |
| 461 PaintScrollbarThumb(hdc, part, state, rect, extra.scrollbar_thumb); | 464 PaintScrollbarThumb(hdc, part, state, rect, extra.scrollbar_thumb); |
| 462 break; | 465 break; |
| 463 case kInnerSpinButton: | 466 case kInnerSpinButton: |
| 464 PaintSpinButton(hdc, part, state, rect, extra.inner_spin); | 467 PaintSpinButton(hdc, part, state, rect, extra.inner_spin); |
| 465 break; | 468 break; |
| 466 case kTrackbarThumb: | 469 case kTrackbarThumb: |
| (...skipping 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2092 handle = open_theme_(NULL, L"Spin"); | 2095 handle = open_theme_(NULL, L"Spin"); |
| 2093 break; | 2096 break; |
| 2094 default: | 2097 default: |
| 2095 NOTREACHED(); | 2098 NOTREACHED(); |
| 2096 } | 2099 } |
| 2097 theme_handles_[theme_name] = handle; | 2100 theme_handles_[theme_name] = handle; |
| 2098 return handle; | 2101 return handle; |
| 2099 } | 2102 } |
| 2100 | 2103 |
| 2101 } // namespace ui | 2104 } // namespace ui |
| OLD | NEW |