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 MOJO_SERVICES_VIEW_MANAGER_IDS_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_IDS_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_IDS_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_IDS_H_ |
7 | 7 |
| 8 #include "mojo/services/public/cpp/view_manager/types.h" |
8 #include "mojo/services/public/cpp/view_manager/util.h" | 9 #include "mojo/services/public/cpp/view_manager/util.h" |
9 #include "mojo/services/public/cpp/view_manager/view_manager_types.h" | |
10 #include "mojo/services/view_manager/view_manager_export.h" | 10 #include "mojo/services/view_manager/view_manager_export.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 namespace view_manager { | 13 namespace view_manager { |
14 namespace service { | 14 namespace service { |
15 | 15 |
16 // Connection id reserved for the root. | 16 // Connection id reserved for the root. |
17 const ConnectionSpecificId kRootConnection = 0; | 17 const ConnectionSpecificId kRootConnection = 0; |
18 | 18 |
19 // Adds a bit of type safety to node ids. | 19 // Adds a bit of type safety to node ids. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // ever be created with this id. | 81 // ever be created with this id. |
82 inline NodeId InvalidNodeId() { | 82 inline NodeId InvalidNodeId() { |
83 return NodeId(kRootConnection, 0); | 83 return NodeId(kRootConnection, 0); |
84 } | 84 } |
85 | 85 |
86 } // namespace service | 86 } // namespace service |
87 } // namespace view_manager | 87 } // namespace view_manager |
88 } // namespace mojo | 88 } // namespace mojo |
89 | 89 |
90 #endif // MOJO_SERVICES_VIEW_MANAGER_IDS_H_ | 90 #endif // MOJO_SERVICES_VIEW_MANAGER_IDS_H_ |
OLD | NEW |