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

Unified Diff: chrome/common/gfx/color_utils.cc

Issue 2929: Some initial work on compiling chrome/common/ on Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/debug_flags.cc ('k') | chrome/common/jpeg_codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gfx/color_utils.cc
===================================================================
--- chrome/common/gfx/color_utils.cc (revision 2299)
+++ chrome/common/gfx/color_utils.cc (working copy)
@@ -2,9 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "build/build_config.h"
#include <math.h>
+#if defined(OS_WIN)
#include <windows.h>
+#endif
#include "chrome/common/gfx/color_utils.h"
@@ -248,7 +251,12 @@
}
SkColor GetSysSkColor(int which) {
+#if defined(OS_WIN)
return gfx::COLORREFToSkColor(::GetSysColor(which));
+#else
+ NOTIMPLEMENTED();
+ return SK_ColorLTGRAY;
+#endif
}
} // namespace color_utils
« no previous file with comments | « chrome/common/debug_flags.cc ('k') | chrome/common/jpeg_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698