forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pepper: Add IDL support for "channel=dev".
This adds some basic support for the "channel=dev" label annotation for pepper IDL files. Design doc is at: https://docs.google.com/a/chromium.org/document/d/1Q660kK72_230gxnqtgQavMcDT5_gLgPVh_W51MXT6nk/edit TESTED=idl_tests.py, generator.py BUG=325403 Review URL: https://codereview.chromium.org/105313002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241305 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
teravest@chromium.org
committed
Dec 17, 2013
1 parent
6c62020
commit 67676f2
Showing
8 changed files
with
275 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
ppapi/generators/test_cgen_range/dev_channel_interface.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
/* Copyright 2013 The Chromium Authors. All rights reserved. | ||
* Use of this source code is governed by a BSD-style license that can be | ||
* found in the LICENSE file. | ||
*/ | ||
|
||
/* From test_cgen_range/dev_channel_interface.idl, | ||
* modified Tue Dec 3 14:58:15 2013. | ||
*/ | ||
|
||
#ifndef PPAPI_C_TEST_CGEN_RANGE_DEV_CHANNEL_INTERFACE_H_ | ||
#define PPAPI_C_TEST_CGEN_RANGE_DEV_CHANNEL_INTERFACE_H_ | ||
|
||
#include "ppapi/c/pp_macros.h" | ||
#include "ppapi/c/test_cgen_range/versions.h" | ||
|
||
#define TESTDEV_INTERFACE_1_0 "TestDev;1.0" | ||
#define TESTDEV_INTERFACE_1_2 "TestDev;1.2" | ||
#define TESTDEV_INTERFACE_1_3 "TestDev;1.3" /* dev */ | ||
#define TESTDEV_INTERFACE TESTDEV_INTERFACE_1_2 | ||
|
||
#define TESTDEVTOSTABLE_INTERFACE_1_0 "TestDevToStable;1.0" | ||
#define TESTDEVTOSTABLE_INTERFACE_1_1 "TestDevToStable;1.1" /* dev */ | ||
#define TESTDEVTOSTABLE_INTERFACE_1_2 "TestDevToStable;1.2" | ||
#define TESTDEVTOSTABLE_INTERFACE TESTDEVTOSTABLE_INTERFACE_1_2 | ||
|
||
/** | ||
* @file | ||
*/ | ||
|
||
|
||
/** | ||
* @addtogroup Interfaces | ||
* @{ | ||
*/ | ||
/** | ||
* TestDev | ||
*/ | ||
struct TestDev_1_3 { /* dev */ | ||
/** | ||
* TestDev1() | ||
*/ | ||
void (*TestDev1)(void); | ||
/** | ||
* TestDev2() | ||
*/ | ||
void (*TestDev2)(void); | ||
/** | ||
* TestDev3() | ||
*/ | ||
void (*TestDev3)(void); | ||
/** | ||
* TestDev4() | ||
*/ | ||
void (*TestDev4)(void); | ||
}; | ||
|
||
struct TestDev_1_0 { | ||
void (*TestDev1)(void); | ||
}; | ||
|
||
struct TestDev_1_2 { | ||
void (*TestDev1)(void); | ||
void (*TestDev3)(void); | ||
}; | ||
|
||
typedef struct TestDev_1_2 TestDev; | ||
|
||
/** | ||
* TestDevToStable | ||
*/ | ||
struct TestDevToStable_1_2 { | ||
/** | ||
* Foo() comment. | ||
*/ | ||
void (*Foo)(int32_t x); | ||
/** | ||
* Bar() comment. | ||
*/ | ||
void (*Bar)(int32_t x); | ||
/** | ||
* Baz() comment. | ||
*/ | ||
void (*Baz)(int32_t x); | ||
}; | ||
|
||
typedef struct TestDevToStable_1_2 TestDevToStable; | ||
|
||
struct TestDevToStable_1_0 { | ||
void (*Foo)(int32_t x); | ||
}; | ||
|
||
struct TestDevToStable_1_1 { /* dev */ | ||
void (*Foo)(int32_t x); | ||
void (*Bar)(int32_t x); | ||
void (*Baz)(int32_t x); | ||
}; | ||
/** | ||
* @} | ||
*/ | ||
|
||
#endif /* PPAPI_C_TEST_CGEN_RANGE_DEV_CHANNEL_INTERFACE_H_ */ | ||
|
67 changes: 67 additions & 0 deletions
67
ppapi/generators/test_cgen_range/dev_channel_interface.idl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* Copyright 2013 The Chromium Authors. All rights reserved. | ||
* Use of this source code is governed by a BSD-style license that can be | ||
* found in the LICENSE file. | ||
*/ | ||
|
||
label Chrome { | ||
M13 = 1.0, | ||
[channel=dev] M14 = 1.1, | ||
M15 = 1.2, | ||
[channel=dev] M16 = 1.3, | ||
M17 = 1.4 | ||
}; | ||
|
||
describe { | ||
int32_t; | ||
void; | ||
}; | ||
|
||
/** | ||
* TestDev | ||
*/ | ||
interface TestDev { | ||
/** | ||
* TestDev1() | ||
*/ | ||
void TestDev1(); | ||
|
||
/** | ||
* TestDev2() | ||
*/ | ||
[dev_version=1.1] | ||
void TestDev2(); | ||
|
||
/** | ||
* TestDev3() | ||
*/ | ||
[version=1.2] | ||
void TestDev3(); | ||
|
||
/** | ||
* TestDev4() | ||
*/ | ||
[dev_version=1.3] | ||
void TestDev4(); | ||
}; | ||
|
||
/** | ||
* TestDevToStable | ||
*/ | ||
interface TestDevToStable { | ||
/** | ||
* Foo() comment. | ||
*/ | ||
void Foo([in] int32_t x); | ||
|
||
/** | ||
* Bar() comment. | ||
*/ | ||
[dev_version=1.1, version=1.2] | ||
void Bar([in] int32_t x); | ||
|
||
/** | ||
* Baz() comment. | ||
*/ | ||
[dev_version=1.1, version=1.2] | ||
void Baz([in] int32_t x); | ||
}; |
Oops, something went wrong.