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

Side by Side Diff: components/keyboard_lock/key_event_interceptor_installer.cc

Issue 2815023002: [System-Keyboard-Lock] Add KeyboardLockHost and KeyEventInterceptor (Closed)
Patch Set: Resolve review comments Created 3 years, 8 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 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 : host_(host) {
17 DCHECK(host_);
18 }
19
20 void KeyEventInterceptorInstaller::Install() {
21 host_->SetKeyEventInterceptor(std::unique_ptr<KeyEventInterceptor>(this));
22 }
23
24 KeyEventInterceptorInstaller::~KeyEventInterceptorInstaller() = default;
25
26 } // namespace keyboard_lock
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698