OLD | NEW |
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 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TYPES_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_TYPES_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_TYPES_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_TYPES_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 // Typedefs for the transport types. These typedefs match that of the mojom | 10 // Typedefs for the transport types. These typedefs match that of the mojom |
11 // file, see it for specifics. | 11 // file, see it for specifics. |
12 | 12 |
13 namespace mus { | 13 namespace mojo { |
14 | 14 |
15 // Used to identify views and change ids. | 15 // Used to identify views and change ids. |
16 typedef uint32_t Id; | 16 typedef uint32_t Id; |
17 | 17 |
18 // Used to identify a connection as well as a connection specific view id. For | 18 // Used to identify a connection as well as a connection specific view id. For |
19 // example, the Id for a view consists of the ConnectionSpecificId of the | 19 // example, the Id for a view consists of the ConnectionSpecificId of the |
20 // connection and the ConnectionSpecificId of the view. | 20 // connection and the ConnectionSpecificId of the view. |
21 typedef uint16_t ConnectionSpecificId; | 21 typedef uint16_t ConnectionSpecificId; |
22 | 22 |
23 } // namespace mus | 23 } // namespace mojo |
24 | 24 |
25 #endif // COMPONENTS_MUS_PUBLIC_CPP_TYPES_H_ | 25 #endif // COMPONENTS_MUS_PUBLIC_CPP_TYPES_H_ |
OLD | NEW |