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

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

Issue 42056: Basic windowless plugins, try 2. (Closed)
Patch Set: review comments Created 11 years, 9 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
« 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Get the mimeType for this plugin stream 93 // Get the mimeType for this plugin stream
94 const std::string &mime_type() { return mime_type_; } 94 const std::string &mime_type() { return mime_type_; }
95 95
96 NPAPI::PluginLib* plugin_lib() { return plugin_; } 96 NPAPI::PluginLib* plugin_lib() { return plugin_; }
97 97
98 #if defined(OS_WIN) 98 #if defined(OS_WIN)
99 // Handles a windows native message which this PluginInstance should deal 99 // Handles a windows native message which this PluginInstance should deal
100 // with. Returns true if the event is handled, false otherwise. 100 // with. Returns true if the event is handled, false otherwise.
101 bool HandleEvent(UINT message, WPARAM wParam, LPARAM lParam); 101 bool HandleEvent(UINT message, WPARAM wParam, LPARAM lParam);
102 #elif defined(OS_LINUX)
103 bool HandleEvent(union _XEvent* event);
102 #endif 104 #endif
103 105
104 // Creates a stream for sending an URL. If notify_needed 106 // Creates a stream for sending an URL. If notify_needed
105 // is true, it will send a notification to the plugin 107 // is true, it will send a notification to the plugin
106 // when the stream is complete; otherwise it will not. 108 // when the stream is complete; otherwise it will not.
107 // Set object_url to true if the load is for the object tag's 109 // Set object_url to true if the load is for the object tag's
108 // url, or false if it's for a url that the plugin 110 // url, or false if it's for a url that the plugin
109 // fetched through NPN_GetUrl[Notify]. 111 // fetched through NPN_GetUrl[Notify].
110 PluginStreamUrl *CreateStream(int resource_id, 112 PluginStreamUrl *CreateStream(int resource_id,
111 const std::string &url, 113 const std::string &url,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // List of files created for the current plugin instance. File names are 254 // List of files created for the current plugin instance. File names are
253 // added to the list every time the NPP_StreamAsFile function is called. 255 // added to the list every time the NPP_StreamAsFile function is called.
254 std::vector<FilePath> files_created_; 256 std::vector<FilePath> files_created_;
255 257
256 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance); 258 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance);
257 }; 259 };
258 260
259 } // namespace NPAPI 261 } // namespace NPAPI
260 262
261 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ 263 #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