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

Side by Side Diff: chrome/browser/ui/views/apps/keyboard_hook_handler.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: Use WidgetObserver instead of plumbing SetKeyboardIntercept through view::Widget Created 6 years, 1 month 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) 2014 The Chromium Authors. All rights reserved.
benwells 2014/11/21 00:52:01 Nit: no (c)
Sriram 2014/11/21 05:35:21 Done.
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 CHROME_BROWSER_UI_VIEWS_APPS_KEYBOARD_HOOK_HANDLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_KEYBOARD_HOOK_HANDLER_H_
7
8 #include "ui/views/widget/widget.h"
9
10 // Interface to control keyboard hook on different platform.
11 class KeyboardHookHandler {
12 public:
13 // Request all keyboard events to be routed to the given window.
14 void Register(views::Widget* widget);
15
16 // Release the request for all keyboard events.
17 void Deregister(views::Widget* widget);
18
19 // Implemented in platform specific code.
20 static KeyboardHookHandler* GetInstance();
21 };
22
23 #endif // CHROME_BROWSER_UI_VIEWS_APPS_KEYBOARD_HOOK_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698