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

Unified Diff: extensions/browser/app_window/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: Use WidgetObserver instead of plumbing SetKeyboardIntercept through view::Widget 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/browser/app_window/native_app_window.h
diff --git a/extensions/browser/app_window/native_app_window.h b/extensions/browser/app_window/native_app_window.h
index 2c37fe0e801ddd647d5f7a6cc21a58addf360532..bb7e467e6b96a5f5119fc05532ad70545840c2a0 100644
--- a/extensions/browser/app_window/native_app_window.h
+++ b/extensions/browser/app_window/native_app_window.h
@@ -54,6 +54,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