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

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

Issue 2413223003: Views:: Make Labels support text selection. (Closed)
Patch Set: -- Created 4 years, 1 month 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 case kColorId_ButtonEnabledColor: 542 case kColorId_ButtonEnabledColor:
543 return system_colors_[COLOR_BTNTEXT]; 543 return system_colors_[COLOR_BTNTEXT];
544 case kColorId_ButtonHoverColor: 544 case kColorId_ButtonHoverColor:
545 return kButtonHoverColor; 545 return kButtonHoverColor;
546 546
547 // Label 547 // Label
548 case kColorId_LabelEnabledColor: 548 case kColorId_LabelEnabledColor:
549 return system_colors_[COLOR_BTNTEXT]; 549 return system_colors_[COLOR_BTNTEXT];
550 case kColorId_LabelDisabledColor: 550 case kColorId_LabelDisabledColor:
551 return system_colors_[COLOR_GRAYTEXT]; 551 return system_colors_[COLOR_GRAYTEXT];
552 case kColorId_LabelTextSelectionColor:
553 return system_colors_[COLOR_HIGHLIGHTTEXT];
554 case kColorId_LabelTextSelectionBackgroundFocused:
555 return system_colors_[COLOR_HIGHLIGHT];
552 556
553 // Textfield 557 // Textfield
554 case kColorId_TextfieldDefaultColor: 558 case kColorId_TextfieldDefaultColor:
555 return system_colors_[COLOR_WINDOWTEXT]; 559 return system_colors_[COLOR_WINDOWTEXT];
556 case kColorId_TextfieldDefaultBackground: 560 case kColorId_TextfieldDefaultBackground:
557 return system_colors_[COLOR_WINDOW]; 561 return system_colors_[COLOR_WINDOW];
558 case kColorId_TextfieldReadOnlyColor: 562 case kColorId_TextfieldReadOnlyColor:
559 return system_colors_[COLOR_GRAYTEXT]; 563 return system_colors_[COLOR_GRAYTEXT];
560 case kColorId_TextfieldReadOnlyBackground: 564 case kColorId_TextfieldReadOnlyBackground:
561 return system_colors_[COLOR_3DFACE]; 565 return system_colors_[COLOR_3DFACE];
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 break; 2116 break;
2113 case LAST: 2117 case LAST:
2114 NOTREACHED(); 2118 NOTREACHED();
2115 break; 2119 break;
2116 } 2120 }
2117 theme_handles_[theme_name] = handle; 2121 theme_handles_[theme_name] = handle;
2118 return handle; 2122 return handle;
2119 } 2123 }
2120 2124
2121 } // namespace ui 2125 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698