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

Unified Diff: apps/ui/native_app_window.h

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: apps/ui/native_app_window.h
diff --git a/apps/ui/native_app_window.h b/apps/ui/native_app_window.h
index fd0cc2633718e7523be5e5edf81fc7dfcffe44f6..c5cdcbe426d95f501b98cbc755ff3bff49e7f509 100644
--- a/apps/ui/native_app_window.h
+++ b/apps/ui/native_app_window.h
@@ -49,6 +49,10 @@ class NativeAppWindow : public ui::BaseWindow,
// window is restored to the default shape.
virtual void UpdateShape(scoped_ptr<SkRegion> region) = 0;
+ // Set whether the window should receive all keyboard events including task
+ // switching keys.
+ virtual void SetInterceptAllKeys(bool want_all_keys) = 0;
+
// Allows the window to handle unhandled keyboard messages coming back from
// the renderer.
virtual void HandleKeyboardEvent(

Powered by Google App Engine
This is Rietveld 408576698