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

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

Issue 2436503004: Enable clang style plugin in webrtc/modules/desktop_capture (Closed)
Patch Set: . Created 4 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) 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
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 [new_image unlockFocus]; 47 [new_image unlockFocus];
48 return new_image; 48 return new_image;
49 } 49 }
50 } // namespace 50 } // namespace
51 51
52 class MouseCursorMonitorMac : public MouseCursorMonitor { 52 class MouseCursorMonitorMac : public MouseCursorMonitor {
53 public: 53 public:
54 MouseCursorMonitorMac(const DesktopCaptureOptions& options, 54 MouseCursorMonitorMac(const DesktopCaptureOptions& options,
55 CGWindowID window_id, 55 CGWindowID window_id,
56 ScreenId screen_id); 56 ScreenId screen_id);
57 virtual ~MouseCursorMonitorMac(); 57 ~MouseCursorMonitorMac() override;
58 58
59 void Init(Callback* callback, Mode mode) override; 59 void Init(Callback* callback, Mode mode) override;
60 void Capture() override; 60 void Capture() override;
61 61
62 private: 62 private:
63 static void DisplaysReconfiguredCallback(CGDirectDisplayID display, 63 static void DisplaysReconfiguredCallback(CGDirectDisplayID display,
64 CGDisplayChangeSummaryFlags flags, 64 CGDisplayChangeSummaryFlags flags,
65 void *user_parameter); 65 void *user_parameter);
66 void DisplaysReconfigured(CGDirectDisplayID display, 66 void DisplaysReconfigured(CGDirectDisplayID display,
67 CGDisplayChangeSummaryFlags flags); 67 CGDisplayChangeSummaryFlags flags);
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 return new MouseCursorMonitorMac(options, window, kInvalidScreenId); 318 return new MouseCursorMonitorMac(options, window, kInvalidScreenId);
319 } 319 }
320 320
321 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen( 321 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen(
322 const DesktopCaptureOptions& options, 322 const DesktopCaptureOptions& options,
323 ScreenId screen) { 323 ScreenId screen) {
324 return new MouseCursorMonitorMac(options, kCGNullWindowID, screen); 324 return new MouseCursorMonitorMac(options, kCGNullWindowID, screen);
325 } 325 }
326 326
327 } // namespace webrtc 327 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698