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

Side by Side Diff: media/mojo/interfaces/media_types.mojom

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module media.interfaces; 5 module media.interfaces;
6 6
7 import "ui/mojo/geometry/geometry.mojom"; 7 import "ui/mojo/geometry/geometry.mojom";
8 8
9 // See media/base/buffering_state.h for descriptions. 9 // See media/base/buffering_state.h for descriptions.
10 // Kept in sync with media::BufferingState via static_asserts. 10 // Kept in sync with media::BufferingState via static_asserts.
(...skipping 19 matching lines...) Expand all
30 PCM_S24BE = 11, 30 PCM_S24BE = 11,
31 Opus = 12, 31 Opus = 12,
32 // EAC3 = 13, 32 // EAC3 = 13,
33 PCM_ALAW = 14, 33 PCM_ALAW = 14,
34 ALAC = 15, 34 ALAC = 15,
35 MAX = ALAC, 35 MAX = ALAC,
36 }; 36 };
37 37
38 // See media/base/channel_layout.h for descriptions. 38 // See media/base/channel_layout.h for descriptions.
39 // Kept in sync with media::ChannelLayout via static_asserts. 39 // Kept in sync with media::ChannelLayout via static_asserts.
40 // TODO(tim): The bindings generators will always prepend the enum name, should
41 // mojom therefore allow enum values starting with numbers?
42 enum ChannelLayout { 40 enum ChannelLayout {
43 k_NONE = 0, 41 k_NONE = 0,
44 k_UNSUPPORTED = 1, 42 k_UNSUPPORTED = 1,
45 k_MONO = 2, 43 k_MONO = 2,
46 k_STEREO = 3, 44 k_STEREO = 3,
47 k_2_1 = 4, 45 k_2_1 = 4,
48 k_SURROUND = 5, 46 k_SURROUND = 5,
49 k_4_0 = 6, 47 k_4_0 = 6,
50 k_2_2 = 7, 48 k_2_2 = 7,
51 k_QUAD = 8, 49 k_QUAD = 8,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 bool end_of_stream; 278 bool end_of_stream;
281 279
282 // Timestamp in microseconds of the associated frame. 280 // Timestamp in microseconds of the associated frame.
283 int64 timestamp_usec; 281 int64 timestamp_usec;
284 282
285 // Frame data for each plane. Will be null for EOS buffers. 283 // Frame data for each plane. Will be null for EOS buffers.
286 array<uint8>? y_data; 284 array<uint8>? y_data;
287 array<uint8>? u_data; 285 array<uint8>? u_data;
288 array<uint8>? v_data; 286 array<uint8>? v_data;
289 }; 287 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698