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

Side by Side Diff: content/child/npapi/plugin_instance.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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 | « content/child/npapi/plugin_host.cc ('k') | content/child/npapi/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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 8 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
9 #define CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 9 #define CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // relative to the upper left of the screen. 108 // relative to the upper left of the screen.
109 void set_window_frame(const gfx::Rect& frame) { 109 void set_window_frame(const gfx::Rect& frame) {
110 containing_window_frame_ = frame; 110 containing_window_frame_ = frame;
111 } 111 }
112 #endif 112 #endif
113 113
114 // Returns the WebPluginResourceClient object for a stream that has become 114 // Returns the WebPluginResourceClient object for a stream that has become
115 // seekable. 115 // seekable.
116 WebPluginResourceClient* GetRangeRequest(int id); 116 WebPluginResourceClient* GetRangeRequest(int id);
117 117
118 // Have the plugin create its script object.
119 NPObject* GetPluginScriptableObject();
120
121 // Returns the form value of this instance. 118 // Returns the form value of this instance.
122 bool GetFormValue(base::string16* value); 119 bool GetFormValue(base::string16* value);
123 120
124 // If true, send the Mozilla user agent instead of Chrome's to the plugin. 121 // If true, send the Mozilla user agent instead of Chrome's to the plugin.
125 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; } 122 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; }
126 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; } 123 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; }
127 124
128 // If the plugin instance is backed by a texture, return its ID in the 125 // If the plugin instance is backed by a texture, return its ID in the
129 // compositor's namespace. Otherwise return 0. Returns 0 by default. 126 // compositor's namespace. Otherwise return 0. Returns 0 by default.
130 unsigned GetBackingTextureId(); 127 unsigned GetBackingTextureId();
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 268
272 private: 269 private:
273 scoped_refptr<PluginInstance> instance_; 270 scoped_refptr<PluginInstance> instance_;
274 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); 271 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent);
275 }; 272 };
276 #endif 273 #endif
277 274
278 } // namespace content 275 } // namespace content
279 276
280 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 277 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_host.cc ('k') | content/child/npapi/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698