Doug Horn | 1427b6a | 2018-12-11 13:19:16 -0800 | [diff] [blame] | 1 | // Copyright 2016 The Fuchsia 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 | library fuchsia.ui.viewsv1; |
| 6 | |
| 7 | // A view tree token is an opaque transferable reference to a view tree. |
| 8 | // |
| 9 | // The ViewManager provides each view tree with a unique view tree token when |
| 10 | // it is registered. The token can subsequently be passed to other |
| 11 | // applications and used as a way to refer to the tree. |
| 12 | // |
| 13 | // View tree tokens should be kept secret and should only be shared with |
| 14 | // trusted services. |
| 15 | // |
| 16 | // TODO(jeffbrown): This implementation is a temporary placeholder until |
| 17 | // we provide a way to create tokens which cannot be forged. |
| 18 | struct ViewTreeToken { |
| 19 | uint32 value; |
| 20 | }; |