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

Side by Side Diff: content/renderer/media/media_stream_video_capturer_source.h

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: fix trybot errors Created 3 years, 11 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 16 matching lines...) Expand all
27 : public MediaStreamVideoSource, 27 : public MediaStreamVideoSource,
28 public RenderFrameObserver { 28 public RenderFrameObserver {
29 public: 29 public:
30 MediaStreamVideoCapturerSource( 30 MediaStreamVideoCapturerSource(
31 const SourceStoppedCallback& stop_callback, 31 const SourceStoppedCallback& stop_callback,
32 std::unique_ptr<media::VideoCapturerSource> source); 32 std::unique_ptr<media::VideoCapturerSource> source);
33 MediaStreamVideoCapturerSource(const SourceStoppedCallback& stop_callback, 33 MediaStreamVideoCapturerSource(const SourceStoppedCallback& stop_callback,
34 const StreamDeviceInfo& device_info, 34 const StreamDeviceInfo& device_info,
35 RenderFrame* render_frame); 35 RenderFrame* render_frame);
36 ~MediaStreamVideoCapturerSource() override; 36 ~MediaStreamVideoCapturerSource() override;
37 media::mojom::VideoFacingMode GetVideoFacing() override;
hta - Chromium 2017/01/12 19:36:41 Why are you introducing a new mojom enum instead o
shenghao 2017/01/13 11:09:34 Deleted
37 38
38 private: 39 private:
39 friend class CanvasCaptureHandlerTest; 40 friend class CanvasCaptureHandlerTest;
40 friend class MediaStreamVideoCapturerSourceTest; 41 friend class MediaStreamVideoCapturerSourceTest;
41 42
42 // MediaStreamVideoSource overrides. 43 // MediaStreamVideoSource overrides.
43 void RequestRefreshFrame() override; 44 void RequestRefreshFrame() override;
44 void OnHasConsumers(bool has_consumers) override; 45 void OnHasConsumers(bool has_consumers) override;
45 void OnCapturingLinkSecured(bool is_secure) override; 46 void OnCapturingLinkSecured(bool is_secure) override;
46 void GetCurrentSupportedFormats( 47 void GetCurrentSupportedFormats(
(...skipping 22 matching lines...) Expand all
69 // StartSourceImpl() when starting the capture, and is reset after starting 70 // StartSourceImpl() when starting the capture, and is reset after starting
70 // is completed. 71 // is completed.
71 bool is_capture_starting_ = false; 72 bool is_capture_starting_ = false;
72 73
73 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource); 74 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoCapturerSource);
74 }; 75 };
75 76
76 } // namespace content 77 } // namespace content
77 78
78 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_ 79 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_CAPTURER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698