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

Unified Diff: ui/gfx/gfx_color_export.h

Issue 2915673003: ui/gfx: Use separate components for color_space and switches (Closed)
Patch Set: Fix windows build Created 3 years, 7 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
Index: ui/gfx/gfx_color_export.h
diff --git a/ui/gfx/gfx_color_export.h b/ui/gfx/gfx_color_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..3f103d9bef313f73502901f617c8f4eb46efe5aa
--- /dev/null
+++ b/ui/gfx/gfx_color_export.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_GFX_GFX_COLOR_EXPORT_H_
+#define UI_GFX_GFX_COLOR_EXPORT_H_
+
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(GFX_COLOR_IMPLEMENTATION)
+#define GFX_COLOR_EXPORT __declspec(dllexport)
Nico 2017/06/01 14:52:14 As mentioned in gn file, GFX_COLOR_SPACE(S?)_EXPOR
+#else
+#define GFX_COLOR_EXPORT __declspec(dllimport)
+#endif // defined(GFX_COLOR_IMPLEMENTATION)
+
+#else // defined(WIN32)
+#if defined(GFX_COLOR_IMPLEMENTATION)
+#define GFX_COLOR_EXPORT __attribute__((visibility("default")))
+#else
+#define GFX_COLOR_EXPORT
+#endif
+#endif
+
+#else // defined(COMPONENT_BUILD)
+#define GFX_COLOR_EXPORT
+#endif
+
+#endif // UI_GFX_GFX_COLOR_EXPORT_H_
« ui/gfx/BUILD.gn ('K') | « ui/gfx/color_space_win.h ('k') | ui/gfx/gfx_switches_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698