| 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_IDS_H_ | 5 #ifndef COMPONENTS_MUS_VM_IDS_H_ |
| 6 #define COMPONENTS_MUS_IDS_H_ | 6 #define COMPONENTS_MUS_VM_IDS_H_ |
| 7 | 7 |
| 8 #include "components/mus/public/cpp/types.h" | 8 #include "components/mus/public/cpp/types.h" |
| 9 #include "components/mus/public/cpp/util.h" | 9 #include "components/mus/public/cpp/util.h" |
| 10 | 10 |
| 11 namespace mus { | 11 namespace mus { |
| 12 | 12 |
| 13 // Connection id is used to indicate no connection. That is, no ViewTreeImpl | 13 // Connection id is used to indicate no connection. That is, no ViewTreeImpl |
| 14 // ever gets this id. | 14 // ever gets this id. |
| 15 const ConnectionSpecificId kInvalidConnectionId = 0; | 15 const ConnectionSpecificId kInvalidConnectionId = 0; |
| 16 | 16 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 return ViewId(kInvalidConnectionId, 0); | 44 return ViewId(kInvalidConnectionId, 0); |
| 45 } | 45 } |
| 46 | 46 |
| 47 // Returns a root view id with a given index offset. | 47 // Returns a root view id with a given index offset. |
| 48 inline ViewId RootViewId(uint16_t index) { | 48 inline ViewId RootViewId(uint16_t index) { |
| 49 return ViewId(kInvalidConnectionId, 2 + index); | 49 return ViewId(kInvalidConnectionId, 2 + index); |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace mus | 52 } // namespace mus |
| 53 | 53 |
| 54 #endif // COMPONENTS_MUS_IDS_H_ | 54 #endif // COMPONENTS_MUS_VM_IDS_H_ |
| OLD | NEW |