Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "media/video/capture/video_capture_device.h" | 5 #include "media/video/capture/video_capture_device.h" |
| 6 | 6 |
| 7 #include "base/i18n/timezone.h" | 7 #include "base/i18n/timezone.h" |
| 8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 "PW", "SA", "SR", "SV", "TT", "TW", "UM", "US", "VG", "VI", "VE"}; | 69 "PW", "SA", "SR", "SV", "TT", "TW", "UM", "US", "VG", "VI", "VE"}; |
| 70 const char** countries_using_60Hz_end = | 70 const char** countries_using_60Hz_end = |
| 71 countries_using_60Hz + arraysize(countries_using_60Hz); | 71 countries_using_60Hz + arraysize(countries_using_60Hz); |
| 72 if (std::find(countries_using_60Hz, countries_using_60Hz_end, | 72 if (std::find(countries_using_60Hz, countries_using_60Hz_end, |
| 73 current_country) == countries_using_60Hz_end) { | 73 current_country) == countries_using_60Hz_end) { |
| 74 return kPowerLine50Hz; | 74 return kPowerLine50Hz; |
| 75 } | 75 } |
| 76 return kPowerLine60Hz; | 76 return kPowerLine60Hz; |
| 77 } | 77 } |
| 78 | 78 |
| 79 void VideoCaptureDevice::InitializeImageCapture( | |
| 80 const ImageCaptureFormat& image_format, | |
| 81 scoped_ptr<ImageClient> client) { | |
| 82 client->OnError("Not supported"); | |
|
wuchengli
2014/09/09 05:53:21
The client can know if image capture is supported
Owen Lin
2014/09/11 06:17:59
Good point.
| |
| 83 } | |
| 84 | |
| 79 } // namespace media | 85 } // namespace media |
| OLD | NEW |