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

Unified Diff: components/native_app_window/native_app_window_export.h

Issue 616253002: Extract NativeAppWindow from src/extensions Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: might fix athena. similarity=33 Created 6 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
Index: components/native_app_window/native_app_window_export.h
diff --git a/components/native_app_window/native_app_window_export.h b/components/native_app_window/native_app_window_export.h
new file mode 100644
index 0000000000000000000000000000000000000000..9edca1ce7573fa82fc72b04b94d38dca4a3e3e71
--- /dev/null
+++ b/components/native_app_window/native_app_window_export.h
@@ -0,0 +1,45 @@
+// Copyright 2014 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 COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_EXPORT_H_
+#define COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_EXPORT_H_
+
+// TODO(tapted): Enable this.
+#if 0 && defined(COMPONENT_BUILD)
+#if defined(WIN32)
+
+#if defined(NATIVE_APP_WINDOW_IMPLEMENTATION)
+#define NATIVE_APP_WINDOW_EXPORT __declspec(dllexport)
+#else
+#define NATIVE_APP_WINDOW_EXPORT __declspec(dllimport)
+#endif // defined(NATIVE_APP_WINDOW_IMPLEMENTATION)
+
+#if defined(NATIVE_APP_WINDOW_VIEWS_IMPLEMENTATION)
+#define NATIVE_APP_WINDOW_VIEWS_EXPORT __declspec(dllexport)
+#else
+#define NATIVE_APP_WINDOW_VIEWS_EXPORT __declspec(dllimport)
+#endif // defined(NATIVE_APP_WINDOW_VIEWS_IMPLEMENTATION)
+
+#else // defined(WIN32)
+
+#if defined(NATIVE_APP_WINDOW_IMPLEMENTATION)
+#define NATIVE_APP_WINDOW_EXPORT __attribute__((visibility("default")))
+#else
+#define NATIVE_APP_WINDOW_EXPORT
+#endif
+
+#if defined(NATIVE_APP_WINDOW_VIEWS_IMPLEMENTATION)
+#define NATIVE_APP_WINDOW_VIEWS_EXPORT __attribute__((visibility("default")))
+#else
+#define NATIVE_APP_WINDOW_VIEWS_EXPORT
+#endif
+
+#endif // defined(WIN32)
+
+#else // defined(COMPONENT_BUILD)
+#define NATIVE_APP_WINDOW_EXPORT
+#define NATIVE_APP_WINDOW_VIEWS_EXPORT
+#endif
+
+#endif // COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_EXPORT_H_
« no previous file with comments | « components/native_app_window/native_app_window_delegate.h ('k') | components/native_app_window/native_app_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698