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

Unified Diff: media/capture/video/video_capture_device.h

Issue 1345993002: Change the functions in video_capture_device to pass around PowerLineFrequency enums instead of int… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed formatting issue pointed out of ajose Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/video_capture_device.h
diff --git a/media/capture/video/video_capture_device.h b/media/capture/video/video_capture_device.h
index 336013368fdaf73f61fa0c5c40a3d3f3ae7869e9..b66409b57e9880a71231e60f68ecf95b8584ce99 100644
--- a/media/capture/video/video_capture_device.h
+++ b/media/capture/video/video_capture_device.h
@@ -283,12 +283,13 @@ class MEDIA_EXPORT VideoCaptureDevice {
// Gets the power line frequency, either from the params if specified by the
// user or from the current system time zone.
- int GetPowerLineFrequency(const VideoCaptureParams& params) const;
+ PowerLineFrequency GetPowerLineFrequency(
+ const VideoCaptureParams& params) const;
private:
// Gets the power line frequency from the current system time zone if this is
// defined, otherwise returns 0.
- int GetPowerLineFrequencyForLocation() const;
+ PowerLineFrequency GetPowerLineFrequencyForLocation() const;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698