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

Unified Diff: ui/native_theme/native_theme_win.cc

Issue 1863503002: test hypothesis (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: zappity Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/native_theme/native_theme_base.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index 8539fe663c5596101958d19bfaa0a28bd1c075ad..94f907500efea54bd77193d6e786bda9c1b362e0 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -193,10 +193,6 @@ NativeThemeWin* NativeThemeWin::instance() {
gfx::Size NativeThemeWin::GetPartSize(Part part,
State state,
const ExtraParams& extra) const {
- gfx::Size part_size = CommonThemeGetPartSize(part, state, extra);
- if (!part_size.IsEmpty())
- return part_size;
-
// The GetThemePartSize call below returns the default size without
// accounting for user customization (crbug/218291).
switch (part) {
@@ -242,9 +238,6 @@ void NativeThemeWin::Paint(SkCanvas* canvas,
return;
switch (part) {
- case kComboboxArrow:
- CommonThemePaintComboboxArrow(canvas, rect);
- return;
case kMenuPopupGutter:
PaintMenuGutter(canvas, rect);
return;
@@ -464,7 +457,6 @@ void NativeThemeWin::PaintDirect(SkCanvas* canvas,
case kWindowResizeGripper:
PaintWindowResizeGripper(hdc, rect);
return;
- case kComboboxArrow:
case kSliderTrack:
case kSliderThumb:
case kMaxPart:
@@ -1708,7 +1700,6 @@ NativeThemeWin::ThemeName NativeThemeWin::GetThemeName(Part part) {
return TEXTFIELD;
case kWindowResizeGripper:
return STATUS;
- case kComboboxArrow:
case kMenuCheckBackground:
case kMenuPopupBackground:
case kMenuItemBackground:
@@ -1754,7 +1745,6 @@ int NativeThemeWin::GetWindowsPart(Part part,
return SBP_THUMBBTNVERT;
case kWindowResizeGripper:
return SP_GRIPPER;
- case kComboboxArrow:
case kInnerSpinButton:
case kMenuList:
case kMenuCheckBackground:
@@ -1948,7 +1938,6 @@ int NativeThemeWin::GetWindowsState(Part part,
NOTREACHED();
return 0;
}
- case kComboboxArrow:
case kInnerSpinButton:
case kMenuList:
case kMenuCheckBackground:
« no previous file with comments | « ui/native_theme/native_theme_base.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698