summaryrefslogtreecommitdiff
path: root/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h')
-rw-r--r--chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h b/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
index db66147f0e9..732f492c102 100644
--- a/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
+++ b/chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
@@ -5,6 +5,9 @@
#ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
#define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
+#include <memory>
+#include <string>
+
#include "base/macros.h"
#include "ui/aura/window_tree_host.h"
#include "ui/views/views_export.h"
@@ -21,6 +24,7 @@ class FocusClient;
namespace ui {
class InputMethod;
+class KeyboardHook;
} // namespace ui
namespace wm {
@@ -127,6 +131,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin
gfx::Point GetLocationOnScreenInPixels() const override;
void SetCapture() override;
void ReleaseCapture() override;
+ bool CaptureSystemKeyEventsImpl(
+ base::Optional<base::flat_set<int>> keys_codes) override;
+ void ReleaseSystemKeyEventCapture() override;
void SetCursorNative(gfx::NativeCursor cursor) override;
void OnCursorVisibilityChangedNative(bool show) override;
void MoveCursorToScreenLocationInPixels(
@@ -163,7 +170,6 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin
gfx::Size DIPToScreenSize(const gfx::Size& dip_size) const override;
void ResetWindowControls() override;
gfx::NativeViewAccessible GetNativeViewAccessible() override;
- bool ShouldHandleSystemCommands() const override;
void HandleAppDeactivated() override;
void HandleActivationChanged(bool active) override;
bool HandleAppCommand(short command) override;
@@ -281,6 +287,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin
// whenever the cursor visibility state changes.
static bool is_cursor_visible_;
+ // Captures system key events when keyboard lock is requested.
+ std::unique_ptr<ui::KeyboardHook> keyboard_hook_;
+
std::unique_ptr<wm::ScopedTooltipDisabler> tooltip_disabler_;
// Indicates if current window will receive mouse events when should not