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

Side by Side Diff: content/browser/media/capture/cursor_renderer.h

Issue 1412173003: cast: support cursor rendering for tab capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing cursor renderer files in repo Created 5 years, 2 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
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h"
11 #include "content/common/content_export.h"
12 #include "media/base/video_frame.h"
13 #include "ui/gfx/native_widget_types.h"
14
15 namespace content {
16
17 // CursorRenderer is an interface that can be implememented to do cursor
18 // rendering on a video frame
miu 2015/10/23 01:55:12 style nit: Add period at end of sentence. It's wo
Irfan 2015/10/26 23:10:31 Done.
19 class CONTENT_EXPORT CursorRenderer {
20 public:
21 virtual ~CursorRenderer() {}
22
23 virtual void Clear() = 0;
miu 2015/10/23 01:55:12 Please document all methods (what they do and/or w
Irfan 2015/10/26 23:10:31 Done.
24
25 virtual bool Update(const gfx::Rect& region_in_frame) = 0;
miu 2015/10/23 01:55:12 naming consideration: SnapshotCursorState(), or so
miu 2015/10/23 01:55:12 Please document. Something like: "Determines whet
Irfan 2015/10/26 23:10:31 Done.
Irfan 2015/10/26 23:10:31 Done.
26
27 virtual void RenderOnVideoFrame(
28 const scoped_refptr<media::VideoFrame>& target) const = 0;
29
30 virtual base::WeakPtr<CursorRenderer> GetWeakPtr() = 0;
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698