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

Unified Diff: extensions/browser/app_window/native_app_window.h

Issue 944123003: Hack webapp to request keyboard events on connection. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hacked up chromoting client and using mouse lock instead of keyboard lock for bubble. Created 5 years, 10 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: 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 0bcb65d44f653c66d84062a84e36fd52fc2cd584..9435ce124ebd01e0cf16761a97d9d4fad895adf0 100644
--- a/extensions/browser/app_window/native_app_window.h
+++ b/extensions/browser/app_window/native_app_window.h
@@ -15,6 +15,7 @@
namespace content {
struct NativeWebKeyboardEvent;
+class WebContents;
}
namespace extensions {
@@ -58,6 +59,12 @@ class NativeAppWindow : public ui::BaseWindow,
// switching keys.
virtual void SetInterceptAllKeys(bool want_all_keys) = 0;
+ // Handle key before content receives it.
+ virtual bool PreHandleKeyboardEvent(
+ content::WebContents* source,
+ const content::NativeWebKeyboardEvent& event,
+ bool* is_keyboard_shortcut) = 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