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

Side by Side 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 sky's 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_KEYBOARD_CAPTURE_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_KEYBOARD_CAPTURE_WIN_H_
7
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/views_export.h"
10
11 namespace views {
12 // This class maintains registration of keyboard hooks and routing the low level
13 // callback.
14 class VIEWS_EXPORT DesktopKeyboardCaptureWin {
15 public:
16 DesktopKeyboardCaptureWin(HWND window_handle);
sky 2014/07/31 21:36:56 explicit.
Sriram 2014/07/31 22:54:18 Done.
17 ~DesktopKeyboardCaptureWin();
18
19 bool Capture();
sky 2014/07/31 21:36:55 Make the constructor capture and the destructor re
Sriram 2014/07/31 22:54:18 Done.
20 void Release();
21
22 private:
23 bool registered_;
24 HWND window_handle_;
25 };
sky 2014/07/31 21:36:55 DISALLOW...
Sriram 2014/07/31 22:54:18 Done.
26 }
27
28 #endif // UI_VIEWS_WIDGET_DESKTOP_KEYBOARD_CAPTURE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698