OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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 #include "components/keyboard_lock/key_event_interceptor_installer.h" | |
6 | |
7 #include <memory> | |
8 | |
9 #include "base/logging.h" | |
10 #include "components/keyboard_lock/keyboard_lock_host.h" | |
11 | |
12 namespace keyboard_lock { | |
13 | |
14 KeyEventInterceptorInstaller::KeyEventInterceptorInstaller( | |
15 KeyboardLockHost* host) { | |
16 DCHECK(host); | |
17 host->SetKeyEventInterceptor(std::unique_ptr<KeyEventInterceptor>(this)); | |
dtapuska
2017/04/18 13:43:17
I'd think this is dangerous. What happens if the S
Hzj_jie
2017/04/19 00:46:26
Done.
Good point, I have not considered this possi
| |
18 } | |
19 | |
20 KeyEventInterceptorInstaller::~KeyEventInterceptorInstaller() = default; | |
21 | |
22 } // namespace keyboard_lock | |
OLD | NEW |