| 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_GFX_SYS_COLOR_CHANGE_LISTENER_H_ | 5 #ifndef UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_ |
| 6 #define UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_ | 6 #define UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 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/gfx/gfx_export.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 | 13 |
| 14 // Returns true only if Chrome should use an inverted color scheme - which is | 14 // Returns true only if Chrome should use an inverted color scheme - which is |
| 15 // only true if the system has high-contrast mode enabled and and is using a | 15 // only true if the system has high-contrast mode enabled and and is using a |
| 16 // light-on-dark color scheme. To be notified when this status changes, use | 16 // light-on-dark color scheme. To be notified when this status changes, use |
| 17 // ScopedSysColorChangeListener, below. | 17 // ScopedSysColorChangeListener, below. |
| 18 UI_EXPORT bool IsInvertedColorScheme(); | 18 UI_EXPORT bool IsInvertedColorScheme(); |
| 19 | 19 |
| 20 // Interface for classes that want to listen to system color changes. | 20 // Interface for classes that want to listen to system color changes. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 SysColorChangeListener* listener_; | 37 SysColorChangeListener* listener_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ScopedSysColorChangeListener); | 39 DISALLOW_COPY_AND_ASSIGN(ScopedSysColorChangeListener); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace gfx; | 42 } // namespace gfx; |
| 43 | 43 |
| 44 #endif // UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_ | 44 #endif // UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_ |
| OLD | NEW |