| 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/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 Loading... |
| 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 // Positive text refers to good (often rendered in green) text, such as the |
| 318 // stock value went up. |
| 319 kColorId_ResultsTablePositiveText, |
| 320 kColorId_ResultsTablePositiveHoveredText, |
| 321 kColorId_ResultsTablePositiveSelectedText, |
| 322 // Negative text refers to something alarming (often rendered in red), such |
| 323 // as the stock value went down. |
| 324 kColorId_ResultsTableNegativeText, |
| 325 kColorId_ResultsTableNegativeHoveredText, |
| 326 kColorId_ResultsTableNegativeSelectedText, |
| 317 // TODO(benrg): move other hardcoded colors here. | 327 // TODO(benrg): move other hardcoded colors here. |
| 318 | 328 |
| 319 kColorId_NumColors, | 329 kColorId_NumColors, |
| 320 }; | 330 }; |
| 321 | 331 |
| 322 // Return a color from the system theme. | 332 // Return a color from the system theme. |
| 323 virtual SkColor GetSystemColor(ColorId color_id) const = 0; | 333 virtual SkColor GetSystemColor(ColorId color_id) const = 0; |
| 324 | 334 |
| 325 // Returns a shared instance of the native theme. | 335 // Returns a shared instance of the native theme. |
| 326 // The returned object should not be deleted by the caller. This function | 336 // The returned object should not be deleted by the caller. This function |
| (...skipping 20 matching lines...) Expand all Loading... |
| 347 private: | 357 private: |
| 348 // Observers to notify when the native theme changes. | 358 // Observers to notify when the native theme changes. |
| 349 ObserverList<NativeThemeObserver> native_theme_observers_; | 359 ObserverList<NativeThemeObserver> native_theme_observers_; |
| 350 | 360 |
| 351 DISALLOW_COPY_AND_ASSIGN(NativeTheme); | 361 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
| 352 }; | 362 }; |
| 353 | 363 |
| 354 } // namespace ui | 364 } // namespace ui |
| 355 | 365 |
| 356 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ | 366 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ |
| OLD | NEW |