| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |