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

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

Issue 291001: Moved Pepper delegate definition to chrome\renderer to allow it to use... (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
« no previous file with comments | « webkit/glue/plugins/plugin_host.cc ('k') | webkit/glue/plugins/plugin_instance.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // TODO: Need to deal with NPAPI's NPSavedData. 5 // TODO: Need to deal with NPAPI's NPSavedData.
6 // I haven't seen plugins use it yet. 6 // I haven't seen plugins use it yet.
7 7
8 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ 8 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__
9 #define WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ 9 #define WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 NPAPI::PluginLib* plugin_lib() { return plugin_; } 101 NPAPI::PluginLib* plugin_lib() { return plugin_; }
102 102
103 #if defined(OS_MACOSX) 103 #if defined(OS_MACOSX)
104 // Get/Set the Mac NPAPI drawing and event models 104 // Get/Set the Mac NPAPI drawing and event models
105 int drawing_model() { return drawing_model_; } 105 int drawing_model() { return drawing_model_; }
106 void set_drawing_model(int value) { drawing_model_ = value; } 106 void set_drawing_model(int value) { drawing_model_ = value; }
107 int event_model() { return event_model_; } 107 int event_model() { return event_model_; }
108 void set_event_model(int value) { event_model_ = value; } 108 void set_event_model(int value) { event_model_ = value; }
109 #endif 109 #endif
110 110
111 #if defined(PEPPER_APIS_ENABLED)
112 NPError InitializeRenderContext(NPRenderType type,
113 NPRenderContext* context);
114 NPError FlushRenderContext(NPRenderContext* context,
115 NPFlushRenderContextCallbackPtr callback,
116 void* userData);
117
118 #endif // defined(PEPPER_APIS_ENABLED)
119
120 // Creates a stream for sending an URL. If notify_needed 111 // Creates a stream for sending an URL. If notify_needed
121 // is true, it will send a notification to the plugin 112 // is true, it will send a notification to the plugin
122 // when the stream is complete; otherwise it will not. 113 // when the stream is complete; otherwise it will not.
123 // Set object_url to true if the load is for the object tag's 114 // Set object_url to true if the load is for the object tag's
124 // url, or false if it's for a url that the plugin 115 // url, or false if it's for a url that the plugin
125 // fetched through NPN_GetUrl[Notify]. 116 // fetched through NPN_GetUrl[Notify].
126 PluginStreamUrl* CreateStream(int resource_id, 117 PluginStreamUrl* CreateStream(int resource_id,
127 const GURL& url, 118 const GURL& url,
128 const std::string& mime_type, 119 const std::string& mime_type,
129 bool notify_needed, 120 bool notify_needed,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // List of files created for the current plugin instance. File names are 250 // List of files created for the current plugin instance. File names are
260 // added to the list every time the NPP_StreamAsFile function is called. 251 // added to the list every time the NPP_StreamAsFile function is called.
261 std::vector<FilePath> files_created_; 252 std::vector<FilePath> files_created_;
262 253
263 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance); 254 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance);
264 }; 255 };
265 256
266 } // namespace NPAPI 257 } // namespace NPAPI
267 258
268 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ 259 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_host.cc ('k') | webkit/glue/plugins/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698