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_filter_share_wrapper.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace keyboard_lock { |
| 10 |
| 11 KeyEventFilterShareWrapper::KeyEventFilterShareWrapper(KeyEventFilter* filter) |
| 12 : filter_(filter) { |
| 13 DCHECK(filter_); |
| 14 } |
| 15 |
| 16 KeyEventFilterShareWrapper::~KeyEventFilterShareWrapper() = default; |
| 17 |
| 18 bool KeyEventFilterShareWrapper::OnKeyDown(ui::KeyboardCode code, int flags) { |
| 19 return filter_->OnKeyDown(code, flags); |
| 20 } |
| 21 |
| 22 bool KeyEventFilterShareWrapper::OnKeyUp(ui::KeyboardCode code, int flags) { |
| 23 return filter_->OnKeyUp(code, flags); |
| 24 } |
| 25 |
| 26 } // namespace keyboard_lock |
OLD | NEW |