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

Unified Diff: mojo/public/interfaces/bindings/tests/sample_factory.mojom

Issue 472083003: Mojom cpp bindings: Enable non-nullable check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/interfaces/bindings/tests/sample_factory.mojom
diff --git a/mojo/public/interfaces/bindings/tests/sample_factory.mojom b/mojo/public/interfaces/bindings/tests/sample_factory.mojom
index 97078287b34458321c9f69e0867df63b009fcdf2..c1101d8087dcb8cd8d12ae69c60f2e79dd4364b0 100644
--- a/mojo/public/interfaces/bindings/tests/sample_factory.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_factory.mojom
@@ -12,16 +12,16 @@ module sample {
struct Request {
int32 x;
- handle<message_pipe> pipe;
- handle<message_pipe>[] more_pipes;
+ handle<message_pipe>? pipe;
+ handle<message_pipe>[]? more_pipes;
// Interfaces can be used as members.
- imported.ImportedInterface obj;
+ imported.ImportedInterface? obj;
};
struct Response {
int32 x;
- handle<message_pipe> pipe;
+ handle<message_pipe>? pipe;
};
interface NamedObject {
@@ -31,7 +31,7 @@ interface NamedObject {
[Client=FactoryClient]
interface Factory {
- DoStuff(Request request, handle<message_pipe> pipe);
+ DoStuff(Request request, handle<message_pipe>? pipe);
DoStuff2(handle<data_pipe_consumer> pipe);
CreateNamedObject(NamedObject& obj);
RequestImportedInterface(
« no previous file with comments | « mojo/public/cpp/bindings/lib/validation_errors.cc ('k') | mojo/public/interfaces/bindings/tests/sample_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698