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

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: Update based on sky's comments Created 6 years, 5 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
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 e5055c2cbcc41c4a39b98c4e892388d976eb3a32..b62f84b1146f00bb0e600f027cd9b352117c09e9 100644
--- a/chrome/common/extensions/api/app_window.idl
+++ b/chrome/common/extensions/api/app_window.idl
@@ -369,6 +369,12 @@ namespace app.window {
// TODO(jackhou): Document this properly before going to stable.
[nodoc] static boolean alphaEnabled();
+ // Set whether the window should get all keyboard events including system
+ // keys that are usually not sent. This is best-effort subject to platform
+ // specific constraints. Requires the <code>"app.window.allKeys"</code>
+ // permission.
+ static void setInterceptAllKeys(boolean wantAllKeys);
benwells 2014/08/01 00:32:43 It would be mentioned that this is only available
Sriram 2014/08/11 21:01:28 Done.
+
// The JavaScript 'window' object for the created child.
[instanceOf=Window] object contentWindow;

Powered by Google App Engine
This is Rietveld 408576698