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

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

Issue 297123002: API proposal for chrome.app.window to intercept all keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « chrome/common/extensions/api/_permission_features.json ('k') | 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 b08037bf327bddf1dfbb1ba6e508493e54cff19d..67906ab3457204882331958ba5138060702c102a 100644
--- a/chrome/common/extensions/api/app_window.idl
+++ b/chrome/common/extensions/api/app_window.idl
@@ -351,6 +351,12 @@ namespace app.window {
// <code>"alwaysOnTopWindows"</code> permission.
static void setAlwaysOnTop(boolean alwaysOnTop);
+ // Set whether the window should get all keyboard events including system
+ // keys that are usually not sent. This currently works only when the
+ // windows is in fullscreen. Requires the <code>"app.window.allKeys"</code>
+ // permission.
+ static void setWantAllKeys(boolean wantAllKeys);
+
// The JavaScript 'window' object for the created child.
[instanceOf=Window] object contentWindow;
@@ -435,5 +441,11 @@ namespace app.window {
// Event for testing. Lets tests wait until a window has been shown.
[nocompile, nodoc] static void onWindowFirstShown();
+
+ // Fired when WantAllKeys setting is in effect.
+ [nocompile] static void onWantAllKeysSettingEffective();
+
+ // Fired when WantAllKeys setting is no longer in effect.
+ [nocompile] static void onWantAllKeysSettingLost();
Jamie 2014/06/25 16:46:58 As discussed off-line, I think one event and a get
};
};
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698