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

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

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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
OLDNEW
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 COMPONENTS_MUS_COMMON_UTIL_H_ 5 #ifndef COMPONENTS_MUS_COMMON_UTIL_H_
6 #define COMPONENTS_MUS_COMMON_UTIL_H_ 6 #define COMPONENTS_MUS_COMMON_UTIL_H_
7 7
8 #include <stdint.h>
9
8 #include "components/mus/common/types.h" 10 #include "components/mus/common/types.h"
9 11
10 // TODO(beng): #$*&@#(@ MacOSX SDK! 12 // TODO(beng): #$*&@#(@ MacOSX SDK!
11 #if defined(HiWord) 13 #if defined(HiWord)
12 #undef HiWord 14 #undef HiWord
13 #endif 15 #endif
14 #if defined(LoWord) 16 #if defined(LoWord)
15 #undef LoWord 17 #undef LoWord
16 #endif 18 #endif
17 19
18 namespace mus { 20 namespace mus {
19 21
20 inline uint16_t HiWord(uint32_t id) { 22 inline uint16_t HiWord(uint32_t id) {
21 return static_cast<uint16_t>((id >> 16) & 0xFFFF); 23 return static_cast<uint16_t>((id >> 16) & 0xFFFF);
22 } 24 }
23 25
24 inline uint16_t LoWord(uint32_t id) { 26 inline uint16_t LoWord(uint32_t id) {
25 return static_cast<uint16_t>(id & 0xFFFF); 27 return static_cast<uint16_t>(id & 0xFFFF);
26 } 28 }
27 29
28 } // namespace mus 30 } // namespace mus
29 31
30 #endif // COMPONENTS_MUS_COMMON_UTIL_H_ 32 #endif // COMPONENTS_MUS_COMMON_UTIL_H_
OLDNEW
« no previous file with comments | « components/mus/common/transient_window_utils.h ('k') | components/mus/gles2/command_buffer_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698