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

Unified Diff: ui/views/widget/desktop_aura/desktop_keyboard_capture_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: Updated based on Ben's CR comments 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_keyboard_capture_win.h
diff --git a/ui/views/widget/desktop_aura/desktop_keyboard_capture_win.h b/ui/views/widget/desktop_aura/desktop_keyboard_capture_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..72e6b62b715842b7a905070ef193cd44ab2f31c7
--- /dev/null
+++ b/ui/views/widget/desktop_aura/desktop_keyboard_capture_win.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_WIDGET_DESKTOP_KEYBOARD_CAPTURE_WIN_H_
+#define UI_VIEWS_WIDGET_DESKTOP_KEYBOARD_CAPTURE_WIN_H_
+
+#include "ui/gfx/native_widget_types.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+// This class maintains registration of keyboard hooks and routing the low level
+// callback.
+class VIEWS_EXPORT DesktopKeyboardCaptureWin {
+ public:
+ explicit DesktopKeyboardCaptureWin(HWND window_handle);
+ ~DesktopKeyboardCaptureWin();
+
+ private:
+ HWND window_handle_;
+
+ DISALLOW_COPY_AND_ASSIGN(DesktopKeyboardCaptureWin);
+};
+}
+
+#endif // UI_VIEWS_WIDGET_DESKTOP_KEYBOARD_CAPTURE_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698