Skip to content

Commit

Permalink
SelfVoicingUtterance -> VoicingUtterance, see phetsims/tasks#1083
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Mar 24, 2021
1 parent 5e2794b commit 9cbd391
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions js/view/CustomGestureIntroDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import VBox from '../../../scenery/js/nodes/VBox.js';
import TextPushButton from '../../../sun/js/buttons/TextPushButton.js';
import Dialog from '../../../sun/js/Dialog.js';
import HSlider from '../../../sun/js/HSlider.js';
import SelfVoicingUtterance from '../../../utterance-queue/js/SelfVoicingUtterance.js';
import VoicingUtterance from '../../../utterance-queue/js/VoicingUtterance.js';

// constants
const contentFont = new PhetFont( 16 );
Expand Down Expand Up @@ -68,7 +68,7 @@ class CustomGestureIntroDialog extends Dialog {
} );

const speakDescriptionParagraph = () => {
const utterance = new SelfVoicingUtterance( {
const utterance = new VoicingUtterance( {
alert: dialogDescriptionString,
cancelOther: false
} );
Expand Down Expand Up @@ -148,7 +148,7 @@ class CustomGestureIntroDialog extends Dialog {
}
} );

const valueChangeUtterance = new SelfVoicingUtterance();
const valueChangeUtterance = new VoicingUtterance();
exampleSliderProperty.lazyLink( value => {
valueChangeUtterance.alert = `${value}`;
phet.joist.sim.voicingUtteranceQueue.addToBack( valueChangeUtterance );
Expand All @@ -160,7 +160,7 @@ class CustomGestureIntroDialog extends Dialog {
positionOnValueChange = event.pointer.point;
};
exampleSlider.swipeEnd = () => {
const releasedAlert = new SelfVoicingUtterance( {
const releasedAlert = new VoicingUtterance( {
cancelOther: false,
alert: releasedString
} );
Expand Down
4 changes: 2 additions & 2 deletions js/view/GestureControlledSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import levelSpeakerModel from '../../../scenery-phet/js/accessibility/speaker/le
import SelfVoicingInputListener from '../../../scenery-phet/js/accessibility/speaker/SelfVoicingInputListener.js';
import sceneryPhetStrings from '../../../scenery-phet/js/sceneryPhetStrings.js';
import Slider from '../../../sun/js/Slider.js';
import SelfVoicingUtterance from '../../../utterance-queue/js/SelfVoicingUtterance.js';
import VoicingUtterance from '../../../utterance-queue/js/VoicingUtterance.js';
import tappi from '../tappi.js';
import ValueGestureControl from './ValueGestureControl.js';

Expand Down Expand Up @@ -53,7 +53,7 @@ class GestureControlledSlider extends Slider {

// the released utterance shouldn't cancel other utterances describing the changing
// value of the slider
const releasedUtterance = new SelfVoicingUtterance( {
const releasedUtterance = new VoicingUtterance( {
alert: releasedString,
cancelOther: false
} );
Expand Down

0 comments on commit 9cbd391

Please sign in to comment.