Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6110)

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.js

Issue 2428383006: Decouple VR Shell DPR and CSS size from Physical Displays. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/vr_shell/vr_shell_ui_api.js
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
index 8e2fca19573b11132be1c014c3eda7df38f803f0..1a7709fba7c0280f9c6cdc86b95213d06b38d126 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
@@ -101,6 +101,13 @@ var api = (function() {
}
/**
+ * Triggers an Action.
cjgrant 2016/11/29 20:28:06 This needs to be updated.
mthiesse 2016/11/29 21:07:21 Done.
+ */
+ function setCssSize(width, height, dpr) {
+ chrome.send('setCssSize', [width, height, dpr]);
+ }
+
+ /**
* Represents updates to UI element properties. Any properties set on this
* object are relayed to an underlying native element via scene command.
* Properties that are not set on this object are left unchanged.
@@ -306,5 +313,6 @@ var api = (function() {
Animation: Animation,
doAction: doAction,
domLoaded: domLoaded,
+ setCssSize: setCssSize,
};
})();

Powered by Google App Engine
This is Rietveld 408576698