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

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

Issue 1020623002: [AiS] adding positive and negative theme values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge from master Created 5 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 #ifndef UI_NATIVE_THEME_NATIVE_THEME_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 kColorId_TreeSelectionBackgroundUnfocused, 291 kColorId_TreeSelectionBackgroundUnfocused,
292 kColorId_TreeArrow, 292 kColorId_TreeArrow,
293 // Table 293 // Table
294 kColorId_TableBackground, 294 kColorId_TableBackground,
295 kColorId_TableText, 295 kColorId_TableText,
296 kColorId_TableSelectedText, 296 kColorId_TableSelectedText,
297 kColorId_TableSelectedTextUnfocused, 297 kColorId_TableSelectedTextUnfocused,
298 kColorId_TableSelectionBackgroundFocused, 298 kColorId_TableSelectionBackgroundFocused,
299 kColorId_TableSelectionBackgroundUnfocused, 299 kColorId_TableSelectionBackgroundUnfocused,
300 kColorId_TableGroupingIndicatorColor, 300 kColorId_TableGroupingIndicatorColor,
301 // Results Tables, such as the chrome omnibox. 301 // Results Tables, such as the omnibox.
302 kColorId_ResultsTableNormalBackground, 302 kColorId_ResultsTableNormalBackground,
303 kColorId_ResultsTableHoveredBackground, 303 kColorId_ResultsTableHoveredBackground,
304 kColorId_ResultsTableSelectedBackground, 304 kColorId_ResultsTableSelectedBackground,
305 kColorId_ResultsTableNormalText, 305 kColorId_ResultsTableNormalText,
306 kColorId_ResultsTableHoveredText, 306 kColorId_ResultsTableHoveredText,
307 kColorId_ResultsTableSelectedText, 307 kColorId_ResultsTableSelectedText,
308 kColorId_ResultsTableNormalDimmedText, 308 kColorId_ResultsTableNormalDimmedText,
309 kColorId_ResultsTableHoveredDimmedText, 309 kColorId_ResultsTableHoveredDimmedText,
310 kColorId_ResultsTableSelectedDimmedText, 310 kColorId_ResultsTableSelectedDimmedText,
311 kColorId_ResultsTableNormalUrl, 311 kColorId_ResultsTableNormalUrl,
312 kColorId_ResultsTableHoveredUrl, 312 kColorId_ResultsTableHoveredUrl,
313 kColorId_ResultsTableSelectedUrl, 313 kColorId_ResultsTableSelectedUrl,
314 kColorId_ResultsTableNormalDivider, 314 kColorId_ResultsTableNormalDivider,
315 kColorId_ResultsTableHoveredDivider, 315 kColorId_ResultsTableHoveredDivider,
316 kColorId_ResultsTableSelectedDivider, 316 kColorId_ResultsTableSelectedDivider,
317 kColorId_ResultsTablePositiveText,
sky 2015/03/19 23:54:31 These constants need descriptions. Positive/Negati
dschuyler 2015/03/20 02:03:53 Done.
318 kColorId_ResultsTablePositiveHoveredText,
319 kColorId_ResultsTablePositiveSelectedText,
320 kColorId_ResultsTableNegativeText,
321 kColorId_ResultsTableNegativeHoveredText,
322 kColorId_ResultsTableNegativeSelectedText,
317 // TODO(benrg): move other hardcoded colors here. 323 // TODO(benrg): move other hardcoded colors here.
318 324
319 kColorId_NumColors, 325 kColorId_NumColors,
320 }; 326 };
321 327
322 // Return a color from the system theme. 328 // Return a color from the system theme.
323 virtual SkColor GetSystemColor(ColorId color_id) const = 0; 329 virtual SkColor GetSystemColor(ColorId color_id) const = 0;
324 330
325 // Returns a shared instance of the native theme. 331 // Returns a shared instance of the native theme.
326 // The returned object should not be deleted by the caller. This function 332 // The returned object should not be deleted by the caller. This function
(...skipping 20 matching lines...) Expand all
347 private: 353 private:
348 // Observers to notify when the native theme changes. 354 // Observers to notify when the native theme changes.
349 ObserverList<NativeThemeObserver> native_theme_observers_; 355 ObserverList<NativeThemeObserver> native_theme_observers_;
350 356
351 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 357 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
352 }; 358 };
353 359
354 } // namespace ui 360 } // namespace ui
355 361
356 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ 362 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698