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

Unified Diff: chrome/common/extensions/api/app_window.idl

Issue 116083008: Document fullscreen/ESC behaviour. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/app_window.idl
diff --git a/chrome/common/extensions/api/app_window.idl b/chrome/common/extensions/api/app_window.idl
index 9b3dabd9a4dda55613c57a8eeff2def3c4b28ef2..9f6a6acb7992efff7cb3fef7a4754139a0c2f84b 100644
--- a/chrome/common/extensions/api/app_window.idl
+++ b/chrome/common/extensions/api/app_window.idl
@@ -135,7 +135,13 @@ namespace app.window {
// Focus the window.
static void focus();
- // Fullscreens the window.
+ // Fullscreens the window.<br>
+ // The user will be able to restore the window by pressing ESC. An
+ // application can prevent the fullscreen state to be left when ESC is
+ // pressed by requesting the <b>overrideEscFullscreen</b> permission and
+ // canceling the event by calling .preventDefault(), like this:<br>
+ // <code>window.onKeyDown = function(e) { if (e.keyCode == 27 /* ESC */) {
+ // e.preventDefault(); } };</code>
static void fullscreen();
// Is the window fullscreen?
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698