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

Side by Side Diff: webkit/glue/plugins/carbon_plugin_window_tracker_mac.h

Issue 5998002: Revert "Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_PLUGINS_NPAPI_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_
6 #define WEBKIT_PLUGINS_NPAPI_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_ 6 #define WEBKIT_GLUE_PLUGINS_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_
7 7
8 #include <Carbon/Carbon.h> 8 #include <Carbon/Carbon.h>
9 #include <map> 9 #include <map>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 12
13 namespace webkit {
14 namespace npapi {
15
16 // This is really a WebPluginDelegateImpl, but that class is private to the 13 // This is really a WebPluginDelegateImpl, but that class is private to the
17 // framework, and these functions are called from a dylib. 14 // framework, and these functions are called from a dylib.
18 typedef void* OpaquePluginRef; 15 typedef void* OpaquePluginRef;
19 16
20 // Creates and tracks the invisible windows that are necessary for 17 // Creates and tracks the invisible windows that are necessary for
21 // Carbon-event-model plugins. 18 // Carbon-event-model plugins.
22 // 19 //
23 // Serves as a bridge between plugin delegate instances and the Carbon 20 // Serves as a bridge between plugin delegate instances and the Carbon
24 // interposing library. The Carbon functions we interpose work in terms of 21 // interposing library. The Carbon functions we interpose work in terms of
25 // WindowRefs, and we need to be able to map from those back to the plugin 22 // WindowRefs, and we need to be able to map from those back to the plugin
(...skipping 20 matching lines...) Expand all
46 43
47 private: 44 private:
48 typedef std::map<WindowRef, OpaquePluginRef> WindowToDelegateMap; 45 typedef std::map<WindowRef, OpaquePluginRef> WindowToDelegateMap;
49 typedef std::map<OpaquePluginRef, WindowRef> DelegateToWindowMap; 46 typedef std::map<OpaquePluginRef, WindowRef> DelegateToWindowMap;
50 WindowToDelegateMap window_to_delegate_map_; 47 WindowToDelegateMap window_to_delegate_map_;
51 DelegateToWindowMap delegate_to_window_map_; 48 DelegateToWindowMap delegate_to_window_map_;
52 49
53 DISALLOW_COPY_AND_ASSIGN(CarbonPluginWindowTracker); 50 DISALLOW_COPY_AND_ASSIGN(CarbonPluginWindowTracker);
54 }; 51 };
55 52
56 } // namespace npapi 53 #endif // WEBKIT_GLUE_PLUGINS_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_
57 } // namespace webkit
58
59 #endif // WEBKIT_PLUGINS_NPAPI_CARBON_PLUGIN_WINDOW_TRACKER_MAC_H_
OLDNEW
« 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