| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 class WebMediaStreamSource; | 39 class WebMediaStreamSource; |
| 40 class WebString; | 40 class WebString; |
| 41 | 41 |
| 42 class WebMediaStreamTrack { | 42 class WebMediaStreamTrack { |
| 43 public: | 43 public: |
| 44 struct Settings { | 44 struct Settings { |
| 45 bool hasFrameRate() | 45 bool hasFrameRate() |
| 46 { | 46 { |
| 47 return frameRate >= 0.0; | 47 return frameRate >= 0.0; |
| 48 } | 48 } |
| 49 bool hasWidth() |
| 50 { |
| 51 return width >= 0; |
| 52 } |
| 53 bool hasHeight() |
| 54 { |
| 55 return height >= 0; |
| 56 } |
| 49 // The variables are read from | 57 // The variables are read from |
| 50 // MediaStreamTrack::GetSettings only. | 58 // MediaStreamTrack::GetSettings only. |
| 51 double frameRate = -1.0; | 59 double frameRate = -1.0; |
| 60 long width = -1; |
| 61 long height = -1; |
| 52 WebString deviceId; | 62 WebString deviceId; |
| 53 }; | 63 }; |
| 54 | 64 |
| 55 class TrackData { | 65 class TrackData { |
| 56 public: | 66 public: |
| 57 TrackData() {} | 67 TrackData() {} |
| 58 virtual ~TrackData() {} | 68 virtual ~TrackData() {} |
| 59 virtual void getSettings(Settings&) = 0; | 69 virtual void getSettings(Settings&) = 0; |
| 60 }; | 70 }; |
| 61 | 71 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const; | 111 BLINK_PLATFORM_EXPORT operator MediaStreamComponent*() const; |
| 102 #endif | 112 #endif |
| 103 | 113 |
| 104 private: | 114 private: |
| 105 WebPrivatePtr<MediaStreamComponent> m_private; | 115 WebPrivatePtr<MediaStreamComponent> m_private; |
| 106 }; | 116 }; |
| 107 | 117 |
| 108 } // namespace blink | 118 } // namespace blink |
| 109 | 119 |
| 110 #endif // WebMediaStreamTrack_h | 120 #endif // WebMediaStreamTrack_h |
| OLD | NEW |