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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp

Issue 2389253002: reflow comments in modules/{webaudio,vr} (Closed)
Patch Set: . Created 4 years, 2 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) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 } 100 }
101 101
102 unsigned long DefaultAudioDestinationHandler::maxChannelCount() const { 102 unsigned long DefaultAudioDestinationHandler::maxChannelCount() const {
103 return AudioDestination::maxChannelCount(); 103 return AudioDestination::maxChannelCount();
104 } 104 }
105 105
106 void DefaultAudioDestinationHandler::setChannelCount( 106 void DefaultAudioDestinationHandler::setChannelCount(
107 unsigned long channelCount, 107 unsigned long channelCount,
108 ExceptionState& exceptionState) { 108 ExceptionState& exceptionState) {
109 // The channelCount for the input to this node controls the actual number of c hannels we 109 // The channelCount for the input to this node controls the actual number of
110 // send to the audio hardware. It can only be set depending on the maximum num ber of 110 // channels we send to the audio hardware. It can only be set depending on the
111 // channels supported by the hardware. 111 // maximum number of channels supported by the hardware.
112 112
113 DCHECK(isMainThread()); 113 DCHECK(isMainThread());
114 114
115 if (!maxChannelCount() || channelCount > maxChannelCount()) { 115 if (!maxChannelCount() || channelCount > maxChannelCount()) {
116 exceptionState.throwDOMException( 116 exceptionState.throwDOMException(
117 IndexSizeError, 117 IndexSizeError,
118 ExceptionMessages::indexOutsideRange<unsigned>( 118 ExceptionMessages::indexOutsideRange<unsigned>(
119 "channel count", channelCount, 1, ExceptionMessages::InclusiveBound, 119 "channel count", channelCount, 1, ExceptionMessages::InclusiveBound,
120 maxChannelCount(), ExceptionMessages::InclusiveBound)); 120 maxChannelCount(), ExceptionMessages::InclusiveBound));
121 return; 121 return;
(...skipping 18 matching lines...) Expand all
140 : AudioDestinationNode(context) { 140 : AudioDestinationNode(context) {
141 setHandler(DefaultAudioDestinationHandler::create(*this)); 141 setHandler(DefaultAudioDestinationHandler::create(*this));
142 } 142 }
143 143
144 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create( 144 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(
145 BaseAudioContext* context) { 145 BaseAudioContext* context) {
146 return new DefaultAudioDestinationNode(*context); 146 return new DefaultAudioDestinationNode(*context);
147 } 147 }
148 148
149 } // namespace blink 149 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698