diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-05 20:58:29 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-05 20:58:29 +0000 |
commit | 5036f187c5431c1afc5bac442e1d74390d7a3fa0 (patch) | |
tree | af465cf27c50860ca7773876ac7bf08b6b653875 /views/views_export.h | |
parent | 26c740c8fb36d3e59200cfab668eb9c5f7539d11 (diff) | |
download | chromium_src-5036f187c5431c1afc5bac442e1d74390d7a3fa0.zip chromium_src-5036f187c5431c1afc5bac442e1d74390d7a3fa0.tar.gz chromium_src-5036f187c5431c1afc5bac442e1d74390d7a3fa0.tar.bz2 |
Rename VIEWS_API to VIEWS_EXPORT.
R=rvargas@chromium.org
Review URL: http://codereview.chromium.org/7550038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/views_export.h')
-rw-r--r-- | views/views_export.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/views/views_export.h b/views/views_export.h new file mode 100644 index 0000000..b38c8ed --- /dev/null +++ b/views/views_export.h @@ -0,0 +1,29 @@ +// Copyright (c) 2011 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 VIEWS_VIEWS_EXPORT_H_ +#define VIEWS_VIEWS_EXPORT_H_ +#pragma once + +// Defines VIEWS_EXPORT so that functionality implemented by the Views module +// can be exported to consumers. + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(VIEWS_IMPLEMENTATION) +#define VIEWS_EXPORT __declspec(dllexport) +#else +#define VIEWS_EXPORT __declspec(dllimport) +#endif // defined(VIEWS_IMPLEMENTATION) + +#else // defined(WIN32) +#define VIEWS_EXPORT __attribute__((visibility("default"))) +#endif + +#else // defined(COMPONENT_BUILD) +#define VIEWS_EXPORT +#endif + +#endif // UI_UI_EXPORT_H_ |