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

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

Issue 290573003: Make tooltips toplevel windows on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/fallback_theme.h" 5 #include "ui/native_theme/fallback_theme.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ui/gfx/color_utils.h" 9 #include "ui/gfx/color_utils.h"
10 #include "ui/native_theme/common_theme.h" 10 #include "ui/native_theme/common_theme.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 static const SkColor kTextfieldDefaultBackground = SK_ColorWHITE; 61 static const SkColor kTextfieldDefaultBackground = SK_ColorWHITE;
62 static const SkColor kTextfieldReadOnlyColor = SK_ColorDKGRAY; 62 static const SkColor kTextfieldReadOnlyColor = SK_ColorDKGRAY;
63 static const SkColor kTextfieldReadOnlyBackground = SK_ColorWHITE; 63 static const SkColor kTextfieldReadOnlyBackground = SK_ColorWHITE;
64 static const SkColor kTextfieldSelectionBackgroundFocused = 64 static const SkColor kTextfieldSelectionBackgroundFocused =
65 SkColorSetARGB(0x54, 0x60, 0xA8, 0xEB); 65 SkColorSetARGB(0x54, 0x60, 0xA8, 0xEB);
66 static const SkColor kTextfieldSelectionColor = 66 static const SkColor kTextfieldSelectionColor =
67 color_utils::AlphaBlend(SK_ColorBLACK, 67 color_utils::AlphaBlend(SK_ColorBLACK,
68 kTextfieldSelectionBackgroundFocused, 0xdd); 68 kTextfieldSelectionBackgroundFocused, 0xdd);
69 // Tooltip 69 // Tooltip
70 static const SkColor kTooltipBackground = 0xFFFFFFCC; 70 static const SkColor kTooltipBackground = 0xFFFFFFCC;
71 static const SkColor kTooltipTextColor = kLabelEnabledColor;
71 // Tree 72 // Tree
72 static const SkColor kTreeBackground = SK_ColorWHITE; 73 static const SkColor kTreeBackground = SK_ColorWHITE;
73 static const SkColor kTreeTextColor = SK_ColorBLACK; 74 static const SkColor kTreeTextColor = SK_ColorBLACK;
74 static const SkColor kTreeSelectedTextColor = SK_ColorBLACK; 75 static const SkColor kTreeSelectedTextColor = SK_ColorBLACK;
75 static const SkColor kTreeSelectionBackgroundColor = 76 static const SkColor kTreeSelectionBackgroundColor =
76 SkColorSetRGB(0xEE, 0xEE, 0xEE); 77 SkColorSetRGB(0xEE, 0xEE, 0xEE);
77 static const SkColor kTreeArrowColor = SkColorSetRGB(0x7A, 0x7A, 0x7A); 78 static const SkColor kTreeArrowColor = SkColorSetRGB(0x7A, 0x7A, 0x7A);
78 // Table 79 // Table
79 static const SkColor kTableBackground = SK_ColorWHITE; 80 static const SkColor kTableBackground = SK_ColorWHITE;
80 static const SkColor kTableTextColor = SK_ColorBLACK; 81 static const SkColor kTableTextColor = SK_ColorBLACK;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 case kColorId_TextfieldReadOnlyBackground: 183 case kColorId_TextfieldReadOnlyBackground:
183 return kTextfieldReadOnlyBackground; 184 return kTextfieldReadOnlyBackground;
184 case kColorId_TextfieldSelectionColor: 185 case kColorId_TextfieldSelectionColor:
185 return kTextfieldSelectionColor; 186 return kTextfieldSelectionColor;
186 case kColorId_TextfieldSelectionBackgroundFocused: 187 case kColorId_TextfieldSelectionBackgroundFocused:
187 return kTextfieldSelectionBackgroundFocused; 188 return kTextfieldSelectionBackgroundFocused;
188 189
189 // Tooltip 190 // Tooltip
190 case kColorId_TooltipBackground: 191 case kColorId_TooltipBackground:
191 return kTooltipBackground; 192 return kTooltipBackground;
193 case kColorId_TooltipText:
194 return kTooltipTextColor;
192 195
193 // Tree 196 // Tree
194 case kColorId_TreeBackground: 197 case kColorId_TreeBackground:
195 return kTreeBackground; 198 return kTreeBackground;
196 case kColorId_TreeText: 199 case kColorId_TreeText:
197 return kTreeTextColor; 200 return kTreeTextColor;
198 case kColorId_TreeSelectedText: 201 case kColorId_TreeSelectedText:
199 case kColorId_TreeSelectedTextUnfocused: 202 case kColorId_TreeSelectedTextUnfocused:
200 return kTreeSelectedTextColor; 203 return kTreeSelectedTextColor;
201 case kColorId_TreeSelectionBackgroundFocused: 204 case kColorId_TreeSelectionBackgroundFocused:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 return kMenuBackgroundColor; 256 return kMenuBackgroundColor;
254 case kColorId_MenuBorderColor: 257 case kColorId_MenuBorderColor:
255 NOTREACHED(); 258 NOTREACHED();
256 break; 259 break;
257 } 260 }
258 261
259 return kInvalidColorIdColor; 262 return kInvalidColorIdColor;
260 } 263 }
261 264
262 } // namespace ui 265 } // namespace ui
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698