Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: components/mus/common/util.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/common/types.h ('k') | components/mus/demo/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef COMPONENTS_MUS_COMMON_UTIL_H_
6 #define COMPONENTS_MUS_COMMON_UTIL_H_
7
8 #include <stdint.h>
9
10 #include "components/mus/common/types.h"
11
12 // TODO(beng): #$*&@#(@ MacOSX SDK!
13 #if defined(HiWord)
14 #undef HiWord
15 #endif
16 #if defined(LoWord)
17 #undef LoWord
18 #endif
19
20 namespace mus {
21
22 inline uint16_t HiWord(uint32_t id) {
23 return static_cast<uint16_t>((id >> 16) & 0xFFFF);
24 }
25
26 inline uint16_t LoWord(uint32_t id) {
27 return static_cast<uint16_t>(id & 0xFFFF);
28 }
29
30 } // namespace mus
31
32 #endif // COMPONENTS_MUS_COMMON_UTIL_H_
OLDNEW
« no previous file with comments | « components/mus/common/types.h ('k') | components/mus/demo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698