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 "content/browser/keyboard_lock/keyboard_lock_service_impl.h" | |
6 | |
7 #include <memory> | |
8 #include <utility> | |
9 | |
10 #include "base/memory/ptr_util.h" | |
11 #include "content/public/browser/render_frame_host.h" | |
12 | |
13 namespace content { | |
14 | |
15 KeyboardLockServiceImpl::KeyboardLockServiceImpl() = default; | |
16 | |
17 KeyboardLockServiceImpl::~KeyboardLockServiceImpl() = default; | |
18 | |
19 // static | |
20 void KeyboardLockServiceImpl::CreateMojoService( | |
21 RenderFrameHost* render_frame_host, | |
dcheng
2017/04/28 02:24:49
Nit: this appears to be unused, will it be used in
Hzj_jie
2017/04/28 04:53:01
I believe this is not useful at all. (The keyboard
| |
22 blink::mojom::KeyboardLockServiceRequest request) { | |
23 mojo::MakeStrongBinding( | |
24 base::MakeUnique<KeyboardLockServiceImpl>(), | |
25 std::move(request)); | |
26 } | |
27 | |
28 void KeyboardLockServiceImpl::RequestKeyLock( | |
29 const std::vector<std::string>& key_codes, | |
30 const RequestKeyLockCallback& callback) { | |
31 // TODO(zijiehe): Implementation required. | |
32 callback.Run(true, std::string()); | |
33 } | |
34 | |
35 void KeyboardLockServiceImpl::CancelKeyLock() { | |
36 // TODO(zijiehe): Implementation required. | |
37 } | |
38 | |
39 } // namespace content | |
OLD | NEW |