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

Side by Side Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp

Issue 1901103006: Web MIDI: Replace ASSERT macros with DCHECK macros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 40
41 // Factory method 41 // Factory method
42 PassOwnPtr<MIDIAccessor> MIDIAccessor::create(MIDIAccessorClient* client) 42 PassOwnPtr<MIDIAccessor> MIDIAccessor::create(MIDIAccessorClient* client)
43 { 43 {
44 return adoptPtr(new MIDIAccessor(client)); 44 return adoptPtr(new MIDIAccessor(client));
45 } 45 }
46 46
47 MIDIAccessor::MIDIAccessor(MIDIAccessorClient* client) 47 MIDIAccessor::MIDIAccessor(MIDIAccessorClient* client)
48 : m_client(client) 48 : m_client(client)
49 { 49 {
50 ASSERT(client); 50 DCHECK(client);
51 51
52 m_accessor = adoptPtr(Platform::current()->createMIDIAccessor(this)); 52 m_accessor = adoptPtr(Platform::current()->createMIDIAccessor(this));
53 53
54 ASSERT(m_accessor); 54 DCHECK(m_accessor);
55 } 55 }
56 56
57 void MIDIAccessor::startSession() 57 void MIDIAccessor::startSession()
58 { 58 {
59 m_accessor->startSession(); 59 m_accessor->startSession();
60 } 60 }
61 61
62 void MIDIAccessor::sendMIDIData(unsigned portIndex, const unsigned char* data, s ize_t length, double timeStamp) 62 void MIDIAccessor::sendMIDIData(unsigned portIndex, const unsigned char* data, s ize_t length, double timeStamp)
63 { 63 {
64 m_accessor->sendMIDIData(portIndex, data, length, timeStamp); 64 m_accessor->sendMIDIData(portIndex, data, length, timeStamp);
(...skipping 23 matching lines...) Expand all
88 { 88 {
89 m_client->didStartSession(success, error, message); 89 m_client->didStartSession(success, error, message);
90 } 90 }
91 91
92 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, const unsigned char* d ata, size_t length, double timeStamp) 92 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, const unsigned char* d ata, size_t length, double timeStamp)
93 { 93 {
94 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp); 94 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp);
95 } 95 }
96 96
97 } // namespace blink 97 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698