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

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

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/plugins/npapi/plugin_host.cc ('k') | webkit/plugins/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 WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 8 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
9 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 9 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Get/Set the WebPlugin associated with this instance 98 // Get/Set the WebPlugin associated with this instance
99 WebPlugin* webplugin() { return webplugin_; } 99 WebPlugin* webplugin() { return webplugin_; }
100 void set_web_plugin(WebPlugin* webplugin) { 100 void set_web_plugin(WebPlugin* webplugin) {
101 webplugin_ = webplugin; 101 webplugin_ = webplugin;
102 } 102 }
103 103
104 // Get the mimeType for this plugin stream 104 // Get the mimeType for this plugin stream
105 const std::string &mime_type() { return mime_type_; } 105 const std::string &mime_type() { return mime_type_; }
106 106
107 PluginLib* plugin_lib() { return plugin_; } 107 PluginLib* plugin_lib() { return plugin_.get(); }
108 108
109 #if defined(OS_MACOSX) 109 #if defined(OS_MACOSX)
110 // Get/Set the Mac NPAPI drawing and event models 110 // Get/Set the Mac NPAPI drawing and event models
111 NPDrawingModel drawing_model() { return drawing_model_; } 111 NPDrawingModel drawing_model() { return drawing_model_; }
112 void set_drawing_model(NPDrawingModel value) { drawing_model_ = value; } 112 void set_drawing_model(NPDrawingModel value) { drawing_model_ = value; }
113 NPEventModel event_model() { return event_model_; } 113 NPEventModel event_model() { return event_model_; }
114 void set_event_model(NPEventModel value) { event_model_ = value; } 114 void set_event_model(NPEventModel value) { event_model_ = value; }
115 // Updates the instance's tracking of the location of the plugin location 115 // Updates the instance's tracking of the location of the plugin location
116 // relative to the upper left of the screen. 116 // relative to the upper left of the screen.
117 void set_plugin_origin(const gfx::Point& origin) { plugin_origin_ = origin; } 117 void set_plugin_origin(const gfx::Point& origin) { plugin_origin_ = origin; }
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 private: 365 private:
366 scoped_refptr<PluginInstance> instance_; 366 scoped_refptr<PluginInstance> instance_;
367 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); 367 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent);
368 }; 368 };
369 #endif 369 #endif
370 370
371 } // namespace npapi 371 } // namespace npapi
372 } // namespace webkit 372 } // namespace webkit
373 373
374 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 374 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_host.cc ('k') | webkit/plugins/npapi/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698