Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Unified Diff: webkit/glue/plugins/carbon_plugin_window_tracker_mac.h

Issue 6012002: Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/plugins/DEPS ('k') | webkit/glue/plugins/carbon_plugin_window_tracker_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/carbon_plugin_window_tracker_mac.h
===================================================================
--- webkit/glue/plugins/carbon_plugin_window_tracker_mac.h (revision 69426)
+++ webkit/glue/plugins/carbon_plugin_window_tracker_mac.h (working copy)
@@ -1,53 +0,0 @@
-// 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.
-
-#ifndef WEBKIT_GLUE_PLUGINS_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_
-#define WEBKIT_GLUE_PLUGINS_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_
-
-#include <Carbon/Carbon.h>
-#include <map>
-
-#include "base/basictypes.h"
-
-// This is really a WebPluginDelegateImpl, but that class is private to the
-// framework, and these functions are called from a dylib.
-typedef void* OpaquePluginRef;
-
-// Creates and tracks the invisible windows that are necessary for
-// Carbon-event-model plugins.
-//
-// Serves as a bridge between plugin delegate instances and the Carbon
-// interposing library. The Carbon functions we interpose work in terms of
-// WindowRefs, and we need to be able to map from those back to the plugin
-// delegates that know what we should claim about the state of the window.
-class __attribute__((visibility("default"))) CarbonPluginWindowTracker {
- public:
- CarbonPluginWindowTracker();
-
- // Returns the shared window tracker instance.
- static CarbonPluginWindowTracker* SharedInstance();
-
- // Creates a new carbon window associated with |delegate|.
- WindowRef CreateDummyWindowForDelegate(OpaquePluginRef delegate);
-
- // Returns the WebPluginDelegate associated with the given dummy window.
- OpaquePluginRef GetDelegateForDummyWindow(WindowRef window) const;
-
- // Returns the dummy window associated with |delegate|.
- WindowRef GetDummyWindowForDelegate(OpaquePluginRef delegate) const;
-
- // Destroys the dummy window for |delegate|.
- void DestroyDummyWindowForDelegate(OpaquePluginRef delegate,
- WindowRef window);
-
- private:
- typedef std::map<WindowRef, OpaquePluginRef> WindowToDelegateMap;
- typedef std::map<OpaquePluginRef, WindowRef> DelegateToWindowMap;
- WindowToDelegateMap window_to_delegate_map_;
- DelegateToWindowMap delegate_to_window_map_;
-
- DISALLOW_COPY_AND_ASSIGN(CarbonPluginWindowTracker);
-};
-
-#endif // WEBKIT_GLUE_PLUGINS_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_
« no previous file with comments | « webkit/glue/plugins/DEPS ('k') | webkit/glue/plugins/carbon_plugin_window_tracker_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698