Chromium Code Reviews| Index: content/browser/media/capture/cursor_renderer_dummy.h |
| diff --git a/content/browser/media/capture/cursor_renderer_dummy.h b/content/browser/media/capture/cursor_renderer_dummy.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5bd35875e92fd9c93b93c2ba0f1220511fde736b |
| --- /dev/null |
| +++ b/content/browser/media/capture/cursor_renderer_dummy.h |
| @@ -0,0 +1,35 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_DUMMY_H_ |
| +#define CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_DUMMY_H_ |
| + |
| +#include "content/browser/media/capture/cursor_renderer.h" |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "content/common/content_export.h" |
| +#include "media/base/video_frame.h" |
| +#include "ui/gfx/native_widget_types.h" |
| + |
| +namespace content { |
| + |
| +class CONTENT_EXPORT CursorRendererDummy : public CursorRenderer { |
| + public: |
| + explicit CursorRendererDummy(gfx::NativeWindow window); |
| + ~CursorRendererDummy() override; |
| + void Clear() override; |
| + bool Update(const gfx::Rect& region_in_frame) override; |
| + void RenderOnVideoFrame( |
| + const scoped_refptr<media::VideoFrame>& target) const override; |
| + base::WeakPtr<CursorRenderer> GetWeakPtr() override; |
| + private: |
|
xjz
2015/10/22 17:08:42
nit: one blank line above.
Irfan
2015/10/26 23:10:31
doesnt exist anymore
|
| + base::WeakPtrFactory<CursorRendererDummy> weak_factory_; |
| + DISALLOW_COPY_AND_ASSIGN(CursorRendererDummy); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_DUMMY_H_ |