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

Side by Side Diff: webrtc/modules/desktop_capture/window_capturer_mac.mm

Issue 1888593004: Delete all use of tick_util.h. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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/modules/desktop_capture/window_capturer.h" 11 #include "webrtc/modules/desktop_capture/window_capturer.h"
12 12
13 #include <assert.h> 13 #include <assert.h>
14 #include <ApplicationServices/ApplicationServices.h> 14 #include <ApplicationServices/ApplicationServices.h>
15 #include <Cocoa/Cocoa.h> 15 #include <Cocoa/Cocoa.h>
16 #include <CoreFoundation/CoreFoundation.h> 16 #include <CoreFoundation/CoreFoundation.h>
17 17
18 #include "webrtc/base/macutils.h" 18 #include "webrtc/base/macutils.h"
19 #include "webrtc/base/scoped_ref_ptr.h" 19 #include "webrtc/base/scoped_ref_ptr.h"
20 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" 20 #include "webrtc/modules/desktop_capture/desktop_capture_options.h"
21 #include "webrtc/modules/desktop_capture/desktop_frame.h" 21 #include "webrtc/modules/desktop_capture/desktop_frame.h"
22 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" 22 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h"
23 #include "webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector. h" 23 #include "webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector. h"
24 #include "webrtc/modules/desktop_capture/mac/window_list_utils.h" 24 #include "webrtc/modules/desktop_capture/mac/window_list_utils.h"
25 #include "webrtc/system_wrappers/include/logging.h" 25 #include "webrtc/system_wrappers/include/logging.h"
26 #include "webrtc/system_wrappers/include/tick_util.h"
27 26
28 namespace webrtc { 27 namespace webrtc {
29 28
30 namespace { 29 namespace {
31 30
32 // Returns true if the window exists. 31 // Returns true if the window exists.
33 bool IsWindowValid(CGWindowID id) { 32 bool IsWindowValid(CGWindowID id) {
34 CFArrayRef window_id_array = 33 CFArrayRef window_id_array =
35 CFArrayCreate(NULL, reinterpret_cast<const void **>(&id), 1, NULL); 34 CFArrayCreate(NULL, reinterpret_cast<const void **>(&id), 1, NULL);
36 CFArrayRef window_array = 35 CFArrayRef window_array =
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 237 }
239 238
240 } // namespace 239 } // namespace
241 240
242 // static 241 // static
243 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { 242 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) {
244 return new WindowCapturerMac(options.full_screen_chrome_window_detector()); 243 return new WindowCapturerMac(options.full_screen_chrome_window_detector());
245 } 244 }
246 245
247 } // namespace webrtc 246 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698