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 3 // found in the LICENSE file. 4 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_TYPES_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_TYPES_H_ 7 8 #include "base/basictypes.h" 9 10 // Typedefs for the transport types. These typedefs match that of the mojom 11 // file, see it for specifics. 12 13 namespace mojo { 14 namespace view_manager { 15 16 // Used to identify nodes, views and change ids. 17 typedef uint32_t Id; 18 19 // Used to identify a connection as well as a connection specific view or node 20 // id. For example, the Id for a node consists of the ConnectionSpecificId of 21 // the connection and the ConnectionSpecificId of the node. 22 typedef uint16_t ConnectionSpecificId; 23 24 } // namespace view_manager 25 } // namespace mojo 26 27 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_TYPES_H_ 28