OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 es.throwUninformativeAndGenericDOMException(TypeMismatchError); | 47 es.throwUninformativeAndGenericDOMException(TypeMismatchError); |
48 return 0; | 48 return 0; |
49 } | 49 } |
50 | 50 |
51 String sdpMid; | 51 String sdpMid; |
52 dictionary.get("sdpMid", sdpMid); | 52 dictionary.get("sdpMid", sdpMid); |
53 | 53 |
54 unsigned short sdpMLineIndex = 0; | 54 unsigned short sdpMLineIndex = 0; |
55 dictionary.get("sdpMLineIndex", sdpMLineIndex); | 55 dictionary.get("sdpMLineIndex", sdpMLineIndex); |
56 | 56 |
57 return adoptRef(new RTCIceCandidate(WebKit::WebRTCICECandidate(candidate, sd
pMid, sdpMLineIndex))); | 57 return adoptRef(new RTCIceCandidate(blink::WebRTCICECandidate(candidate, sdp
Mid, sdpMLineIndex))); |
58 } | 58 } |
59 | 59 |
60 PassRefPtr<RTCIceCandidate> RTCIceCandidate::create(WebKit::WebRTCICECandidate w
ebCandidate) | 60 PassRefPtr<RTCIceCandidate> RTCIceCandidate::create(blink::WebRTCICECandidate we
bCandidate) |
61 { | 61 { |
62 return adoptRef(new RTCIceCandidate(webCandidate)); | 62 return adoptRef(new RTCIceCandidate(webCandidate)); |
63 } | 63 } |
64 | 64 |
65 RTCIceCandidate::RTCIceCandidate(WebKit::WebRTCICECandidate webCandidate) | 65 RTCIceCandidate::RTCIceCandidate(blink::WebRTCICECandidate webCandidate) |
66 : m_webCandidate(webCandidate) | 66 : m_webCandidate(webCandidate) |
67 { | 67 { |
68 ScriptWrappable::init(this); | 68 ScriptWrappable::init(this); |
69 } | 69 } |
70 | 70 |
71 String RTCIceCandidate::candidate() const | 71 String RTCIceCandidate::candidate() const |
72 { | 72 { |
73 return m_webCandidate.candidate(); | 73 return m_webCandidate.candidate(); |
74 } | 74 } |
75 | 75 |
76 String RTCIceCandidate::sdpMid() const | 76 String RTCIceCandidate::sdpMid() const |
77 { | 77 { |
78 return m_webCandidate.sdpMid(); | 78 return m_webCandidate.sdpMid(); |
79 } | 79 } |
80 | 80 |
81 unsigned short RTCIceCandidate::sdpMLineIndex() const | 81 unsigned short RTCIceCandidate::sdpMLineIndex() const |
82 { | 82 { |
83 return m_webCandidate.sdpMLineIndex(); | 83 return m_webCandidate.sdpMLineIndex(); |
84 } | 84 } |
85 | 85 |
86 WebKit::WebRTCICECandidate RTCIceCandidate::webCandidate() | 86 blink::WebRTCICECandidate RTCIceCandidate::webCandidate() |
87 { | 87 { |
88 return m_webCandidate; | 88 return m_webCandidate; |
89 } | 89 } |
90 | 90 |
91 } // namespace WebCore | 91 } // namespace WebCore |
OLD | NEW |