Commit 71d3e7cb authored by benwells@chromium.org's avatar benwells@chromium.org

Add some doco to app window onClosed event explaining how to use it.

BUG=168147

Review URL: https://codereview.chromium.org/279143002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269751 0039d316-1c4b-4281-b951-d872f2087c98
parent 850ffae8
...@@ -411,7 +411,11 @@ namespace app.window { ...@@ -411,7 +411,11 @@ namespace app.window {
// Fired when the window is resized. // Fired when the window is resized.
[nocompile] static void onBoundsChanged(); [nocompile] static void onBoundsChanged();
// Fired when the window is closed. // Fired when the window is closed. Note, this should be listened to from
// a window other than the window being closed, for example from the
// background page. This is because the window being closed will be in the
// process of being torn down when the event is fired, which means not all
// APIs in the window's script context will be functional.
[nocompile] static void onClosed(); [nocompile] static void onClosed();
// Fired when the window is fullscreened. // Fired when the window is fullscreened.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment