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

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

Issue 2245143005: Move upgrade severity colors into NativeTheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 kColorId_ResultsTablePositiveSelectedText, 334 kColorId_ResultsTablePositiveSelectedText,
335 // Negative text refers to something alarming (often rendered in red), such 335 // Negative text refers to something alarming (often rendered in red), such
336 // as the stock value went down. 336 // as the stock value went down.
337 kColorId_ResultsTableNegativeText, 337 kColorId_ResultsTableNegativeText,
338 kColorId_ResultsTableNegativeHoveredText, 338 kColorId_ResultsTableNegativeHoveredText,
339 kColorId_ResultsTableNegativeSelectedText, 339 kColorId_ResultsTableNegativeSelectedText,
340 // Colors for the material spinner (aka throbber). 340 // Colors for the material spinner (aka throbber).
341 kColorId_ThrobberSpinningColor, 341 kColorId_ThrobberSpinningColor,
342 kColorId_ThrobberWaitingColor, 342 kColorId_ThrobberWaitingColor,
343 kColorId_ThrobberLightColor, 343 kColorId_ThrobberLightColor,
344 // Colors for icons that alert, e.g. upgrade reminders.
345 kColorId_AlertSeverityLow,
346 kColorId_AlertSeverityMedium,
347 kColorId_AlertSeverityHigh,
344 // TODO(benrg): move other hardcoded colors here. 348 // TODO(benrg): move other hardcoded colors here.
345 349
346 kColorId_NumColors, 350 kColorId_NumColors,
347 }; 351 };
348 352
349 // Return a color from the system theme. 353 // Return a color from the system theme.
350 virtual SkColor GetSystemColor(ColorId color_id) const = 0; 354 virtual SkColor GetSystemColor(ColorId color_id) const = 0;
351 355
352 // Returns a shared instance of the native theme that should be used for web 356 // Returns a shared instance of the native theme that should be used for web
353 // rendering. Do not use it in a normal application context (i.e. browser). 357 // rendering. Do not use it in a normal application context (i.e. browser).
(...skipping 21 matching lines...) Expand all
375 private: 379 private:
376 // Observers to notify when the native theme changes. 380 // Observers to notify when the native theme changes.
377 base::ObserverList<NativeThemeObserver> native_theme_observers_; 381 base::ObserverList<NativeThemeObserver> native_theme_observers_;
378 382
379 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 383 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
380 }; 384 };
381 385
382 } // namespace ui 386 } // namespace ui
383 387
384 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ 388 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698