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.
5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_UTIL_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_UTIL_H_
8 #include "mojo/services/public/cpp/view_manager/types.h"
10 // TODO(beng): #$*&@#(@ MacOSX SDK!
20 inline uint16_t HiWord(uint32_t id
) {
21 return static_cast<uint16_t>((id
>> 16) & 0xFFFF);
24 inline uint16_t LoWord(uint32_t id
) {
25 return static_cast<uint16_t>(id
& 0xFFFF);
30 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_UTIL_H_