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/views_init_internal.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mojo/views/views_init_internal.h (limited to 'mojo/views/views_init_internal.h') diff --git a/mojo/views/views_init_internal.h b/mojo/views/views_init_internal.h new file mode 100644 index 0000000..5ec66e7 --- /dev/null +++ b/mojo/views/views_init_internal.h @@ -0,0 +1,19 @@ +// 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_VIEWS_INIT_INTERNAL_H_ +#define MOJO_VIEWS_VIEWS_INIT_INTERNAL_H_ + +#include "mojo/views/mojo_views_export.h" + +namespace mojo { + +// This is in a separate target so that we only initialize some common state +// once. +// Do not use this, it is called internally by ViewsInit. +MOJO_VIEWS_EXPORT void InitViews(); + +} // namespace mojo + +#endif // MOJO_VIEWS_VIEWS_INIT_INTERNAL_H_ -- cgit v1.1