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

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: Fix build break pulling in TOT 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: apps/ui/native_app_window.h
diff --git a/apps/ui/native_app_window.h b/apps/ui/native_app_window.h
index fd0cc2633718e7523be5e5edf81fc7dfcffe44f6..0a00ad9c51fa58baf2b749b2252b79c31bd65c65 100644
--- a/apps/ui/native_app_window.h
+++ b/apps/ui/native_app_window.h
@@ -49,6 +49,9 @@ 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 messages from the
+ 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