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

Side by Side Diff: Source/modules/mediastream/RTCDTMFSender.h

Issue 337343002: IDL: make optional arguments (without default) explicit sometimes Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-default-arguments-next
Patch Set: Created 6 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
OLDNEW
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 static RTCDTMFSender* create(ExecutionContext*, WebRTCPeerConnectionHandler* , MediaStreamTrack*, ExceptionState&); 49 static RTCDTMFSender* create(ExecutionContext*, WebRTCPeerConnectionHandler* , MediaStreamTrack*, ExceptionState&);
50 virtual ~RTCDTMFSender(); 50 virtual ~RTCDTMFSender();
51 51
52 bool canInsertDTMF() const; 52 bool canInsertDTMF() const;
53 MediaStreamTrack* track() const; 53 MediaStreamTrack* track() const;
54 String toneBuffer() const; 54 String toneBuffer() const;
55 long duration() const { return m_duration; } 55 long duration() const { return m_duration; }
56 long interToneGap() const { return m_interToneGap; } 56 long interToneGap() const { return m_interToneGap; }
57 57
58 void insertDTMF(const String& tones, ExceptionState&);
59 void insertDTMF(const String& tones, long duration, ExceptionState&);
60 void insertDTMF(const String& tones, long duration, long interToneGap, Excep tionState&); 58 void insertDTMF(const String& tones, long duration, long interToneGap, Excep tionState&);
61 59
62 DEFINE_ATTRIBUTE_EVENT_LISTENER(tonechange); 60 DEFINE_ATTRIBUTE_EVENT_LISTENER(tonechange);
63 61
64 // EventTarget 62 // EventTarget
65 virtual const AtomicString& interfaceName() const OVERRIDE; 63 virtual const AtomicString& interfaceName() const OVERRIDE;
66 virtual ExecutionContext* executionContext() const OVERRIDE; 64 virtual ExecutionContext* executionContext() const OVERRIDE;
67 65
68 // ActiveDOMObject 66 // ActiveDOMObject
69 virtual void stop() OVERRIDE; 67 virtual void stop() OVERRIDE;
(...skipping 17 matching lines...) Expand all
87 85
88 bool m_stopped; 86 bool m_stopped;
89 87
90 Timer<RTCDTMFSender> m_scheduledEventTimer; 88 Timer<RTCDTMFSender> m_scheduledEventTimer;
91 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; 89 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents;
92 }; 90 };
93 91
94 } // namespace blink 92 } // namespace blink
95 93
96 #endif // RTCDTMFSender_h 94 #endif // RTCDTMFSender_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/InspectorIndexedDBAgent.cpp ('k') | Source/modules/mediastream/RTCDTMFSender.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698