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

Side by Side Diff: webkit/glue/webplugin.h

Issue 93116: Chrome side of using WebPluginListBuilder.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/glue/webkitclient_impl.cc ('k') | webkit/glue/webplugininfo.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_H__ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_H__
6 #define WEBKIT_GLUE_WEBPLUGIN_H__ 6 #define WEBKIT_GLUE_WEBPLUGIN_H__
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/gfx/rect.h" 13 #include "base/gfx/rect.h"
14 #include "base/gfx/native_widget_types.h" 14 #include "base/gfx/native_widget_types.h"
15 15
16 // TODO(port): this typedef is obviously incorrect on non-Windows 16 // TODO(port): this typedef is obviously incorrect on non-Windows
17 // platforms, but now a lot of code now accidentally depends on them 17 // platforms, but now a lot of code now accidentally depends on them
18 // existing. #ifdef out these declarations and fix all the users. 18 // existing. #ifdef out these declarations and fix all the users.
19 typedef void* HANDLE; 19 typedef void* HANDLE;
20 20
21 class GURL; 21 class GURL;
22 class WebFrame; 22 class WebFrame;
23 class WebPluginResourceClient; 23 class WebPluginResourceClient;
24 24
25 struct NPObject; 25 struct NPObject;
26 26
27 // Describes a mime type entry for a plugin.
28 struct WebPluginMimeType {
29 // The actual mime type.
30 std::string mime_type;
31
32 // A list of all the file extensions for this mime type.
33 std::vector<std::string> file_extensions;
34
35 // Description of the mime type.
36 std::wstring description;
37 };
38
39
40 // Describes an available NPAPI plugin.
41 struct WebPluginInfo {
42 // The name of the plugin (i.e. Flash).
43 std::wstring name;
44
45 // The path to the plugin file (DLL/bundle/library).
46 FilePath path;
47
48 // The version number of the plugin file (may be OS-specific)
49 std::wstring version;
50
51 // A description of the plugin that we get from its version info.
52 std::wstring desc;
53
54 // A list of all the mime types that this plugin supports.
55 std::vector<WebPluginMimeType> mime_types;
56 };
57
58
59 // Describes the new location for a plugin window. 27 // Describes the new location for a plugin window.
60 struct WebPluginGeometry { 28 struct WebPluginGeometry {
61 gfx::NativeView window; 29 gfx::NativeView window;
62 gfx::Rect window_rect; 30 gfx::Rect window_rect;
63 // Clip rect (include) and cutouts (excludes), relative to 31 // Clip rect (include) and cutouts (excludes), relative to
64 // window_rect origin. 32 // window_rect origin.
65 gfx::Rect clip_rect; 33 gfx::Rect clip_rect;
66 std::vector<gfx::Rect> cutout_rects; 34 std::vector<gfx::Rect> cutout_rects;
67 bool visible; 35 bool visible;
68 }; 36 };
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 bool* cancel) = 0; 137 bool* cancel) = 0;
170 virtual void DidReceiveData(const char* buffer, int length, 138 virtual void DidReceiveData(const char* buffer, int length,
171 int data_offset) = 0; 139 int data_offset) = 0;
172 virtual void DidFinishLoading() = 0; 140 virtual void DidFinishLoading() = 0;
173 virtual void DidFail() = 0; 141 virtual void DidFail() = 0;
174 virtual bool IsMultiByteResponseExpected() = 0; 142 virtual bool IsMultiByteResponseExpected() = 0;
175 }; 143 };
176 144
177 145
178 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__ 146 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H__
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.cc ('k') | webkit/glue/webplugininfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698