| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // function should be called by the ObjectVar when it is created and | 196 // function should be called by the ObjectVar when it is created and |
| 197 // destroyed. | 197 // destroyed. |
| 198 void AddNPObjectVar(ObjectVar* object_var); | 198 void AddNPObjectVar(ObjectVar* object_var); |
| 199 void RemoveNPObjectVar(ObjectVar* object_var); | 199 void RemoveNPObjectVar(ObjectVar* object_var); |
| 200 | 200 |
| 201 // Looks up a previously registered ObjectVar for the given NPObject and | 201 // Looks up a previously registered ObjectVar for the given NPObject and |
| 202 // module. Returns NULL if there is no ObjectVar corresponding to the given | 202 // module. Returns NULL if there is no ObjectVar corresponding to the given |
| 203 // NPObject for the given module. See AddNPObjectVar above. | 203 // NPObject for the given module. See AddNPObjectVar above. |
| 204 ObjectVar* ObjectVarForNPObject(NPObject* np_object) const; | 204 ObjectVar* ObjectVarForNPObject(NPObject* np_object) const; |
| 205 | 205 |
| 206 // Returns true iff the plugin is a full-page plugin (i.e. not in an iframe or |
| 207 // embedded in a page). |
| 208 bool IsFullPagePlugin() const; |
| 209 |
| 206 private: | 210 private: |
| 207 bool LoadFindInterface(); | 211 bool LoadFindInterface(); |
| 208 bool LoadPdfInterface(); | 212 bool LoadPdfInterface(); |
| 209 bool LoadSelectionInterface(); | 213 bool LoadSelectionInterface(); |
| 210 bool LoadZoomInterface(); | 214 bool LoadZoomInterface(); |
| 211 | 215 |
| 212 // Determines if we think the plugin has focus, both content area and webkit | 216 // Determines if we think the plugin has focus, both content area and webkit |
| 213 // (see has_webkit_focus_ below). | 217 // (see has_webkit_focus_ below). |
| 214 bool PluginHasFocus() const; | 218 bool PluginHasFocus() const; |
| 215 | 219 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; | 336 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; |
| 333 NPObjectToObjectVarMap np_object_to_object_var_; | 337 NPObjectToObjectVarMap np_object_to_object_var_; |
| 334 | 338 |
| 335 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 339 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 336 }; | 340 }; |
| 337 | 341 |
| 338 } // namespace ppapi | 342 } // namespace ppapi |
| 339 } // namespace webkit | 343 } // namespace webkit |
| 340 | 344 |
| 341 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 345 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |