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

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

Issue 2969653002: Update includes for webrtc/{base => rtc_base} rename (1/3) (Closed)
Patch Set: Rebased onto 89c4a7e57d524b13fbe0c823a83a4c10c2e63bd0 Created 3 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
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/modules/audio_device/mac/audio_device_mac.h"
12 #include "webrtc/base/checks.h"
13 #include "webrtc/base/logging.h"
14 #include "webrtc/base/platform_thread.h"
15 #include "webrtc/modules/audio_device/audio_device_config.h" 12 #include "webrtc/modules/audio_device/audio_device_config.h"
16 #include "webrtc/modules/audio_device/mac/audio_device_mac.h"
17 #include "webrtc/modules/audio_device/mac/portaudio/pa_ringbuffer.h" 13 #include "webrtc/modules/audio_device/mac/portaudio/pa_ringbuffer.h"
14 #include "webrtc/rtc_base/arraysize.h"
15 #include "webrtc/rtc_base/checks.h"
16 #include "webrtc/rtc_base/logging.h"
17 #include "webrtc/rtc_base/platform_thread.h"
18 #include "webrtc/system_wrappers/include/event_wrapper.h" 18 #include "webrtc/system_wrappers/include/event_wrapper.h"
19 #include "webrtc/system_wrappers/include/trace.h" 19 #include "webrtc/system_wrappers/include/trace.h"
20 20
21 #include <ApplicationServices/ApplicationServices.h> 21 #include <ApplicationServices/ApplicationServices.h>
22 #include <libkern/OSAtomic.h> // OSAtomicCompareAndSwap() 22 #include <libkern/OSAtomic.h> // OSAtomicCompareAndSwap()
23 #include <mach/mach.h> // mach_task_self() 23 #include <mach/mach.h> // mach_task_self()
24 #include <sys/sysctl.h> // sysctlbyname() 24 #include <sys/sysctl.h> // sysctlbyname()
25 25
26 namespace webrtc { 26 namespace webrtc {
27 27
(...skipping 2739 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 bool keyState = 2767 bool keyState =
2768 CGEventSourceKeyState(kCGEventSourceStateHIDSystemState, key_index); 2768 CGEventSourceKeyState(kCGEventSourceStateHIDSystemState, key_index);
2769 // A false -> true change in keymap means a key is pressed. 2769 // A false -> true change in keymap means a key is pressed.
2770 key_down |= (keyState && !prev_key_state_[key_index]); 2770 key_down |= (keyState && !prev_key_state_[key_index]);
2771 // Save current state. 2771 // Save current state.
2772 prev_key_state_[key_index] = keyState; 2772 prev_key_state_[key_index] = keyState;
2773 } 2773 }
2774 return key_down; 2774 return key_down;
2775 } 2775 }
2776 } // namespace webrtc 2776 } // 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