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_PUBLIC_CPP_UTIL_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_UTIL_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_UTIL_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_UTIL_H_ |
7 | 7 |
8 #include "view_manager/public/cpp/types.h" | 8 #include "view_manager/public/cpp/types.h" |
9 | 9 |
10 // TODO(beng): #$*&@#(@ MacOSX SDK! | 10 // TODO(beng): #$*&@#(@ MacOSX SDK! |
(...skipping 10 matching lines...) Expand all Loading... |
21 return static_cast<uint16_t>((id >> 16) & 0xFFFF); | 21 return static_cast<uint16_t>((id >> 16) & 0xFFFF); |
22 } | 22 } |
23 | 23 |
24 inline uint16_t LoWord(uint32_t id) { | 24 inline uint16_t LoWord(uint32_t id) { |
25 return static_cast<uint16_t>(id & 0xFFFF); | 25 return static_cast<uint16_t>(id & 0xFFFF); |
26 } | 26 } |
27 | 27 |
28 } // namespace mojo | 28 } // namespace mojo |
29 | 29 |
30 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_UTIL_H_ | 30 #endif // MOJO_SERVICES_VIEW_MANAGER_PUBLIC_CPP_UTIL_H_ |
OLD | NEW |