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

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

Issue 1661673004: Enables hot-tracking for overflow extension buttons in the app menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restores hot-tracking of extension buttons in app menu with MD (win build) Created 4 years, 10 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
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 <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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698