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

Side by Side Diff: chrome/plugin/webplugin_proxy.h

Issue 160211: Merge 21437 - CPAPI (0.11) for gears drag drop.... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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
« no previous file with comments | « chrome/plugin/chrome_plugin_host.cc ('k') | chrome/plugin/webplugin_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Modified: svn:mergeinfo
Merged /trunk/src/chrome/plugin/webplugin_proxy.h:r21437
OLDNEW
1 // Copyright (c) 2006-2008 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 CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 5 #ifndef CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 6 #define CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 CPBrowsingContext GetCPBrowsingContext(); 81 CPBrowsingContext GetCPBrowsingContext();
82 82
83 // Retrieves the WebPluginProxy for the given context that was returned by 83 // Retrieves the WebPluginProxy for the given context that was returned by
84 // GetCPBrowsingContext, or NULL if not found. 84 // GetCPBrowsingContext, or NULL if not found.
85 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context); 85 static WebPluginProxy* FromCPBrowsingContext(CPBrowsingContext context);
86 86
87 // Returns a WebPluginResourceClient object given its id, or NULL if no 87 // Returns a WebPluginResourceClient object given its id, or NULL if no
88 // object with that id exists. 88 // object with that id exists.
89 WebPluginResourceClient* GetResourceClient(int id); 89 WebPluginResourceClient* GetResourceClient(int id);
90 90
91 // Returns the process id of the renderer that contains this plugin.
92 int GetRendererProcessId();
93
91 // For windowless plugins, paints the given rectangle into the local buffer. 94 // For windowless plugins, paints the given rectangle into the local buffer.
92 void Paint(const gfx::Rect& rect); 95 void Paint(const gfx::Rect& rect);
93 96
94 // Callback from the renderer to let us know that a paint occurred. 97 // Callback from the renderer to let us know that a paint occurred.
95 void DidPaint(); 98 void DidPaint();
96 99
97 // Notification received on a plugin issued resource request 100 // Notification received on a plugin issued resource request
98 // creation. 101 // creation.
99 void OnResourceCreated(int resource_id, HANDLE cookie); 102 void OnResourceCreated(int resource_id, HANDLE cookie);
100 103
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 scoped_ptr<TransportDIB> windowless_dib_; 184 scoped_ptr<TransportDIB> windowless_dib_;
182 scoped_ptr<TransportDIB> background_dib_; 185 scoped_ptr<TransportDIB> background_dib_;
183 scoped_cftyperef<CGContextRef> windowless_context_; 186 scoped_cftyperef<CGContextRef> windowless_context_;
184 scoped_cftyperef<CGContextRef> background_context_; 187 scoped_cftyperef<CGContextRef> background_context_;
185 #endif 188 #endif
186 189
187 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_; 190 ScopedRunnableMethodFactory<WebPluginProxy> runnable_method_factory_;
188 }; 191 };
189 192
190 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__ 193 #endif // CHROME_PLUGIN_PLUGIN_WEBPLUGIN_PROXY_H__
OLDNEW
« no previous file with comments | « chrome/plugin/chrome_plugin_host.cc ('k') | chrome/plugin/webplugin_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698