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/views_init_internal.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/views_init_internal.h')
-rw-r--r-- | mojo/views/views_init_internal.h | 19 |
1 files changed, 19 insertions, 0 deletions
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_ |