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

Side by Side Diff: ui/gfx/native_theme.h

Issue 10384007: First stab at touch optimized omnibox auto-complete per sgabriel's mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years, 7 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
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 #ifndef UI_GFX_NATIVE_THEME_H_ 5 #ifndef UI_GFX_NATIVE_THEME_H_
6 #define UI_GFX_NATIVE_THEME_H_ 6 #define UI_GFX_NATIVE_THEME_H_
7 #pragma once 7 #pragma once
8 8
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // Label 234 // Label
235 kColorId_LabelEnabledColor, 235 kColorId_LabelEnabledColor,
236 kColorId_LabelDisabledColor, 236 kColorId_LabelDisabledColor,
237 kColorId_LabelBackgroundColor, 237 kColorId_LabelBackgroundColor,
238 // Textfield 238 // Textfield
239 kColorId_TextfieldDefaultColor, 239 kColorId_TextfieldDefaultColor,
240 kColorId_TextfieldDefaultBackground, 240 kColorId_TextfieldDefaultBackground,
241 kColorId_TextfieldSelectionColor, 241 kColorId_TextfieldSelectionColor,
242 kColorId_TextfieldSelectionBackgroundFocused, 242 kColorId_TextfieldSelectionBackgroundFocused,
243 kColorId_TextfieldSelectionBackgroundUnfocused, 243 kColorId_TextfieldSelectionBackgroundUnfocused,
244 // Colors for 3D controls
245 kColorId_ThreeDLightShadow,
246 kColorId_ThreeDShadow,
244 // TODO(benrg): move other hardcoded colors here. 247 // TODO(benrg): move other hardcoded colors here.
245 }; 248 };
246 249
247 // Return a color from the system theme. 250 // Return a color from the system theme.
248 virtual SkColor GetSystemColor(ColorId color_id) const = 0; 251 virtual SkColor GetSystemColor(ColorId color_id) const = 0;
249 252
250 // Returns a shared instance of the native theme. 253 // Returns a shared instance of the native theme.
251 // The returned object should not be deleted by the caller. This function 254 // The returned object should not be deleted by the caller. This function
252 // is not thread safe and should only be called from the UI thread. 255 // is not thread safe and should only be called from the UI thread.
253 // Each port of NativeTheme should provide its own implementation of this 256 // Each port of NativeTheme should provide its own implementation of this
254 // function, returning the port's subclass. 257 // function, returning the port's subclass.
255 static const NativeTheme* instance(); 258 static const NativeTheme* instance();
256 259
257 protected: 260 protected:
258 NativeTheme() {} 261 NativeTheme() {}
259 virtual ~NativeTheme() {} 262 virtual ~NativeTheme() {}
260 263
261 static unsigned int thumb_inactive_color_; 264 static unsigned int thumb_inactive_color_;
262 static unsigned int thumb_active_color_; 265 static unsigned int thumb_active_color_;
263 static unsigned int track_color_; 266 static unsigned int track_color_;
264 267
265 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 268 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
266 }; 269 };
267 270
268 } // namespace gfx 271 } // namespace gfx
269 272
270 #endif // UI_GFX_NATIVE_THEME_H_ 273 #endif // UI_GFX_NATIVE_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698