Blame devtools/client/responsive.html/actions/display-pixel-ratio.js
|
Packit |
f0b94e |
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
f0b94e |
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
f0b94e |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
Packit |
f0b94e |
|
|
Packit |
f0b94e |
"use strict";
|
|
Packit |
f0b94e |
|
|
Packit |
f0b94e |
const { CHANGE_DISPLAY_PIXEL_RATIO } = require("./index");
|
|
Packit |
f0b94e |
|
|
Packit |
f0b94e |
module.exports = {
|
|
Packit |
f0b94e |
|
|
Packit |
f0b94e |
/**
|
|
Packit |
f0b94e |
* The pixel ratio of the display has changed. This may be triggered by the user
|
|
Packit |
f0b94e |
* when changing the monitor resolution, or when the window is dragged to a different
|
|
Packit |
f0b94e |
* display with a different pixel ratio.
|
|
Packit |
f0b94e |
*/
|
|
Packit |
f0b94e |
changeDisplayPixelRatio(displayPixelRatio) {
|
|
Packit |
f0b94e |
return {
|
|
Packit |
f0b94e |
type: CHANGE_DISPLAY_PIXEL_RATIO,
|
|
Packit |
f0b94e |
displayPixelRatio,
|
|
Packit |
f0b94e |
};
|
|
Packit |
f0b94e |
},
|
|
Packit |
f0b94e |
|
|
Packit |
f0b94e |
};
|