| 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/types.h" |
| 9 #include "mojo/services/public/cpp/view_manager/util.h" | 9 #include "mojo/services/public/cpp/view_manager/util.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 inline ViewId RootViewId() { | 46 inline ViewId RootViewId() { |
| 47 return ViewId(kInvalidConnectionId, 1); | 47 return ViewId(kInvalidConnectionId, 1); |
| 48 } | 48 } |
| 49 | 49 |
| 50 // Returns a ViewId that is reserved to indicate no view. That is, no view will | 50 // Returns a ViewId that is reserved to indicate no view. That is, no view will |
| 51 // ever be created with this id. | 51 // ever be created with this id. |
| 52 inline ViewId InvalidViewId() { | 52 inline ViewId InvalidViewId() { |
| 53 return ViewId(kInvalidConnectionId, 0); | 53 return ViewId(kInvalidConnectionId, 0); |
| 54 } | 54 } |
| 55 | 55 |
| 56 // All cloned views use this id. |
| 57 inline ViewId ClonedViewId() { |
| 58 return ViewId(kInvalidConnectionId, 2); |
| 59 } |
| 60 |
| 56 } // namespace service | 61 } // namespace service |
| 57 } // namespace mojo | 62 } // namespace mojo |
| 58 | 63 |
| 59 #endif // MOJO_SERVICES_VIEW_MANAGER_IDS_H_ | 64 #endif // MOJO_SERVICES_VIEW_MANAGER_IDS_H_ |
| OLD | NEW |