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

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

Issue 257008: Fix several issues around fullscreen Mac plugins:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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
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_GLUE_PLUGINS_FAKE_PLUGIN_WINDOW_TRACKER_MAC_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_FAKE_PLUGIN_WINDOW_TRACKER_MAC_H_
6 #define WEBKIT_GLUE_PLUGINS_FAKE_PLUGIN_WINDOW_TRACKER_MAC_H_ 6 #define WEBKIT_GLUE_PLUGINS_FAKE_PLUGIN_WINDOW_TRACKER_MAC_H_
7 7
8 #include <Carbon/Carbon.h> 8 #include <Carbon/Carbon.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/scoped_cftyperef.h" 11 #include "base/scoped_cftyperef.h"
12 12
13 class WebPluginDelegateImpl; 13 class WebPluginDelegateImpl;
14 14
15 // Serves as a bridge between password delegate instances and the Carbon 15 // Serves as a bridge between plugin delegate instances and the Carbon
16 // interposing library. The Carbon functions we interpose work in terms of 16 // interposing library. The Carbon functions we interpose work in terms of
17 // WindowRefs, and we need to be able to map from those back to the plugin 17 // WindowRefs, and we need to be able to map from those back to the plugin
18 // delegates that know what we should claim about the state of the world. 18 // delegates that know what we should claim about the state of the world.
19 class __attribute__((visibility("default"))) FakePluginWindowTracker { 19 class __attribute__((visibility("default"))) FakePluginWindowTracker {
20 public: 20 public:
21 FakePluginWindowTracker(); 21 FakePluginWindowTracker();
22 22
23 // Returns the shared window tracker instance. 23 // Returns the shared window tracker instance.
24 static FakePluginWindowTracker* SharedInstance(); 24 static FakePluginWindowTracker* SharedInstance();
25 25
26 // Creates a new fake window ref associated with |delegate|. 26 // Creates a new fake window ref associated with |delegate|.
27 WindowRef GenerateFakeWindowForDelegate(WebPluginDelegateImpl* delegate); 27 WindowRef GenerateFakeWindowForDelegate(WebPluginDelegateImpl* delegate);
28 28
29 // Returns the WebPluginDelegate associated with the given fake window ref. 29 // Returns the WebPluginDelegate associated with the given fake window ref.
30 const WebPluginDelegateImpl* GetDelegateForFakeWindow(WindowRef window) const; 30 const WebPluginDelegateImpl* GetDelegateForFakeWindow(WindowRef window) const;
31 31
32 // Removes the fake window ref entry for |delegate|. 32 // Removes the fake window ref entry for |delegate|.
33 void RemoveFakeWindowForDelegate(WebPluginDelegateImpl* delegate, 33 void RemoveFakeWindowForDelegate(WebPluginDelegateImpl* delegate,
34 WindowRef window); 34 WindowRef window);
35 35
36 private: 36 private:
37 scoped_cftyperef<CFMutableDictionaryRef> window_to_delegate_map_; 37 scoped_cftyperef<CFMutableDictionaryRef> window_to_delegate_map_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(FakePluginWindowTracker); 39 DISALLOW_COPY_AND_ASSIGN(FakePluginWindowTracker);
40 }; 40 };
41 41
42 #endif // WEBKIT_GLUE_PLUGINS_FAKE_PLUGIN_WINDOW_TRACKER_MAC_H_ 42 #endif // WEBKIT_GLUE_PLUGINS_FAKE_PLUGIN_WINDOW_TRACKER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698