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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.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: Return if there is no windows with keyboard focus. 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: ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
index d61080aeae898b6d66a7393c213a6fd5c7f7008c..0f802a46d850f5a60f7bff8d15f5fe17491b976a 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
@@ -22,6 +22,7 @@ class ScopedTooltipDisabler;
namespace views {
class DesktopCursorClient;
class DesktopDragDropClientWin;
+class DesktopKeyboardCaptureWin;
class HWNDMessageHandler;
namespace corewm {
@@ -79,6 +80,7 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin
virtual bool IsMinimized() const OVERRIDE;
virtual bool HasCapture() const OVERRIDE;
virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
+ virtual void SetInterceptAllKeys(bool want_all_keys) OVERRIDE;
virtual bool IsAlwaysOnTop() const OVERRIDE;
virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE;
virtual bool SetWindowTitle(const base::string16& title) OVERRIDE;
@@ -267,6 +269,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin
scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
+ // Maintain keyboard hook request.
+ scoped_ptr<DesktopKeyboardCaptureWin> keyboard_capture_;
+
DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
};

Powered by Google App Engine
This is Rietveld 408576698