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

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

Issue 6012002: Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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
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_GLUE_WEBPLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "gfx/native_widget_types.h" 13 #include "gfx/native_widget_types.h"
14 #include "third_party/npapi/bindings/npapi.h" 14 #include "third_party/npapi/bindings/npapi.h"
15 #include "third_party/npapi/bindings/npapi_extensions.h" 15 #include "third_party/npapi/bindings/npapi_extensions.h"
16 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h" 16 #include "third_party/WebKit/WebKit/chromium/public/WebCanvas.h"
17 #include "webkit/glue/plugins/webplugin_2d_device_delegate.h" 17 #include "webkit/plugins/npapi/webplugin_2d_device_delegate.h"
18 #include "webkit/glue/plugins/webplugin_3d_device_delegate.h" 18 #include "webkit/plugins/npapi/webplugin_3d_device_delegate.h"
19 #include "webkit/glue/plugins/webplugin_audio_device_delegate.h" 19 #include "webkit/plugins/npapi/webplugin_audio_device_delegate.h"
20 #include "webkit/glue/plugins/webplugin_file_delegate.h" 20 #include "webkit/plugins/npapi/webplugin_file_delegate.h"
21 #include "webkit/glue/plugins/webplugin_print_delegate.h" 21 #include "webkit/plugins/npapi/webplugin_print_delegate.h"
22 22
23 class FilePath; 23 class FilePath;
24 class GURL; 24 class GURL;
25 struct NPObject; 25 struct NPObject;
26 26
27 namespace WebKit { 27 namespace WebKit {
28 class WebInputEvent; 28 class WebInputEvent;
29 struct WebCursorInfo; 29 struct WebCursorInfo;
30 } 30 }
31 31
32 namespace gfx { 32 namespace gfx {
33 class Rect; 33 class Rect;
34 } 34 }
35 35
36 namespace webkit_glue { 36 namespace webkit {
37 namespace npapi {
37 38
38 class WebPlugin; 39 class WebPlugin;
39 class WebPluginResourceClient; 40 class WebPluginResourceClient;
40 41
41 // This is the interface that a plugin implementation needs to provide. 42 // This is the interface that a plugin implementation needs to provide.
42 class WebPluginDelegate : public WebPlugin2DDeviceDelegate, 43 class WebPluginDelegate : public WebPlugin2DDeviceDelegate,
43 public WebPlugin3DDeviceDelegate, 44 public WebPlugin3DDeviceDelegate,
44 public WebPluginAudioDeviceDelegate, 45 public WebPluginAudioDeviceDelegate,
45 public WebPluginPrintDelegate, 46 public WebPluginPrintDelegate,
46 public WebPluginFileDelegate { 47 public WebPluginFileDelegate {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 155
155 // Used for zooming of full page plugins. 0 means reset, while -1 means zoom 156 // Used for zooming of full page plugins. 0 means reset, while -1 means zoom
156 // out and +1 means zoom in. 157 // out and +1 means zoom in.
157 virtual void SetZoomFactor(float scale, bool text_only) {} 158 virtual void SetZoomFactor(float scale, bool text_only) {}
158 // Gets the selected text, if any. 159 // Gets the selected text, if any.
159 virtual bool HasSelection() const; 160 virtual bool HasSelection() const;
160 virtual string16 GetSelectionAsText() const; 161 virtual string16 GetSelectionAsText() const;
161 virtual string16 GetSelectionAsMarkup() const; 162 virtual string16 GetSelectionAsMarkup() const;
162 }; 163 };
163 164
164 } // namespace webkit_glue 165 } // namespace npapi
166 } // namespace webkit
165 167
166 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ 168 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/webplugin_audio_device_delegate.cc ('k') | webkit/plugins/npapi/webplugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698