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

Unified Diff: content/renderer/media/media_stream_video_source.h

Issue 973373002: fix for builds with webrtc disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: convert int constants to enum values Created 5 years, 10 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_video_source.h
diff --git a/content/renderer/media/media_stream_video_source.h b/content/renderer/media/media_stream_video_source.h
index ba66e439cdf9f1b42db9a96de2d8e4a76cef4b93..4d0dba11fb01a37ba1f3c34ea240fc6f4bb726ee 100644
--- a/content/renderer/media/media_stream_video_source.h
+++ b/content/renderer/media/media_stream_video_source.h
@@ -76,12 +76,15 @@ class CONTENT_EXPORT MediaStreamVideoSource
static const char kMaxFrameRate[]; // maxFrameRate
static const char kMinFrameRate[]; // minFrameRate
- // Default resolution. If no constraints are specified and the delegate
- // support it, this is the resolution that will be used.
- static const int kDefaultWidth;
- static const int kDefaultHeight;
- static const int kDefaultFrameRate;
- static const int kUnknownFrameRate;
+ enum {
+ // Default resolution. If no constraints are specified and the delegate
+ // support it, this is the resolution that will be used.
+ kDefaultWidth = 640,
+ kDefaultHeight = 480,
+
+ kDefaultFrameRate = 30,
+ kUnknownFrameRate = 0,
+ };
protected:
void DoStopSource() override;
« no previous file with comments | « no previous file | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698