Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ |
michael@0 | 2 | /* vim: set ts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 5 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | include protocol PContent; |
michael@0 | 8 | include protocol PSpeechSynthesisRequest; |
michael@0 | 9 | |
michael@0 | 10 | namespace mozilla { |
michael@0 | 11 | namespace dom { |
michael@0 | 12 | |
michael@0 | 13 | struct RemoteVoice { |
michael@0 | 14 | nsString voiceURI; |
michael@0 | 15 | nsString name; |
michael@0 | 16 | nsString lang; |
michael@0 | 17 | bool localService; |
michael@0 | 18 | }; |
michael@0 | 19 | |
michael@0 | 20 | intr protocol PSpeechSynthesis |
michael@0 | 21 | { |
michael@0 | 22 | manager PContent; |
michael@0 | 23 | manages PSpeechSynthesisRequest; |
michael@0 | 24 | |
michael@0 | 25 | child: |
michael@0 | 26 | |
michael@0 | 27 | VoiceAdded(RemoteVoice aVoice); |
michael@0 | 28 | |
michael@0 | 29 | VoiceRemoved(nsString aUri); |
michael@0 | 30 | |
michael@0 | 31 | SetDefaultVoice(nsString aUri, bool aIsDefault); |
michael@0 | 32 | |
michael@0 | 33 | parent: |
michael@0 | 34 | __delete__(); |
michael@0 | 35 | |
michael@0 | 36 | PSpeechSynthesisRequest(nsString aText, nsString aUri, nsString aLang, |
michael@0 | 37 | float aVolume, float aRate, float aPitch); |
michael@0 | 38 | sync ReadVoiceList() returns (RemoteVoice[] aVoices, nsString[] aDefaults); |
michael@0 | 39 | }; |
michael@0 | 40 | |
michael@0 | 41 | } // namespace dom |
michael@0 | 42 | } // namespace mozilla |