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

Unified Diff: third_party/mojo/src/mojo/public/dart/lib/src/union.dart

Issue 1179733005: Update mojo sdk to rev bdbb0c7e396fc4044a8b194058d7a7e529715286 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update CommandBufferImpl (Binding::OnConnectionError is no more) Created 5 years, 6 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: third_party/mojo/src/mojo/public/dart/lib/src/union.dart
diff --git a/third_party/mojo/src/mojo/public/dart/lib/src/union.dart b/third_party/mojo/src/mojo/public/dart/lib/src/union.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ce5e4d763726a55a500b37079a9b006c47ca35fc
--- /dev/null
+++ b/third_party/mojo/src/mojo/public/dart/lib/src/union.dart
@@ -0,0 +1,24 @@
+// Copyright 2015 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.
+
+part of bindings;
+
+abstract class Union {
+ void encode(Encoder encoder, int offset);
+}
+
+class UnionError {
+}
+
+class UnsetUnionTagError extends UnionError {
+ final curTag;
+ final requestedTag;
+
+ UnsetUnionTagError(this.curTag, this.requestedTag);
+
+ String toString() {
+ return "Tried to read unset union member: {{requestedTag}} "
+ "current member: {{curTag}}.";
+ }
+}
« no previous file with comments | « third_party/mojo/src/mojo/public/dart/lib/src/codec.dart ('k') | third_party/mojo/src/mojo/public/dart/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698