| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <uxtheme.h> | 9 #include <uxtheme.h> |
| 10 #include <vsstyle.h> | 10 #include <vsstyle.h> |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 case kMenuPopupGutter: | 250 case kMenuPopupGutter: |
| 251 CommonThemePaintMenuGutter(canvas, rect); | 251 CommonThemePaintMenuGutter(canvas, rect); |
| 252 return; | 252 return; |
| 253 case kMenuPopupSeparator: | 253 case kMenuPopupSeparator: |
| 254 CommonThemePaintMenuSeparator(canvas, rect); | 254 CommonThemePaintMenuSeparator(canvas, rect); |
| 255 return; | 255 return; |
| 256 case kMenuPopupBackground: | 256 case kMenuPopupBackground: |
| 257 CommonThemePaintMenuBackground(canvas, rect); | 257 CommonThemePaintMenuBackground(canvas, rect); |
| 258 return; | 258 return; |
| 259 case kMenuItemBackground: | 259 case kMenuItemBackground: |
| 260 CommonThemePaintMenuItemBackground(canvas, state, rect); | 260 CommonThemePaintMenuItemBackground(canvas, state, rect, extra.menu_item); |
| 261 return; | 261 return; |
| 262 default: | 262 default: |
| 263 break; | 263 break; |
| 264 } | 264 } |
| 265 | 265 |
| 266 bool needs_paint_indirect = false; | 266 bool needs_paint_indirect = false; |
| 267 if (!skia::SupportsPlatformPaint(canvas)) { | 267 if (!skia::SupportsPlatformPaint(canvas)) { |
| 268 // This block will only get hit with --enable-accelerated-drawing flag. | 268 // This block will only get hit with --enable-accelerated-drawing flag. |
| 269 needs_paint_indirect = true; | 269 needs_paint_indirect = true; |
| 270 } else { | 270 } else { |
| (...skipping 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2066 break; | 2066 break; |
| 2067 case LAST: | 2067 case LAST: |
| 2068 NOTREACHED(); | 2068 NOTREACHED(); |
| 2069 break; | 2069 break; |
| 2070 } | 2070 } |
| 2071 theme_handles_[theme_name] = handle; | 2071 theme_handles_[theme_name] = handle; |
| 2072 return handle; | 2072 return handle; |
| 2073 } | 2073 } |
| 2074 | 2074 |
| 2075 } // namespace ui | 2075 } // namespace ui |
| OLD | NEW |