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

Side by Side Diff: third_party/npapi/bindings/npapi_extensions.h

Issue 2827047: Make RenderView call the plugin through WebKit::WebPlugin (instead of casting... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: compile until webkit is rolled Created 10 years, 5 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
OLDNEW
1 /* Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2006-2009 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 5
6 #ifndef _NP_EXTENSIONS_H_ 6 #ifndef _NP_EXTENSIONS_H_
7 #define _NP_EXTENSIONS_H_ 7 #define _NP_EXTENSIONS_H_
8 8
9 // Use the shorter include path here so that this file can be used in non- 9 // Use the shorter include path here so that this file can be used in non-
10 // Chromium projects, such as the Native Client SDK. 10 // Chromium projects, such as the Native Client SDK.
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 1030
1031 typedef struct _NPPFindExtensions { 1031 typedef struct _NPPFindExtensions {
1032 NPPStartFindPtr startFind; 1032 NPPStartFindPtr startFind;
1033 NPPSelectFindResultPtr selectFindResult; 1033 NPPSelectFindResultPtr selectFindResult;
1034 NPPStopFindPtr stopFind; 1034 NPPStopFindPtr stopFind;
1035 } NPPFindExtensions; 1035 } NPPFindExtensions;
1036 1036
1037 /* Returns NULL if the plugin does not support find extensions. */ 1037 /* Returns NULL if the plugin does not support find extensions. */
1038 typedef NPPFindExtensions* (*NPPGetFindExtensionsPtr)(NPP instance); 1038 typedef NPPFindExtensions* (*NPPGetFindExtensionsPtr)(NPP instance);
1039 1039
1040 /* Zooms plugins. 0 means reset, -1 means zoom out, and +1 means zoom in. */ 1040 /* Zooms a plugin to the given factor. If text_only is true, then only the text
1041 * should be zoomed. */
1041 typedef NPError (*NPPZoomPtr) ( 1042 typedef NPError (*NPPZoomPtr) (
1042 NPP instance, 1043 NPP instance,
1043 int factor); 1044 float factor,
1045 bool text_only);
1044 1046
1045 typedef NPError (*NPPWidgetPropertyChangedPtr) ( 1047 typedef NPError (*NPPWidgetPropertyChangedPtr) (
1046 NPP instance, 1048 NPP instance,
1047 NPWidgetID id, 1049 NPWidgetID id,
1048 NPWidgetProperty property); 1050 NPWidgetProperty property);
1049 1051
1050 /* type of selection */ 1052 /* type of selection */
1051 typedef enum { 1053 typedef enum {
1052 NPSelectionTypeAny = 0, 1054 NPSelectionTypeAny = 0,
1053 NPSelectionTypePlainText = 1, 1055 NPSelectionTypePlainText = 1,
(...skipping 14 matching lines...) Expand all
1068 1070
1069 typedef struct _NPPExtensions { 1071 typedef struct _NPPExtensions {
1070 NPPGetPrintExtensionsPtr getPrintExtensions; 1072 NPPGetPrintExtensionsPtr getPrintExtensions;
1071 NPPGetFindExtensionsPtr getFindExtensions; 1073 NPPGetFindExtensionsPtr getFindExtensions;
1072 NPPZoomPtr zoom; 1074 NPPZoomPtr zoom;
1073 NPPWidgetPropertyChangedPtr widgetPropertyChanged; 1075 NPPWidgetPropertyChangedPtr widgetPropertyChanged;
1074 NPPGetSelectionPtr getSelection; 1076 NPPGetSelectionPtr getSelection;
1075 } NPPExtensions; 1077 } NPPExtensions;
1076 1078
1077 #endif /* _NP_EXTENSIONS_H_ */ 1079 #endif /* _NP_EXTENSIONS_H_ */
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_pepper.cc ('k') | webkit/glue/plugins/pepper_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698