[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

cblu cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:52:26 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit f02878048c7bd4c5905443a188e9e412f8b6a897
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Oct 22 21:56:45 2002 +0000

    	Added protocol headers for new plug-in API.
    
            * Plugins.subproj/WebPlugin.h: Added.
            * Plugins.subproj/WebPluginContainer.h: Added.
            * Plugins.subproj/WebPluginViewFactory.h: Added.
            * WebKit.pbproj/project.pbxproj:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2416 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 1151cab..f74233c 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,5 +1,14 @@
 2002-10-22  Chris Blumenberg  <cblu at apple.com>
 
+	Added protocol headers for new plug-in API.
+
+        * Plugins.subproj/WebPlugin.h: Added.
+        * Plugins.subproj/WebPluginContainer.h: Added.
+        * Plugins.subproj/WebPluginViewFactory.h: Added.
+        * WebKit.pbproj/project.pbxproj:
+
+2002-10-22  Chris Blumenberg  <cblu at apple.com>
+
 	- Moved things around to make room for new plug-in API.
 	- Renamed WebNetscapePlugin to WebNetscapePluginPackage.
 	- Renamed WebNetscapePluginDatabase to WebPluginDatabase.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index 1151cab..f74233c 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,5 +1,14 @@
 2002-10-22  Chris Blumenberg  <cblu at apple.com>
 
+	Added protocol headers for new plug-in API.
+
+        * Plugins.subproj/WebPlugin.h: Added.
+        * Plugins.subproj/WebPluginContainer.h: Added.
+        * Plugins.subproj/WebPluginViewFactory.h: Added.
+        * WebKit.pbproj/project.pbxproj:
+
+2002-10-22  Chris Blumenberg  <cblu at apple.com>
+
 	- Moved things around to make room for new plug-in API.
 	- Renamed WebNetscapePlugin to WebNetscapePluginPackage.
 	- Renamed WebNetscapePluginDatabase to WebPluginDatabase.
diff --git a/WebKit/Plugins.subproj/WebPlugin.h b/WebKit/Plugins.subproj/WebPlugin.h
new file mode 100644
index 0000000..3fd7655
--- /dev/null
+++ b/WebKit/Plugins.subproj/WebPlugin.h
@@ -0,0 +1,65 @@
+//
+//  WebPlugin.h
+//
+//  Created by Mike Hay <mhay at apple.com> on Tue Oct 15 2002.
+//  Copyright (c) 2002 Apple Computer.  All rights reserved.
+//
+
+//
+//  About WebPlugin
+//
+//    This protocol enables the application that loads the web plugin 
+//    to control the plugin (e.g. init, start, stop, destroy).
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+ at protocol WebPlugin <NSObject>
+
+//
+//  pluginInitialize    request that the plugin perform one-time initialization.
+//
+//                      must be only called once per instance of the plugin object.
+//
+//                      must be called before any other methods in this protocol.
+//
+- (void)pluginInitialize;
+
+//
+//  pluginStart         request that the plugin start normal operation.
+//                      (e.g. drawing, playing sounds, animation)
+//
+//                      application must call pluginStart before calling pluginStop.
+//
+//                      application may call pluginStart more than once, provided
+//                      that the application has already called pluginInitialize
+//                      and that each call to pluginStart is followed by a call
+//                      to pluginStop.
+//
+- (void)pluginStart;
+
+//
+//  pluginStop          request that the plugin stop normal operation.
+//                      (e.g. drawing, playing sounds, animation)
+//
+//                      application must call pluginStart before calling pluginStop.
+//
+//                      application may call pluginStop more than once, provided
+//                      that the application has already called pluginInitialize
+//                      and that each call to pluginStop is preceded by a call
+//                      to pluginStart.
+//
+- (void)pluginStop;
+
+//
+//  pluginDestroy       request that the plugin perform cleanup and prepare to be 
+//                      destroyed.  (e.g. release memory and other resources)
+//
+//                      must be only called once per instance of the plugin object.
+//
+//                      no other methods in this interface may be called after 
+//                      the application has called pluginDestroy.
+- (void)pluginDestroy;
+                
+ at end
\ No newline at end of file
diff --git a/WebKit/Plugins.subproj/WebPluginContainer.h b/WebKit/Plugins.subproj/WebPluginContainer.h
new file mode 100644
index 0000000..ea54393
--- /dev/null
+++ b/WebKit/Plugins.subproj/WebPluginContainer.h
@@ -0,0 +1,32 @@
+//
+//  WebPluginContainer.h
+//
+//  Created by Mike Hay <mhay at apple.com> on Tue Oct 15 2002.
+//  Copyright (c) 2002 Apple Computer.  All rights reserved.
+//
+
+//
+//  About WebPluginContainer
+//
+//    This protocol enables an applet to request that its
+//    host application perform certain specific operations.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+ at protocol WebPluginContainer <NSObject>
+
+//
+//  showURL:inFrame:    plugin requests that the host app show the specified URL in the target frame.
+//
+//                      target may be nil.  if target is nil, the URL should be shown in a new window.
+//
+- (void)showURL:(NSURL *)URL inFrame:(NSString *)target;
+
+//
+//  showStatus:        plugin requests that the host app show the specified status message.
+//
+- (void)showStatus:(NSString *)message;
+        
+ at end
\ No newline at end of file
diff --git a/WebKit/Plugins.subproj/WebPluginViewFactory.h b/WebKit/Plugins.subproj/WebPluginViewFactory.h
new file mode 100644
index 0000000..76070e1
--- /dev/null
+++ b/WebKit/Plugins.subproj/WebPluginViewFactory.h
@@ -0,0 +1,89 @@
+//
+//  WebPluginViewFactory.h
+//
+//  Created by Mike Hay <mhay at apple.com> on Tue Oct 15 2002.
+//  Copyright (c) 2002 Apple Computer.  All rights reserved.
+//
+
+//
+//  About WebPluginViewFactory
+//
+//    This protocol is used to create a Cocoa view that is used as a canvas
+//    by a web plugin, to display a Java Applet or QuickTime movie, for example.
+//
+//    The view returned will be a descendant of NSView which conforms to
+//    the WebPlugin protocol.  
+//
+//    Because it is a descendant of NSView, a WebPluginView can be placed 
+//    inside other Cocoa views or windows easily.
+//
+//    The application can control the web plugin via the WebPlugin protocol.
+//
+
+#import <Cocoa/Cocoa.h>
+
+ at protocol WebPlugin;
+
+
+// 
+//  Keys Used in the Arguments Dictionary
+// 
+
+//
+//  WebPluginBaseURL ....... REQUIRED  base URL of the document containing the plugin's view.
+//  (NSURL *)
+//
+#define WebPluginBaseURLKey @"WebPluginBaseURL"
+
+//
+//  WebPluginAttributes .... REQUIRED  dictionary containing the names and values of all attributes
+//  (NSDictionary *)                   of the HTML element associated with the plugin AND the names
+//                                     and values of all parameters to be passed to the plugin  
+//                                     (e.g. PARAM elements within an APPLET element).
+//
+//                                     in the case of a conflict between names, the attributes of an
+//                                     element take precedence over any PARAMs.
+//
+//                                     all of the keys and values in this NSDictionary must be
+//                                     NSStrings.
+//
+#define WebPluginAttributesKey @"WebPluginAttributes"
+
+//
+//  WebPluginContainer ..... OPTIONAL  a Cocoa object that conforms to the WebPluginContainer protocol.
+//  (id<WebPluginContainer> *)         this object is used for callbacks from the plugin to the app.
+//
+//                                     if this argument is nil, no callbacks will occur.
+//
+#define WebPluginContainerKey @"WebPluginContainer"
+
+//
+//  WebPluginDefaultView ... OPTIONAL  an NSView object that will be used as a visual placeholder
+//  (NSView *)                         until the plugin begins drawing.
+//
+//                                     the view will be removed by the plugin immediately before the
+//                                     plugin begins drawing into the WebPluginView.
+//
+//                                     if this argument is nil, the plugin's default view will be used.
+//                                     (as an application, if you care about the appearance of this 
+//                                     space before the plugin begins drawing or if the plugin never 
+//                                     begins drawing, provide a view.)
+//
+#define WebPluginDefaultViewKey @"WebPluginDefaultView"
+
+
+
+//
+//  WebPluginViewFactory protocol
+//
+
+ at protocol WebPluginViewFactory <NSObject>
+
+// 
+//  pluginViewWithArguments:    returns an NSView object that conforms to the WebPlugin protocol
+//
++ (NSView<WebPlugin> *) pluginViewWithArguments: (NSDictionary *) args;
+
+ at end
+
+
diff --git a/WebKit/WebKit.pbproj/project.pbxproj b/WebKit/WebKit.pbproj/project.pbxproj
index 73a720a..3d055a4 100644
--- a/WebKit/WebKit.pbproj/project.pbxproj
+++ b/WebKit/WebKit.pbproj/project.pbxproj
@@ -285,6 +285,9 @@
 				83402EF8035A588900BE770A,
 				83402EFC035A58D100BE770A,
 				9345D4EC0365C5B2008635CE,
+				848DFF870365FE6A00CA2ACA,
+				848DFF880365FE6A00CA2ACA,
+				848DFF890365FE6A00CA2ACA,
 			);
 			isa = PBXHeadersBuildPhase;
 			runOnlyForDeploymentPostprocessing = 0;
@@ -1421,11 +1424,50 @@
 		};
 		848DFF430365F71500CA2ACA = {
 			children = (
+				848DFF840365FE6A00CA2ACA,
+				848DFF850365FE6A00CA2ACA,
+				848DFF860365FE6A00CA2ACA,
 			);
 			isa = PBXGroup;
 			name = "WebKit Plug-ins";
 			refType = 4;
 		};
+		848DFF840365FE6A00CA2ACA = {
+			fileEncoding = 30;
+			isa = PBXFileReference;
+			path = WebPlugin.h;
+			refType = 4;
+		};
+		848DFF850365FE6A00CA2ACA = {
+			fileEncoding = 30;
+			isa = PBXFileReference;
+			path = WebPluginContainer.h;
+			refType = 4;
+		};
+		848DFF860365FE6A00CA2ACA = {
+			fileEncoding = 30;
+			isa = PBXFileReference;
+			path = WebPluginViewFactory.h;
+			refType = 4;
+		};
+		848DFF870365FE6A00CA2ACA = {
+			fileRef = 848DFF840365FE6A00CA2ACA;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		848DFF880365FE6A00CA2ACA = {
+			fileRef = 848DFF850365FE6A00CA2ACA;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		848DFF890365FE6A00CA2ACA = {
+			fileRef = 848DFF860365FE6A00CA2ACA;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
 		84D4BFF70348EF7600CA2ACA = {
 			fileEncoding = 4;
 			isa = PBXFileReference;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list