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

Side by Side Diff: Source/modules/mediastream/RTCDataChannel.cpp

Issue 21735005: Use "int" instead of "long" for bindings where the WebIDL uses "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/mediastream/RTCDataChannel.h ('k') | Source/modules/speech/SpeechGrammarList.h » ('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) 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 * 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 case ReadyStateClosing: 120 case ReadyStateClosing:
121 return ASCIILiteral("closing"); 121 return ASCIILiteral("closing");
122 case ReadyStateClosed: 122 case ReadyStateClosed:
123 return ASCIILiteral("closed"); 123 return ASCIILiteral("closed");
124 } 124 }
125 125
126 ASSERT_NOT_REACHED(); 126 ASSERT_NOT_REACHED();
127 return String(); 127 return String();
128 } 128 }
129 129
130 unsigned long RTCDataChannel::bufferedAmount() const 130 unsigned RTCDataChannel::bufferedAmount() const
131 { 131 {
132 return m_handler->bufferedAmount(); 132 return m_handler->bufferedAmount();
133 } 133 }
134 134
135 String RTCDataChannel::binaryType() const 135 String RTCDataChannel::binaryType() const
136 { 136 {
137 switch (m_binaryType) { 137 switch (m_binaryType) {
138 case BinaryTypeBlob: 138 case BinaryTypeBlob:
139 return ASCIILiteral("blob"); 139 return ASCIILiteral("blob");
140 case BinaryTypeArrayBuffer: 140 case BinaryTypeArrayBuffer:
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 events.swap(m_scheduledEvents); 304 events.swap(m_scheduledEvents);
305 305
306 Vector<RefPtr<Event> >::iterator it = events.begin(); 306 Vector<RefPtr<Event> >::iterator it = events.begin();
307 for (; it != events.end(); ++it) 307 for (; it != events.end(); ++it)
308 dispatchEvent((*it).release()); 308 dispatchEvent((*it).release());
309 309
310 events.clear(); 310 events.clear();
311 } 311 }
312 312
313 } // namespace WebCore 313 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCDataChannel.h ('k') | Source/modules/speech/SpeechGrammarList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698