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

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: Added comments to explain logic behind posting instead of directly handling keyboard events. Created 6 years, 4 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..929b52af27a1cf683695fe467b09bbd7081d561a 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. This is currently available only in dev channel on Windows.
+ static void setInterceptAllKeys(boolean wantAllKeys);
+
// The JavaScript 'window' object for the created child.
[instanceOf=Window] object contentWindow;

Powered by Google App Engine
This is Rietveld 408576698