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

Side by Side Diff: webrtc/modules/audio_device/mac/audio_device_mac.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/base/arraysize.h" 11 #include "webrtc/base/arraysize.h"
12 #include "webrtc/base/checks.h" 12 #include "webrtc/base/checks.h"
13 #include "webrtc/modules/audio_device/audio_device_config.h" 13 #include "webrtc/modules/audio_device/audio_device_config.h"
14 #include "webrtc/modules/audio_device/mac/audio_device_mac.h" 14 #include "webrtc/modules/audio_device/mac/audio_device_mac.h"
15 #include "webrtc/modules/audio_device/mac/portaudio/pa_ringbuffer.h" 15 #include "webrtc/modules/audio_device/mac/portaudio/pa_ringbuffer.h"
16 #include "webrtc/system_wrappers/interface/event_wrapper.h" 16 #include "webrtc/system_wrappers/include/event_wrapper.h"
17 #include "webrtc/system_wrappers/interface/thread_wrapper.h" 17 #include "webrtc/system_wrappers/include/thread_wrapper.h"
18 #include "webrtc/system_wrappers/interface/trace.h" 18 #include "webrtc/system_wrappers/include/trace.h"
19 19
20 #include <ApplicationServices/ApplicationServices.h> 20 #include <ApplicationServices/ApplicationServices.h>
21 #include <libkern/OSAtomic.h> // OSAtomicCompareAndSwap() 21 #include <libkern/OSAtomic.h> // OSAtomicCompareAndSwap()
22 #include <mach/mach.h> // mach_task_self() 22 #include <mach/mach.h> // mach_task_self()
23 #include <sys/sysctl.h> // sysctlbyname() 23 #include <sys/sysctl.h> // sysctlbyname()
24 24
25 25
26 26
27 namespace webrtc 27 namespace webrtc
28 { 28 {
(...skipping 3203 matching lines...) Expand 10 before | Expand all | Expand 10 after
3232 kCGEventSourceStateHIDSystemState, 3232 kCGEventSourceStateHIDSystemState,
3233 key_index); 3233 key_index);
3234 // A false -> true change in keymap means a key is pressed. 3234 // A false -> true change in keymap means a key is pressed.
3235 key_down |= (keyState && !prev_key_state_[key_index]); 3235 key_down |= (keyState && !prev_key_state_[key_index]);
3236 // Save current state. 3236 // Save current state.
3237 prev_key_state_[key_index] = keyState; 3237 prev_key_state_[key_index] = keyState;
3238 } 3238 }
3239 return key_down; 3239 return key_down;
3240 } 3240 }
3241 } // namespace webrtc 3241 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_device/mac/audio_device_mac.h ('k') | webrtc/modules/audio_device/mac/audio_mixer_manager_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698