2016-07-06 12:25:58 -07:00
|
|
|
|
define(['inputManager'], function (inputManager) {
|
2016-10-17 22:06:48 -07:00
|
|
|
|
'use strict';
|
2016-02-16 23:58:07 -07:00
|
|
|
|
|
2016-07-06 13:16:56 -07:00
|
|
|
|
function enableDisplayMirror() {
|
|
|
|
|
return function () {
|
|
|
|
|
inputManager.trigger('enabledisplaymirror');
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-16 23:58:07 -07:00
|
|
|
|
return function (result) {
|
2016-07-06 13:16:56 -07:00
|
|
|
|
|
2016-02-16 23:58:07 -07:00
|
|
|
|
switch (result.item.deviceid) {
|
|
|
|
|
case 'displaymirroring':
|
2016-07-06 13:16:56 -07:00
|
|
|
|
return enableDisplayMirror();
|
2016-02-16 23:58:07 -07:00
|
|
|
|
default:
|
|
|
|
|
return;
|
|
|
|
|
}
|
2016-10-17 22:06:48 -07:00
|
|
|
|
};
|
2016-02-16 23:58:07 -07:00
|
|
|
|
|
|
|
|
|
});
|