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

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

Issue 7105013: Convert more interfaces to the new thunk system. This goes up to and including (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/ppapi/plugin_module.cc ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 16 matching lines...) Expand all
27 #include "third_party/skia/include/core/SkBitmap.h" 27 #include "third_party/skia/include/core/SkBitmap.h"
28 #include "third_party/skia/include/core/SkRefCnt.h" 28 #include "third_party/skia/include/core/SkRefCnt.h"
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h"
30 #include "ui/gfx/rect.h" 30 #include "ui/gfx/rect.h"
31 #include "webkit/plugins/ppapi/plugin_delegate.h" 31 #include "webkit/plugins/ppapi/plugin_delegate.h"
32 32
33 typedef struct NPObject NPObject; 33 typedef struct NPObject NPObject;
34 struct PP_Var; 34 struct PP_Var;
35 struct PPB_Instance; 35 struct PPB_Instance;
36 struct PPB_Instance_Private; 36 struct PPB_Instance_Private;
37 struct PPB_Find_Dev;
38 struct PPB_Fullscreen_Dev; 37 struct PPB_Fullscreen_Dev;
39 struct PPB_Messaging; 38 struct PPB_Messaging;
40 struct PPB_Zoom_Dev; 39 struct PPB_Zoom_Dev;
41 struct PPP_Find_Dev; 40 struct PPP_Find_Dev;
42 struct PPP_Instance_Private; 41 struct PPP_Instance_Private;
43 struct PPP_Messaging; 42 struct PPP_Messaging;
44 struct PPP_Pdf; 43 struct PPP_Pdf;
45 struct PPP_Selection_Dev; 44 struct PPP_Selection_Dev;
46 struct PPP_Zoom_Dev; 45 struct PPP_Zoom_Dev;
47 46
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 ~PluginInstance(); 89 ~PluginInstance();
91 90
92 // Return a PPB_Instance interface compatible with the given interface name, 91 // Return a PPB_Instance interface compatible with the given interface name,
93 // if one is available. Returns NULL if the requested interface is 92 // if one is available. Returns NULL if the requested interface is
94 // not supported. 93 // not supported.
95 static const void* GetInterface(const char* if_name); 94 static const void* GetInterface(const char* if_name);
96 static const PPB_Instance_Private* GetPrivateInterface(); 95 static const PPB_Instance_Private* GetPrivateInterface();
97 96
98 // Returns a pointer to the interface implementing PPB_Find that is 97 // Returns a pointer to the interface implementing PPB_Find that is
99 // exposed to the plugin. 98 // exposed to the plugin.
100 static const PPB_Find_Dev* GetFindInterface();
101 static const PPB_Fullscreen_Dev* GetFullscreenInterface(); 99 static const PPB_Fullscreen_Dev* GetFullscreenInterface();
102 static const PPB_Messaging* GetMessagingInterface(); 100 static const PPB_Messaging* GetMessagingInterface();
103 static const PPB_Zoom_Dev* GetZoomInterface(); 101 static const PPB_Zoom_Dev* GetZoomInterface();
104 102
105 PluginDelegate* delegate() const { return delegate_; } 103 PluginDelegate* delegate() const { return delegate_; }
106 PluginModule* module() const { return module_.get(); } 104 PluginModule* module() const { return module_.get(); }
107 MessageChannel& message_channel() { return *message_channel_; } 105 MessageChannel& message_channel() { return *message_channel_; }
108 106
109 WebKit::WebPluginContainer* container() const { return container_; } 107 WebKit::WebPluginContainer* container() const { return container_; }
110 108
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; 477 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap;
480 NPObjectToObjectVarMap np_object_to_object_var_; 478 NPObjectToObjectVarMap np_object_to_object_var_;
481 479
482 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 480 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
483 }; 481 };
484 482
485 } // namespace ppapi 483 } // namespace ppapi
486 } // namespace webkit 484 } // namespace webkit
487 485
488 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 486 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698