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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.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: ui/views/widget/desktop_aura/desktop_native_widget_aura.h
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.h b/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
index c26ff96015ef923e8f93d3fda1f5c94ef63a4050..a6cc308266309ae1f7db898bc3f591777f046c8f 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.h
@@ -150,6 +150,7 @@ class VIEWS_EXPORT DesktopNativeWidgetAura
virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
virtual bool IsAlwaysOnTop() const OVERRIDE;
virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE;
+ virtual void SetInterceptAllKeys(bool want_all_keys) OVERRIDE;
virtual void Maximize() OVERRIDE;
virtual void Minimize() OVERRIDE;
virtual bool IsMaximized() const OVERRIDE;
@@ -295,6 +296,9 @@ class VIEWS_EXPORT DesktopNativeWidgetAura
bool restore_focus_on_activate_;
bool restore_focus_on_window_focus_;
+ // Should all keys be intercepted while the window is in focus.
+ bool intercept_all_keys_on_focus_;
+
gfx::NativeCursor cursor_;
// We must manually reference count the number of users of |cursor_manager_|
// because the cursors created by |cursor_manager_| are shared among the

Powered by Google App Engine
This is Rietveld 408576698