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

Side by Side Diff: webrtc/api/video/video_content_type.h

Issue 3006333002: Fix code formating in api/video/video_content_type.* (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/video/video_content_type.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_ 11 #ifndef WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
12 #define WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_ 12 #define WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
13 13
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 #include <string> 16 #include <string>
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 enum class VideoContentType : uint8_t { 20 enum class VideoContentType : uint8_t {
21 UNSPECIFIED = 0, 21 UNSPECIFIED = 0,
22 SCREENSHARE = 1, 22 SCREENSHARE = 1,
23 }; 23 };
24 24
25 namespace videocontenttypehelpers { 25 namespace videocontenttypehelpers {
26 bool SetExperimentId(VideoContentType* content_type, 26 bool SetExperimentId(VideoContentType* content_type, uint8_t experiment_id);
27 uint8_t experiment_id); 27 bool SetSimulcastId(VideoContentType* content_type, uint8_t simulcast_id);
28 bool SetSimulcastId(VideoContentType* content_type,
29 uint8_t simulcast_id);
30 28
31 uint8_t GetExperimentId(const VideoContentType& content_type); 29 uint8_t GetExperimentId(const VideoContentType& content_type);
32 uint8_t GetSimulcastId(const VideoContentType& content_type); 30 uint8_t GetSimulcastId(const VideoContentType& content_type);
33 31
34 bool IsScreenshare(const VideoContentType& content_type); 32 bool IsScreenshare(const VideoContentType& content_type);
35 33
36 bool IsValidContentType(uint8_t value); 34 bool IsValidContentType(uint8_t value);
37 35
38 const char* ToString(const VideoContentType& content_type); 36 const char* ToString(const VideoContentType& content_type);
39 } // namespace videocontenttypehelpers 37 } // namespace videocontenttypehelpers
40 38
41 } // namespace webrtc 39 } // namespace webrtc
42 40
43 #endif // WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_ 41 #endif // WEBRTC_API_VIDEO_VIDEO_CONTENT_TYPE_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/video/video_content_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698