From 30d8e44e821f476f5d2db1d338301ad95845ca12 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Tue, 24 Jun 2014 19:41:07 +0000 Subject: 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 --- mojo/views/mojo_views_export.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 mojo/views/mojo_views_export.h (limited to 'mojo/views/mojo_views_export.h') 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_ -- cgit v1.1