diff options
author | stuartmorgan@google.com <stuartmorgan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 22:03:17 +0000 |
---|---|---|
committer | stuartmorgan@google.com <stuartmorgan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 22:03:17 +0000 |
commit | f3ef7b1c17b3f9a1db703a7b099e697e401d21a9 (patch) | |
tree | c6252141eeb6637bb2a4630d1735bbf965933a56 /chrome/common/plugin_carbon_interpose_constants_mac.cc | |
parent | 1ef7ccfa171759ab86cdf6b98cf5145b9db688b0 (diff) | |
download | chromium_src-f3ef7b1c17b3f9a1db703a7b099e697e401d21a9.zip chromium_src-f3ef7b1c17b3f9a1db703a7b099e697e401d21a9.tar.gz chromium_src-f3ef7b1c17b3f9a1db703a7b099e697e401d21a9.tar.bz2 |
Set up a interposing library for Carbon calls made by plugins.
This gives us a library that's inserted into plugin process via DYLD_INSERT_LIBRARIES to intercept Carbon calls, and moves the window/process activation handling into that library (based on Carbon window activation/deactivation calls, rather than polling the front window). Over time we'll interpose more, but this gives us the foundation.
This fixes both the "window loses focus when loading a page with plugins" and "can't click on YouTube controls" bugs.
BUG=18203,18553
TEST=Clicking on Flash plugins should work much more reliably, opening a page with a plugin shouldn't cause the window to lose focus.
Review URL: http://codereview.chromium.org/164100
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_carbon_interpose_constants_mac.cc')
-rw-r--r-- | chrome/common/plugin_carbon_interpose_constants_mac.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/common/plugin_carbon_interpose_constants_mac.cc b/chrome/common/plugin_carbon_interpose_constants_mac.cc new file mode 100644 index 0000000..26f0edc --- /dev/null +++ b/chrome/common/plugin_carbon_interpose_constants_mac.cc @@ -0,0 +1,13 @@ +// Copyright (c) 2009 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. + +#include "chrome/common/plugin_carbon_interpose_constants_mac.h" + +namespace plugin_interpose_strings { + +const char kDYLDInsertLibrariesKey[] = "DYLD_INSERT_LIBRARIES"; +const char kInterposeLibraryPath[] = + "@executable_path/plugin_carbon_interpose.dylib"; + +} // namespace plugin_interpose_strings |