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

Unified Diff: extensions/common/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: Sync to TOT Created 6 years, 1 month 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: extensions/common/api/app_window.idl
diff --git a/extensions/common/api/app_window.idl b/extensions/common/api/app_window.idl
index f814cc66aac69fc362cabca2e9258038ab19cdb0..4a6cac7492d3a65de7aee026efb45cdd83e1da20 100644
--- a/extensions/common/api/app_window.idl
+++ b/extensions/common/api/app_window.idl
@@ -384,6 +384,12 @@ namespace app.window {
// This is only available on dev channel.
static void setVisibleOnAllWorkspaces(boolean alwaysVisible);
+ // 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;
« no previous file with comments | « extensions/common/api/app_current_window_internal.idl ('k') | extensions/common/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698