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

Side by Side Diff: chrome/browser/ui/views/apps/keyboard_hook_handler.h

Issue 1316013004: Remove "API proposal for chrome.app.window to intercept all keys." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 5 years, 3 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 2014 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 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
« no previous file with comments | « chrome/browser/ui/views/apps/desktop_keyboard_capture.cc ('k') | chrome/browser/ui/views/apps/keyboard_hook_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698