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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 6259008: When we detect a PDF with an unsupported feature, ask the user if they want t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_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) 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
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
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_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698