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

Side by Side Diff: ui/native_theme/native_theme_aura.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 (nit) Created 4 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
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_aura.h" 5 #include "ui/native_theme/native_theme_aura.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 canvas->drawPath(path, paint); 123 canvas->drawPath(path, paint);
124 } else { 124 } else {
125 canvas->drawColor(color, SkXfermode::kSrc_Mode); 125 canvas->drawColor(color, SkXfermode::kSrc_Mode);
126 } 126 }
127 } 127 }
128 128
129 void NativeThemeAura::PaintMenuItemBackground( 129 void NativeThemeAura::PaintMenuItemBackground(
130 SkCanvas* canvas, 130 SkCanvas* canvas,
131 State state, 131 State state,
132 const gfx::Rect& rect, 132 const gfx::Rect& rect,
133 const MenuListExtraParams& menu_list) const { 133 const MenuItemExtraParams& menu_item) const {
134 CommonThemePaintMenuItemBackground(canvas, state, rect); 134 CommonThemePaintMenuItemBackground(canvas, state, rect, menu_item);
135 } 135 }
136 136
137 void NativeThemeAura::PaintArrowButton(SkCanvas* canvas, 137 void NativeThemeAura::PaintArrowButton(SkCanvas* canvas,
138 const gfx::Rect& rect, 138 const gfx::Rect& rect,
139 Part direction, 139 Part direction,
140 State state) const { 140 State state) const {
141 SkColor bg_color = kTrackColor; 141 SkColor bg_color = kTrackColor;
142 // Aura-win uses slightly different arrow colors. 142 // Aura-win uses slightly different arrow colors.
143 SkColor arrow_color = gfx::kPlaceholderColor; 143 SkColor arrow_color = gfx::kPlaceholderColor;
144 switch (state) { 144 switch (state) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 State state, 235 State state,
236 const gfx::Rect& rect) const { 236 const gfx::Rect& rect) const {
237 // Overlay Scrollbar should never paint a scrollbar corner. 237 // Overlay Scrollbar should never paint a scrollbar corner.
238 DCHECK(!IsOverlayScrollbarEnabled()); 238 DCHECK(!IsOverlayScrollbarEnabled());
239 SkPaint paint; 239 SkPaint paint;
240 paint.setColor(SkColorSetRGB(0xDC, 0xDC, 0xDC)); 240 paint.setColor(SkColorSetRGB(0xDC, 0xDC, 0xDC));
241 canvas->drawIRect(RectToSkIRect(rect), paint); 241 canvas->drawIRect(RectToSkIRect(rect), paint);
242 } 242 }
243 243
244 } // namespace ui 244 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698