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

Side by Side Diff: ui/gfx/color_utils.cc

Issue 1219533009: Make SysColorChangeListener Windows-only instead of having an empty shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_private_fields
Patch Set: rebase Created 5 years, 5 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
« no previous file with comments | « ui/gfx/color_utils.h ('k') | ui/gfx/gfx.gyp » ('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 #include "ui/gfx/color_utils.h" 5 #include "ui/gfx/color_utils.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 SkColor GetSysSkColor(int which) { 313 SkColor GetSysSkColor(int which) {
314 #if defined(OS_WIN) 314 #if defined(OS_WIN)
315 return skia::COLORREFToSkColor(GetSysColor(which)); 315 return skia::COLORREFToSkColor(GetSysColor(which));
316 #else 316 #else
317 NOTIMPLEMENTED(); 317 NOTIMPLEMENTED();
318 return SK_ColorLTGRAY; 318 return SK_ColorLTGRAY;
319 #endif 319 #endif
320 } 320 }
321 321
322 // OS_WIN implementation lives in sys_color_change_listener.cc
323 #if !defined(OS_WIN)
324 bool IsInvertedColorScheme() {
325 return false;
326 }
327 #endif // !defined(OS_WIN)
328
322 } // namespace color_utils 329 } // namespace color_utils
OLDNEW
« no previous file with comments | « ui/gfx/color_utils.h ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698