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

Side by Side Diff: ui/gfx/sys_color_change_listener.h

Issue 23486010: Adds a gfx_export.h to ui/gfx and converts all code in ui/gfx to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix find and replace error. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/switches.h ('k') | ui/gfx/text_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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_
OLDNEW
« no previous file with comments | « ui/gfx/switches.h ('k') | ui/gfx/text_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698