Граф коммитов

30 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru 804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Jean-Yves Avenard 1e749d1b68 Bug 1331696 - P3. Remove direct audio support from speech synth. r=eeejay
MozReview-Commit-ID: E1UKOOvwUOe

--HG--
extra : rebase_source : 82f36e82d70a6ece15becc732dcf3c4fc4645920
2017-12-02 09:13:35 +01:00
arthur.iakab 4dcbca110a Backed out 3 changesets (bug 1331696) for failing browser chrome on toolkit/components/narrate/test/browser_narrate.js r=backout on a CLOSED TREE
Backed out changeset 4f5d0c5f191b (bug 1331696)
Backed out changeset ce87e2d2f1db (bug 1331696)
Backed out changeset e2c5f5afb6fc (bug 1331696)
2017-12-07 00:25:35 +02:00
Jean-Yves Avenard 9e40aac1a1 Bug 1331696 - P3. Remove direct audio support from speech synth. r=eeejay
MozReview-Commit-ID: E1UKOOvwUOe

--HG--
extra : rebase_source : c955b0f33a86c7d84ce28d8ba7d838338b5c1cf4
2017-12-02 09:13:35 +01:00
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
Makoto Kato 75cfb3ee47 Bug 1356503 - Part 2. Replace nsWin32Locale::GetXPLocale with LCIDToLocaleName (webspeech part). r=eeejay
Since our platform support is Windows 7+, we can replace nsWin32Locale::GetXPLocale with LCIDToLocaleName.

MozReview-Commit-ID: Tboh4P6cLc

--HG--
extra : rebase_source : 7dd6614b0aca25e82d194d104409400e1cc6b4a8
2017-04-27 12:40:30 +09:00
Eitan Isaacson 79929567ac Bug 1318137 - Added charLength to speech synth boundary events. r=m_kato,smaug
MozReview-Commit-ID: 2B9gM3wmEVQ

--HG--
extra : rebase_source : 4a871e8eac27678d387d61f11830019189b90b53
2016-11-16 17:22:36 -08:00
Eitan Isaacson f9db412633 Bug 1279842 - Explicitly escape markup instead of using generic HTML escape function. r=m_kato
MozReview-Commit-ID: 2vk8lffmDh4

--HG--
extra : rebase_source : b01c1f922b9cd88b33b1732c46d069c6ce0a7935
2016-09-21 10:33:45 -07:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Jonathan Watt b15368cfcb Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Makoto Kato 6a497d128a Bug 1238522 - Don't use float type for absmiddle attirubte. r=eeejay
SAPI's absmiddle attibute doesn't allow float type.  Example, when pitch was 0.75, abmiddle was -2.5.  So ISpVoice.Speak() will return error.

MozReview-Commit-ID: 2AnrSEDTFkl

--HG--
extra : rebase_source : 155733e3ef8d28970318b0cb47b98fa0d26edf58
2016-05-13 13:23:52 +09:00
Makoto Kato 283296d609 Bug 1258526 - Create SAPI object per speech to clear previous speech state at force. r=eeejay
When using the following script, stop method cannot clear pause state on SAPI backend.

speech.pause();
speech.stop();

Since SPF_PURGEBEFORESPEAK doesn't clear previous speech state, we should create SAPI object per speech instead of recycling it.


MozReview-Commit-ID: 2ajsTbauQpO

--HG--
extra : rebase_source : b72d3e1215e136f204afda18497b042112002995
2016-05-06 17:33:20 +09:00
Makoto Kato d5fe2ef744 Bug 1237546 - Use nsEscapeHTML2 for speech text. r=eitan 2016-05-02 03:46:00 +02:00
Eitan Isaacson 820a2aca9c Bug 1254378 - Implement nsISynthVoiceRegistry.notifyVoicesChanged. r=smaug
MozReview-Commit-ID: DIRcnw5Rfnc

--HG--
extra : rebase_source : b8d5b034a8a27e06b67f959eb837732d8f7a5804
2016-03-23 10:38:18 -07:00
Eitan Isaacson 1fd9961689 Bug 1254378 - Make new 'speech-synth-started' component service category. r=smaug
MozReview-Commit-ID: LsPDCdpUA48

--HG--
extra : rebase_source : 5ebebebb601a54959c49d9e4b87c8f96be4ff2c7
2016-03-23 10:32:58 -07:00
Eitan Isaacson 19dc2d2aab Bug 1256521 - Normalize speech rate in Windows. r=smaug
MozReview-Commit-ID: EuQAqfoxwmo
2016-03-16 13:42:50 -07:00
David Rajchenbach-Teller 583ca7286d Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
--HG--
extra : rebase_source : 39e94507c0288863e495322a6899ff009840870d
2016-01-15 11:38:03 +01:00
Sebastian Hengst d8d4a2d1a5 Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
Backed out changeset 5f458e6e4997 (bug 1224374)
Backed out changeset 0dc02cb0b604 (bug 1224374)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller 2d53758d08 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
--HG--
extra : rebase_source : 51d39d6f88bf58ccb29f5897c3dbbe71007ee842
2016-01-15 11:38:03 +01:00
Makoto Kato 2f8f4466aa Bug 1230428 - Part 1. Check mTask since end event is posted asynchronized. r=eeejay 2015-12-10 13:45:26 -05:00
Makoto Kato 9e188a4569 Bug 1228134 - Should check media.webspeech.synth.enabled on Windows SAPI backend. r=eeejay 2015-12-02 13:42:23 +09:00
Makoto Kato 73f2fbe016 Bug 1202735 - Add nsIObserver to avoid warning. r=eeejay 2015-11-19 10:10:23 +09:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Makoto Kato 553bc8663c Bug 1191667 - Part 1. Add onVolumeChanged method to nsISpeechTaskCallback. r=eitan 2015-09-01 17:50:51 +09:00
Eitan Isaacson 78b76a01ef Bug 1188099 - (Part 1) Enable/disable global queue depending on voices and pref. r=smaug r=kdavis 2015-08-08 10:30:46 -07:00
Ryan VanderMeulen 15a4eba21b Backed out 4 changesets (bug 1188099) for B2G test failures and crashes.
Backed out changeset f89e9a209c6c (bug 1188099)
Backed out changeset e5b42fb931a6 (bug 1188099)
Backed out changeset a300bd34d135 (bug 1188099)
Backed out changeset 02f399ce296d (bug 1188099)
2015-08-05 14:36:49 -04:00
Eitan Isaacson 7b8c1c2bb9 Bug 1188099 - (Part 1) Enable/disable global queue depending on voices and pref. r=smaug r=kdavis 2015-08-05 10:25:42 -07:00
Jacek Caban 57615ea370 Bug 1188457 - Fixed SapiService.cpp compilation on mingw. r=jimm 2015-07-29 12:27:22 +02:00
Makoto Kato 4b4ac7d1cb Bug 1187155 - Remove sphelper.h dependency to avoid ATL. r=jimm 2015-07-27 12:34:27 +09:00
Makoto Kato 3d5598225f Bug 1003457 - Implement Windows SAPI backend. Original patch is by yash.girhar@gmail.com. r=jmathies 2015-07-23 17:16:25 -07:00