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

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

Issue 8741006: Add exports needed for glue to build as a component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to r112585 Created 9 years 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/ppapi_plugin_instance.h ('k') | webkit/plugins/ppapi/ppb_broker_impl.h » ('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_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 #include "webkit/plugins/webkit_plugins_export.h"
16 17
17 namespace WebKit { 18 namespace WebKit {
18 struct WebPluginParams; 19 struct WebPluginParams;
19 } 20 }
20 21
21 namespace webkit { 22 namespace webkit {
22 namespace ppapi { 23 namespace ppapi {
23 24
24 class PluginDelegate; 25 class PluginDelegate;
25 class PluginInstance; 26 class PluginInstance;
26 class PluginModule; 27 class PluginModule;
27 class PPB_URLLoader_Impl; 28 class PPB_URLLoader_Impl;
28 29
29 class WebPluginImpl : public WebKit::WebPlugin { 30 class WebPluginImpl : public WebKit::WebPlugin {
30 public: 31 public:
31 WebPluginImpl(PluginModule* module, 32 WEBKIT_PLUGINS_EXPORT WebPluginImpl(
32 const WebKit::WebPluginParams& params, 33 PluginModule* module,
33 const base::WeakPtr<PluginDelegate>& plugin_delegate); 34 const WebKit::WebPluginParams& params,
35 const base::WeakPtr<PluginDelegate>& plugin_delegate);
34 36
35 private: 37 private:
36 friend class DeleteTask<WebPluginImpl>; 38 friend class DeleteTask<WebPluginImpl>;
37 39
38 virtual ~WebPluginImpl(); 40 WEBKIT_PLUGINS_EXPORT virtual ~WebPluginImpl();
39 41
40 // WebKit::WebPlugin implementation. 42 // WebKit::WebPlugin implementation.
41 virtual bool initialize(WebKit::WebPluginContainer* container); 43 virtual bool initialize(WebKit::WebPluginContainer* container);
42 virtual void destroy(); 44 virtual void destroy();
43 virtual NPObject* scriptableObject(); 45 virtual NPObject* scriptableObject();
44 virtual bool getFormValue(WebKit::WebString* value); 46 virtual bool getFormValue(WebKit::WebString* value);
45 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); 47 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect);
46 virtual void updateGeometry( 48 virtual void updateGeometry(
47 const WebKit::WebRect& frame_rect, 49 const WebKit::WebRect& frame_rect,
48 const WebKit::WebRect& clip_rect, 50 const WebKit::WebRect& clip_rect,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 scoped_refptr<PPB_URLLoader_Impl> document_loader_; 91 scoped_refptr<PPB_URLLoader_Impl> document_loader_;
90 gfx::Rect plugin_rect_; 92 gfx::Rect plugin_rect_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 94 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
93 }; 95 };
94 96
95 } // namespace ppapi 97 } // namespace ppapi
96 } // namespace webkit 98 } // namespace webkit
97 99
98 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_ 100 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.h ('k') | webkit/plugins/ppapi/ppb_broker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698