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

Side by Side Diff: webrtc/modules/desktop_capture/desktop_and_cursor_composer.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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 // DesktopFrame wrapper that draws mouse on a frame and restores original 55 // DesktopFrame wrapper that draws mouse on a frame and restores original
56 // content before releasing the underlying frame. 56 // content before releasing the underlying frame.
57 class DesktopFrameWithCursor : public DesktopFrame { 57 class DesktopFrameWithCursor : public DesktopFrame {
58 public: 58 public:
59 // Takes ownership of |frame|. 59 // Takes ownership of |frame|.
60 DesktopFrameWithCursor(std::unique_ptr<DesktopFrame> frame, 60 DesktopFrameWithCursor(std::unique_ptr<DesktopFrame> frame,
61 const MouseCursor& cursor, 61 const MouseCursor& cursor,
62 const DesktopVector& position); 62 const DesktopVector& position);
63 virtual ~DesktopFrameWithCursor(); 63 ~DesktopFrameWithCursor() override;
64 64
65 private: 65 private:
66 std::unique_ptr<DesktopFrame> original_frame_; 66 std::unique_ptr<DesktopFrame> original_frame_;
67 67
68 DesktopVector restore_position_; 68 DesktopVector restore_position_;
69 std::unique_ptr<DesktopFrame> restore_frame_; 69 std::unique_ptr<DesktopFrame> restore_frame_;
70 70
71 RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrameWithCursor); 71 RTC_DISALLOW_COPY_AND_ASSIGN(DesktopFrameWithCursor);
72 }; 72 };
73 73
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 171 }
172 172
173 void DesktopAndCursorComposer::OnMouseCursorPosition( 173 void DesktopAndCursorComposer::OnMouseCursorPosition(
174 MouseCursorMonitor::CursorState state, 174 MouseCursorMonitor::CursorState state,
175 const DesktopVector& position) { 175 const DesktopVector& position) {
176 cursor_state_ = state; 176 cursor_state_ = state;
177 cursor_position_ = position; 177 cursor_position_ = position;
178 } 178 }
179 179
180 } // namespace webrtc 180 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/desktop_and_cursor_composer.h ('k') | webrtc/modules/desktop_capture/desktop_capture_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698