mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 541131: Include IPDL headers as |include protocol PFoo;|. r=cjones
This commit is contained in:
parent
2709c30d60
commit
ce2d2bb9d6
@ -35,7 +35,7 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
include protocol "PPluginInstance.ipdl";
|
||||
include protocol PPluginInstance;
|
||||
|
||||
include "mozilla/plugins/PluginMessageUtils.h";
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
include protocol "PPluginModule.ipdl";
|
||||
include protocol PPluginModule;
|
||||
|
||||
namespace mozilla {
|
||||
namespace plugins {
|
||||
|
@ -37,11 +37,11 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
include protocol "PPluginModule.ipdl";
|
||||
include protocol "PPluginScriptableObject.ipdl";
|
||||
include protocol "PBrowserStream.ipdl";
|
||||
include protocol "PPluginStream.ipdl";
|
||||
include protocol "PStreamNotify.ipdl";
|
||||
include protocol PPluginModule;
|
||||
include protocol PPluginScriptableObject;
|
||||
include protocol PBrowserStream;
|
||||
include protocol PPluginStream;
|
||||
include protocol PStreamNotify;
|
||||
|
||||
include "mozilla/plugins/PluginMessageUtils.h";
|
||||
|
||||
|
@ -37,8 +37,8 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
include protocol "PPluginIdentifier.ipdl";
|
||||
include protocol "PPluginInstance.ipdl";
|
||||
include protocol PPluginIdentifier;
|
||||
include protocol PPluginInstance;
|
||||
|
||||
include "npapi.h";
|
||||
include "mozilla/plugins/PluginMessageUtils.h";
|
||||
|
@ -37,8 +37,8 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
include protocol "PPluginInstance.ipdl";
|
||||
include protocol "PPluginIdentifier.ipdl";
|
||||
include protocol PPluginInstance;
|
||||
include protocol PPluginIdentifier;
|
||||
|
||||
include "npapi.h";
|
||||
include "npruntime.h";
|
||||
|
@ -35,7 +35,7 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
include protocol "PPluginInstance.ipdl";
|
||||
include protocol PPluginInstance;
|
||||
|
||||
include "mozilla/plugins/PluginMessageUtils.h";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
|
||||
|
||||
include protocol "PPluginInstance.ipdl";
|
||||
include protocol PPluginInstance;
|
||||
|
||||
include "npapi.h";
|
||||
|
||||
|
@ -177,9 +177,9 @@ class CxxInclude(Node):
|
||||
self.file = cxxFile
|
||||
|
||||
class ProtocolInclude(Node):
|
||||
def __init__(self, loc, protocolFile):
|
||||
def __init__(self, loc, protocolName):
|
||||
Node.__init__(self, loc)
|
||||
self.file = protocolFile
|
||||
self.file = "%s.ipdl" % protocolName
|
||||
|
||||
class UsingStmt(Node):
|
||||
def __init__(self, loc, cxxTypeSpec):
|
||||
|
@ -249,8 +249,13 @@ def p_CxxIncludeStmt(p):
|
||||
p[0] = CxxInclude(locFromTok(p, 1), p[2])
|
||||
|
||||
def p_ProtocolIncludeStmt(p):
|
||||
"""ProtocolIncludeStmt : INCLUDE PROTOCOL STRING"""
|
||||
"""ProtocolIncludeStmt : INCLUDE PROTOCOL ID
|
||||
| INCLUDE PROTOCOL STRING"""
|
||||
loc = locFromTok(p, 1)
|
||||
|
||||
if 0 <= p[3].rfind('.ipdl'):
|
||||
_error(loc, "`include protocol \"P.ipdl\"' syntax is obsolete. Use `include protocol P' instead.")
|
||||
|
||||
Parser.current.loc = loc
|
||||
inc = ProtocolInclude(loc, p[3])
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "PTestArraysSub.ipdl";
|
||||
include protocol PTestArraysSub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "PTestArrays.ipdl";
|
||||
include protocol PTestArrays;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "PTestDescSub.ipdl";
|
||||
include protocol "PTestDescSubsub.ipdl";
|
||||
include protocol PTestDescSub;
|
||||
include protocol PTestDescSubsub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "PTestDesc.ipdl";
|
||||
include protocol "PTestDescSubsub.ipdl";
|
||||
include protocol PTestDesc;
|
||||
include protocol PTestDescSubsub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
include protocol "PTestDescSub.ipdl";
|
||||
include protocol PTestDescSub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "PTestManyChildAllocsSub.ipdl";
|
||||
include protocol PTestManyChildAllocsSub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "PTestManyChildAllocs.ipdl";
|
||||
include protocol PTestManyChildAllocs;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "PTestMultiMgrsLeft.ipdl";
|
||||
include protocol "PTestMultiMgrsRight.ipdl";
|
||||
include protocol PTestMultiMgrsLeft;
|
||||
include protocol PTestMultiMgrsRight;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "PTestMultiMgrsLeft.ipdl";
|
||||
include protocol "PTestMultiMgrsRight.ipdl";
|
||||
include protocol PTestMultiMgrsLeft;
|
||||
include protocol PTestMultiMgrsRight;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "PTestMultiMgrs.ipdl";
|
||||
include protocol "PTestMultiMgrsBottom.ipdl";
|
||||
include protocol PTestMultiMgrs;
|
||||
include protocol PTestMultiMgrsBottom;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "PTestMultiMgrs.ipdl";
|
||||
include protocol "PTestMultiMgrsBottom.ipdl";
|
||||
include protocol PTestMultiMgrs;
|
||||
include protocol PTestMultiMgrsBottom;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "PTestShutdownSub.ipdl";
|
||||
include protocol PTestShutdownSub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "PTestShutdown.ipdl";
|
||||
include protocol "PTestShutdownSubsub.ipdl";
|
||||
include protocol PTestShutdown;
|
||||
include protocol PTestShutdownSubsub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "PTestShutdownSub.ipdl";
|
||||
include protocol PTestShutdownSub;
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "I.DONT.EXIST.ipdl";
|
||||
include protocol IDONTEXIST;
|
||||
|
||||
// error: nonexistent protocol ^^^
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "managerNoCtor.ipdl";
|
||||
include protocol managerNoCtor;
|
||||
|
||||
protocol managedNoCtor {
|
||||
manager managerNoCtor;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "managerNoDtor.ipdl";
|
||||
include protocol managerNoDtor;
|
||||
|
||||
protocol managedNoDtor {
|
||||
manager managerNoDtor;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "managedNoCtor.ipdl";
|
||||
include protocol managedNoCtor;
|
||||
|
||||
protocol managerNoCtor {
|
||||
manages managedNoCtor;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "managedNoDtor.ipdl";
|
||||
include protocol managedNoDtor;
|
||||
|
||||
protocol managerNoDtor {
|
||||
manages managedNoDtor;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "multimanDupMgrsMgr.ipdl";
|
||||
include protocol multimanDupMgrsMgr;
|
||||
|
||||
protocol multimanDupMgrs {
|
||||
manager multimanDupMgrsMgr or multimanDupMgrsMgr;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "multimanDupMgrs.ipdl";
|
||||
include protocol multimanDupMgrs;
|
||||
|
||||
protocol multimanDupMgrsMgr {
|
||||
manages multimanDupMgrs;
|
||||
|
5
ipc/ipdl/test/ipdl/error/oldIncludeSyntax.ipdl
Normal file
5
ipc/ipdl/test/ipdl/error/oldIncludeSyntax.ipdl
Normal file
@ -0,0 +1,5 @@
|
||||
include protocol "Foo.ipdl";
|
||||
|
||||
protocol oldIncludeSyntax {
|
||||
|
||||
};
|
@ -1,4 +1,4 @@
|
||||
include protocol "DeleteSub.ipdl";
|
||||
include protocol DeleteSub;
|
||||
|
||||
sync protocol Delete {
|
||||
manages DeleteSub;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "Delete.ipdl";
|
||||
include protocol Delete;
|
||||
|
||||
sync protocol DeleteSub {
|
||||
manager Delete;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "array_OfActorsSub.ipdl";
|
||||
include protocol array_OfActorsSub;
|
||||
|
||||
protocol array_OfActors {
|
||||
manages array_OfActorsSub;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "array_OfActors.ipdl";
|
||||
include protocol array_OfActors;
|
||||
|
||||
protocol array_OfActorsSub {
|
||||
manager array_OfActors;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "managerProtocol.ipdl";
|
||||
include protocol managerProtocol;
|
||||
|
||||
protocol managedProtocol {
|
||||
manager managerProtocol;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "managedProtocol.ipdl";
|
||||
include protocol managedProtocol;
|
||||
|
||||
// sanity check of managed/manager protocols
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
include protocol "multiManager1.ipdl";
|
||||
include protocol "multiManager2.ipdl";
|
||||
include protocol multiManager1;
|
||||
include protocol multiManager2;
|
||||
|
||||
protocol multiManaged {
|
||||
manager multiManager1 or multiManager2;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "multiManaged.ipdl";
|
||||
include protocol multiManaged;
|
||||
|
||||
protocol multiManager1 {
|
||||
manages multiManaged;
|
||||
|
@ -1,4 +1,4 @@
|
||||
include protocol "multiManaged.ipdl";
|
||||
include protocol multiManaged;
|
||||
|
||||
protocol multiManager2 {
|
||||
manages multiManaged;
|
||||
|
Loading…
Reference in New Issue
Block a user