Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions site/source/docs/api_reference/html5.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The HTML5 specifications for APIs that are mapped by **html5.h** include:
- `Pointer Lock Events for relative-mode mouse motion control <https://www.w3.org/TR/pointerlock/>`_.
- `Vibration API for mobile device haptic vibration feedback control
<https://www.w3.org/TR/vibration/>`_.
- `Page Visibility Events for power management control <https://www.w3.org/TR/page-visibility/>`_.
- `Page Visibility Events for power management control <https://html.spec.whatwg.org/multipage/interaction.html#page-visibility>`_.
- `Touch Events <https://www.w3.org/TR/touch-events/>`_.
- `Gamepad API <https://www.w3.org/TR/gamepad/>`_.
- `Beforeunload event
Expand Down Expand Up @@ -1559,31 +1559,31 @@ Defines

.. c:macro:: EMSCRIPTEN_EVENT_VISIBILITYCHANGE

Emscripten `visibilitychange <https://www.w3.org/TR/page-visibility>`__ event.
Emscripten `visibilitychange <https://html.spec.whatwg.org/multipage/indices.html#event-visibilitychange>`__ event.

.. c:macro:: EMSCRIPTEN_VISIBILITY_HIDDEN

The document is `hidden <https://www.w3.org/TR/page-visibility/#pv-page-hidden>`_ (not visible).
The document is `hidden <https://html.spec.whatwg.org/multipage/interaction.html#page-visibility>`_ (not visible).

.. c:macro:: EMSCRIPTEN_VISIBILITY_VISIBLE

The document is at least partially `visible <https://www.w3.org/TR/page-visibility/#pv-page-visible>`_.
The document is at least partially `visible <https://html.spec.whatwg.org/multipage/interaction.html#page-visibility>`_.

.. c:macro:: EMSCRIPTEN_VISIBILITY_PRERENDER

The document is loaded off screen and not visible (`prerender <https://www.w3.org/TR/page-visibility/#pv-prerender>`_).
The document is loaded off screen and not visible (prerender). This is a legacy state that is no longer part of the specification, and is not reported by current browsers.

.. c:macro:: EMSCRIPTEN_VISIBILITY_UNLOADED

The document is to be `unloaded <https://www.w3.org/TR/page-visibility/#pv-unloaded>`_.
The document is to be unloaded. This is a legacy state that is no longer part of the specification, and is not reported by current browsers.


Struct
------

.. c:type:: EmscriptenVisibilityChangeEvent

The event structure passed in the `visibilitychange <https://www.w3.org/TR/page-visibility/>`__ event.
The event structure passed in the `visibilitychange <https://html.spec.whatwg.org/multipage/indices.html#event-visibilitychange>`__ event.

.. c:member:: bool hidden

Expand Down Expand Up @@ -1619,7 +1619,7 @@ Functions

.. c:function:: EMSCRIPTEN_RESULT emscripten_set_visibilitychange_callback(void *userData, bool useCapture, em_visibilitychange_callback_func callback)

Registers a callback function for receiving the `visibilitychange <https://www.w3.org/TR/page-visibility/>`_ event.
Registers a callback function for receiving the `visibilitychange <https://html.spec.whatwg.org/multipage/indices.html#event-visibilitychange>`_ event.

:param void* userData: |userData-parameter-doc|
:param bool useCapture: |useCapture-parameter-doc|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Specific Browser Limitations

This page lists some of the differences between the latest versions of the major browsers that are relevant to Emscripten-compiled applications and games:

- The function :c:func:`emscripten_get_now` returns a wallclock time as a ``float`` in milliseconds. *Opera 12.16* and `Windows Google Chrome 28.0.1500.95 <https://code.google.com/p/chromium/issues/detail?id=158234>`_ have a limitation that the timer precision is only in milliseconds. On other major browsers (*IE10*, *Firefox 22*, *Chrome 28* on non-Windows) it has sub-millisecond precision.
- The function :c:func:`emscripten_get_now` returns a wallclock time as a ``float`` in milliseconds. *Opera 12.16* and `Windows Google Chrome 28.0.1500.95 <https://crbug.com/158234>`_ have a limitation that the timer precision is only in milliseconds. On other major browsers (*IE10*, *Firefox 22*, *Chrome 28* on non-Windows) it has sub-millisecond precision.
- WebGL is not fully supported on *Internet Explorer*:

- *Internet Explorer 10* and older do not support WebGL. Trying to initialize a GL context via EGL, GLUT, SDL or similar will fail. Emscripten applications that do not depend on OpenGL can still run on this browser.
Expand Down
4 changes: 2 additions & 2 deletions site/source/docs/tools_reference/settings_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ ALLOW_MEMORY_GROWTH
If false, we abort with an error if we try to allocate more memory than
we can (INITIAL_MEMORY). If true, we will grow the memory arrays at
runtime, seamlessly and dynamically.
See https://code.google.com/p/v8/issues/detail?id=3907 regarding
See https://crbug.com/v8/3907 regarding
memory growth performance in chrome.
Note that growing memory means we replace the JS typed array views, as
once created they cannot be resized. (In wasm we can grow the Memory, but
Expand Down Expand Up @@ -881,7 +881,7 @@ LEGACY_GL_EMULATION

Includes code to emulate various desktop GL features. Incomplete but useful
in some cases, see
http://kripken.github.io/emscripten-site/docs/porting/multimedia_and_graphics/OpenGL-support.html
https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html

Default value: false

Expand Down
2 changes: 1 addition & 1 deletion src/preamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// site/build/text/docs/api_reference/preamble.js.txt
// You can also build docs locally as HTML or other formats in site/
// An online HTML version (which may be of a different version of Emscripten)
// is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
// is up at https://emscripten.org/docs/api_reference/preamble.js.html

#if MAIN_MODULE
{{{ makeModuleReceiveWithVar('dynamicLibraries', undefined, '[]') }}}
Expand Down
4 changes: 2 additions & 2 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ var MAXIMUM_MEMORY = 2147483648;
// If false, we abort with an error if we try to allocate more memory than
// we can (INITIAL_MEMORY). If true, we will grow the memory arrays at
// runtime, seamlessly and dynamically.
// See https://code.google.com/p/v8/issues/detail?id=3907 regarding
// See https://crbug.com/v8/3907 regarding
// memory growth performance in chrome.
// Note that growing memory means we replace the JS typed array views, as
// once created they cannot be resized. (In wasm we can grow the Memory, but
Expand Down Expand Up @@ -504,7 +504,7 @@ var FULL_ES3 = false;

// Includes code to emulate various desktop GL features. Incomplete but useful
// in some cases, see
// http://kripken.github.io/emscripten-site/docs/porting/multimedia_and_graphics/OpenGL-support.html
// https://emscripten.org/docs/porting/multimedia_and_graphics/OpenGL-support.html
var LEGACY_GL_EMULATION = false;

// If you specified LEGACY_GL_EMULATION = 1 and only use fixed function pipeline
Expand Down
2 changes: 1 addition & 1 deletion system/include/emscripten/emscripten.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* site/build/text/docs/api_reference/emscripten.h.txt
* You can also build docs locally as HTML or other formats in site/
* An online HTML version (which may be of a different version of Emscripten)
* is up at http://kripken.github.io/emscripten-site/docs/api_reference/emscripten.h.html
* is up at https://emscripten.org/docs/api_reference/emscripten.h.html
*/

#include "em_asm.h"
Expand Down
2 changes: 1 addition & 1 deletion system/include/emscripten/html5.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extern "C" {
* site/source/docs/api_reference/html5.h.rst
* You can also build docs locally as HTML or other formats in site/
* An online HTML version (which may be of a different version of Emscripten)
* is up at http://kripken.github.io/emscripten-site/docs/api_reference/html5.h.html
* is up at https://emscripten.org/docs/api_reference/html5.h.html
*/

#define EMSCRIPTEN_EVENT_KEYPRESS 1
Expand Down
Loading