зеркало из https://github.com/mozilla/gecko-dev.git
Bug 944937 - Add a shim for Services.metro on non-Metro platforms. r=mbrubeck
This commit is contained in:
Родитель
1540e74713
Коммит
79b684592a
|
@ -70,6 +70,16 @@ var Browser = {
|
|||
dump("###########" + e + "\n");
|
||||
}
|
||||
|
||||
if (!Services.metro) {
|
||||
// Services.metro is only available on Windows Metro. We want to be able
|
||||
// to test metro on other platforms, too, so we provide a minimal shim.
|
||||
Services.metro = {
|
||||
activationURI: "",
|
||||
pinTileAsync: function () {},
|
||||
unpinTileAsync: function () {}
|
||||
};
|
||||
}
|
||||
|
||||
/* handles dispatching clicks on browser into clicks in content or zooms */
|
||||
Elements.browsers.customDragger = new Browser.MainDragger();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче