| 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_
|
|
|