diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-26 17:09:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-26 17:09:11 -0800 |
commit | b47f101d59dc7288f1488431f5db02e9b9922e97 (patch) | |
tree | aff47953746f588b7748c9fc8acfeb33520521aa /system | |
parent | 202a13e9bb409cf320dd19f3aff48b77ba934fb2 (diff) | |
parent | 793eb176a0c777d91941cb17386de0f5da981bac (diff) |
Merge pull request #2165 from juj/fs_element_size1.12.3
Fullscreen element sizes
Diffstat (limited to 'system')
-rw-r--r-- | system/include/emscripten/html5.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/include/emscripten/html5.h b/system/include/emscripten/html5.h index 06c647bf..6109d87f 100644 --- a/system/include/emscripten/html5.h +++ b/system/include/emscripten/html5.h @@ -388,9 +388,16 @@ typedef struct EmscriptenFullscreenChangeEvent { // Specifies if the current page has the ability to display elements fullscreen. EM_BOOL fullscreenEnabled; // The nodeName of the target HTML Element that is in full screen mode. See https://developer.mozilla.org/en-US/docs/Web/API/Node.nodeName + // If isFullscreen is false, then nodeName, id and elementWidth/Height specify information about the element that just exited fullscreen mode. EM_UTF8 nodeName[128]; // The HTML Element ID of the target HTML element that is in full screen mode. EM_UTF8 id[128]; + // The new pixel size of the element that changed fullscreen status. + int elementWidth; + int elementHeight; + // The size of the whole screen, in pixels. + int screenWidth; + int screenHeight; } EmscriptenFullscreenChangeEvent; /* |