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

Side by Side Diff: content/browser/media/capture/cursor_renderer_dummy.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.
miu 2015/10/23 01:55:13 Suggestion: Generally, we don't write "empty" impl
Irfan 2015/10/26 23:10:31 Done.
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_DUMMY_H_
6 #define CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_DUMMY_H_
7
8 #include "content/browser/media/capture/cursor_renderer.h"
9
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h"
13 #include "content/common/content_export.h"
14 #include "media/base/video_frame.h"
15 #include "ui/gfx/native_widget_types.h"
16
17 namespace content {
18
19 class CONTENT_EXPORT CursorRendererDummy : public CursorRenderer {
20 public:
21 explicit CursorRendererDummy(gfx::NativeWindow window);
22 ~CursorRendererDummy() override;
23 void Clear() override;
24 bool Update(const gfx::Rect& region_in_frame) override;
25 void RenderOnVideoFrame(
26 const scoped_refptr<media::VideoFrame>& target) const override;
27 base::WeakPtr<CursorRenderer> GetWeakPtr() override;
28 private:
xjz 2015/10/22 17:08:42 nit: one blank line above.
Irfan 2015/10/26 23:10:31 doesnt exist anymore
29 base::WeakPtrFactory<CursorRendererDummy> weak_factory_;
30 DISALLOW_COPY_AND_ASSIGN(CursorRendererDummy);
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_DUMMY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698