| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_CAPTURE_VIDEO_LINUX_VIDEO_CAPTURE_DEVICE_CHROMEOS_H_ | |
| 6 #define MEDIA_CAPTURE_VIDEO_LINUX_VIDEO_CAPTURE_DEVICE_CHROMEOS_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "media/capture/video/linux/video_capture_device_linux.h" | |
| 10 | |
| 11 namespace display { | |
| 12 class Display; | |
| 13 } // namespace display | |
| 14 | |
| 15 namespace media { | |
| 16 | |
| 17 // This class is functionally the same as VideoCaptureDeviceLinux, with the | |
| 18 // exception that it is aware of the orientation of the internal Display. When | |
| 19 // the internal Display is rotated, the frames captured are rotated to match. | |
| 20 class VideoCaptureDeviceChromeOS : public VideoCaptureDeviceLinux { | |
| 21 public: | |
| 22 explicit VideoCaptureDeviceChromeOS( | |
| 23 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | |
| 24 const Name& device_name); | |
| 25 ~VideoCaptureDeviceChromeOS() override; | |
| 26 | |
| 27 private: | |
| 28 class ScreenObserverDelegate; | |
| 29 | |
| 30 void SetDisplayRotation(const display::Display& display); | |
| 31 scoped_refptr<ScreenObserverDelegate> screen_observer_delegate_; | |
| 32 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceChromeOS); | |
| 33 }; | |
| 34 | |
| 35 } // namespace media | |
| 36 | |
| 37 #endif // MEDIA_CAPTURE_VIDEO_LINUX_VIDEO_CAPTURE_DEVICE_CHROMEOS_H_ | |
| OLD | NEW |