зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1326445 - Remove Gonk specific video controls. r=jaws
MozReview-Commit-ID: 75Ui045M21V --HG-- extra : rebase_source : a04bffedb153ad5ef37f15145695a8bf79c09c44
This commit is contained in:
Родитель
560afd3f8e
Коммит
3ab5230464
|
@ -95,7 +95,7 @@ xul|scrollbarbutton {
|
|||
%ifndef MOZ_GRAPHENE
|
||||
/* -moz-touch-enabled? media elements */
|
||||
:-moz-any(video, audio) > xul|videocontrols {
|
||||
-moz-binding: url("chrome://global/content/bindings/videocontrols.xml#touchControlsGonk");
|
||||
-moz-binding: url("chrome://global/content/bindings/videocontrols.xml#touchControls");
|
||||
}
|
||||
|
||||
select:not([size]):not([multiple]) > xul|scrollbar,
|
||||
|
|
|
@ -860,14 +860,7 @@
|
|||
seekToPosition(newPosition) {
|
||||
newPosition /= 1000; // convert from ms
|
||||
this.log("+++ seeking to " + newPosition);
|
||||
if (this.videocontrols.isGonk) {
|
||||
// We use fastSeek() on B2G, and an accurate (but slower)
|
||||
// seek on other platforms (that are likely to be higher
|
||||
// perf).
|
||||
this.video.fastSeek(newPosition);
|
||||
} else {
|
||||
this.video.currentTime = newPosition;
|
||||
}
|
||||
this.video.currentTime = newPosition;
|
||||
},
|
||||
|
||||
setVolume(newVolume) {
|
||||
|
@ -2050,14 +2043,6 @@
|
|||
|
||||
</binding>
|
||||
|
||||
<binding id="touchControlsGonk" extends="chrome://global/content/bindings/videocontrols.xml#touchControls">
|
||||
<implementation>
|
||||
<constructor>
|
||||
this.isGonk = true;
|
||||
</constructor>
|
||||
</implementation>
|
||||
</binding>
|
||||
|
||||
<binding id="noControls">
|
||||
|
||||
<resources>
|
||||
|
|
Загрузка…
Ссылка в новой задаче