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

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: Fix bad rebase. Created 4 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // relative to the upper left of the screen. 114 // relative to the upper left of the screen.
115 void set_window_frame(const gfx::Rect& frame) { 115 void set_window_frame(const gfx::Rect& frame) {
116 containing_window_frame_ = frame; 116 containing_window_frame_ = frame;
117 } 117 }
118 #endif 118 #endif
119 119
120 // Returns the WebPluginResourceClient object for a stream that has become 120 // Returns the WebPluginResourceClient object for a stream that has become
121 // seekable. 121 // seekable.
122 WebPluginResourceClient* GetRangeRequest(int id); 122 WebPluginResourceClient* GetRangeRequest(int id);
123 123
124 // Have the plugin create its script object.
125 NPObject* GetPluginScriptableObject();
126
127 // Returns the form value of this instance. 124 // Returns the form value of this instance.
128 bool GetFormValue(base::string16* value); 125 bool GetFormValue(base::string16* value);
129 126
130 // If true, send the Mozilla user agent instead of Chrome's to the plugin. 127 // If true, send the Mozilla user agent instead of Chrome's to the plugin.
131 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; } 128 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; }
132 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; } 129 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; }
133 130
134 // If the plugin instance is backed by a texture, return its ID in the 131 // If the plugin instance is backed by a texture, return its ID in the
135 // compositor's namespace. Otherwise return 0. Returns 0 by default. 132 // compositor's namespace. Otherwise return 0. Returns 0 by default.
136 unsigned GetBackingTextureId(); 133 unsigned GetBackingTextureId();
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 275
279 private: 276 private:
280 scoped_refptr<PluginInstance> instance_; 277 scoped_refptr<PluginInstance> instance_;
281 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); 278 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent);
282 }; 279 };
283 #endif 280 #endif
284 281
285 } // namespace content 282 } // namespace content
286 283
287 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 284 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698