diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-24 19:41:07 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-24 19:41:07 +0000 |
commit | 30d8e44e821f476f5d2db1d338301ad95845ca12 (patch) | |
tree | 9208b895977187a03c157cb28828350da8e35670 /mojo/views/mojo_views_export.h | |
parent | a149bfe85b66cf3194864afb96b14e448ce70391 (diff) | |
download | chromium_src-30d8e44e821f476f5d2db1d338301ad95845ca12.zip chromium_src-30d8e44e821f476f5d2db1d338301ad95845ca12.tar.gz chromium_src-30d8e44e821f476f5d2db1d338301ad95845ca12.tar.bz2 |
A couple of changes that make views work from multiple threads
The change to TextInputFocusManager makes me sad, but is the best I
can do fow now. Will revisit ASAP.
I had to fork off the parts of ViewsInit that need to run only once into a dll. This way I can guarantee the setup only happens once.
BUG=388045
TEST=none
R=aa@chromium.org, ben@chromium.org, yukishiino@chromium.org
Review URL: https://codereview.chromium.org/354513002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/views/mojo_views_export.h')
-rw-r--r-- | mojo/views/mojo_views_export.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mojo/views/mojo_views_export.h b/mojo/views/mojo_views_export.h new file mode 100644 index 0000000..0ca8985 --- /dev/null +++ b/mojo/views/mojo_views_export.h @@ -0,0 +1,29 @@ +// 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 MOJO_VIEWS_MOJO_VIEWS_EXPORT_H_ +#define MOJO_VIEWS_MOJO_VIEWS_EXPORT_H_ + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(MOJO_VIEWS_IMPLEMENTATION) +#define MOJO_VIEWS_EXPORT __declspec(dllexport) +#else +#define MOJO_VIEWS_EXPORT __declspec(dllimport) +#endif // defined(MOJO_VIEWS_IMPLEMENTATION) + +#else // defined(WIN32) +#if defined(MOJO_VIEWS_IMPLEMENTATION) +#define MOJO_VIEWS_EXPORT __attribute__((visibility("default"))) +#else +#define MOJO_VIEWS_EXPORT +#endif +#endif + +#else // defined(COMPONENT_BUILD) +#define MOJO_VIEWS_EXPORT +#endif + +#endif // MOJO_VIEWS_MOJO_VIEWS_EXPORT_H_ |