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

Side by Side Diff: webrtc/modules/desktop_capture/window_capturer_x11.cc

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
« no previous file with comments | « webrtc/modules/desktop_capture/window_capturer_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 unsigned long size_ = 0; // NOLINT: type required by XGetWindowProperty 79 unsigned long size_ = 0; // NOLINT: type required by XGetWindowProperty
80 unsigned char* data_ = nullptr; 80 unsigned char* data_ = nullptr;
81 81
82 RTC_DISALLOW_COPY_AND_ASSIGN(XWindowProperty); 82 RTC_DISALLOW_COPY_AND_ASSIGN(XWindowProperty);
83 }; 83 };
84 84
85 class WindowCapturerLinux : public WindowCapturer, 85 class WindowCapturerLinux : public WindowCapturer,
86 public SharedXDisplay::XEventHandler { 86 public SharedXDisplay::XEventHandler {
87 public: 87 public:
88 WindowCapturerLinux(const DesktopCaptureOptions& options); 88 WindowCapturerLinux(const DesktopCaptureOptions& options);
89 virtual ~WindowCapturerLinux(); 89 ~WindowCapturerLinux() override;
90 90
91 // WindowCapturer interface. 91 // WindowCapturer interface.
92 bool GetWindowList(WindowList* windows) override; 92 bool GetWindowList(WindowList* windows) override;
93 bool SelectWindow(WindowId id) override; 93 bool SelectWindow(WindowId id) override;
94 bool BringSelectedWindowToFront() override; 94 bool BringSelectedWindowToFront() override;
95 95
96 // DesktopCapturer interface. 96 // DesktopCapturer interface.
97 void Start(Callback* callback) override; 97 void Start(Callback* callback) override;
98 void CaptureFrame() override; 98 void CaptureFrame() override;
99 99
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 } // namespace 421 } // namespace
422 422
423 // static 423 // static
424 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { 424 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) {
425 if (!options.x_display()) 425 if (!options.x_display())
426 return nullptr; 426 return nullptr;
427 return new WindowCapturerLinux(options); 427 return new WindowCapturerLinux(options);
428 } 428 }
429 429
430 } // namespace webrtc 430 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/window_capturer_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698