| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef UI_WM_CORE_WM_CORE_EXPORT_H_ | 5 #ifndef UI_WM_CORE_WM_CORE_EXPORT_H_ |
| 6 #define UI_WM_CORE_WM_CORE_EXPORT_H_ | 6 #define UI_WM_CORE_WM_CORE_EXPORT_H_ |
| 7 | 7 |
| 8 #include "ui/views/views_export.h" | |
| 9 | |
| 10 #if 1 | |
| 11 #define WM_CORE_EXPORT VIEWS_EXPORT | |
| 12 #else | |
| 13 | |
| 14 // Defines WM_CORE_EXPORT so that functionality implemented by the Views module | 8 // Defines WM_CORE_EXPORT so that functionality implemented by the Views module |
| 15 // can be exported to consumers. | 9 // can be exported to consumers. |
| 16 | 10 |
| 17 #if defined(COMPONENT_BUILD) | 11 #if defined(COMPONENT_BUILD) |
| 18 #if defined(WIN32) | 12 #if defined(WIN32) |
| 19 | 13 |
| 20 #if defined(WM_CORE_IMPLEMENTATION) | 14 #if defined(WM_CORE_IMPLEMENTATION) |
| 21 #define WM_CORE_EXPORT __declspec(dllexport) | 15 #define WM_CORE_EXPORT __declspec(dllexport) |
| 22 #else | 16 #else |
| 23 #define WM_CORE_EXPORT __declspec(dllimport) | 17 #define WM_CORE_EXPORT __declspec(dllimport) |
| 24 #endif // defined(WM_CORE_IMPLEMENTATION) | 18 #endif // defined(WM_CORE_IMPLEMENTATION) |
| 25 | 19 |
| 26 #else // defined(WIN32) | 20 #else // defined(WIN32) |
| 27 #if defined(WM_CORE_IMPLEMENTATION) | 21 #if defined(WM_CORE_IMPLEMENTATION) |
| 28 #define WM_CORE_EXPORT __attribute__((visibility("default"))) | 22 #define WM_CORE_EXPORT __attribute__((visibility("default"))) |
| 29 #else | 23 #else |
| 30 #define WM_CORE_EXPORT | 24 #define WM_CORE_EXPORT |
| 31 #endif | 25 #endif |
| 32 #endif | 26 #endif |
| 33 | 27 |
| 34 #else // defined(COMPONENT_BUILD) | 28 #else // defined(COMPONENT_BUILD) |
| 35 #define WM_CORE_EXPORT | 29 #define WM_CORE_EXPORT |
| 36 #endif | 30 #endif |
| 37 | 31 |
| 38 #endif | |
| 39 | |
| 40 #endif // UI_WM_CORE_WM_CORE_EXPORT_H_ | 32 #endif // UI_WM_CORE_WM_CORE_EXPORT_H_ |
| OLD | NEW |