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

Side by Side Diff: content/browser/keyboard_lock/keyboard_lock_service_impl.h

Issue 2805763004: [System-Keyboard-Lock] Forward navigator functions to RenderFrameHost (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 <string>
6 #include <vector>
7
8 #include "content/common/content_export.h"
9 #include "mojo/public/cpp/bindings/binding.h"
10 #include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock .mojom.h"
11
12 namespace content {
13
14 class RenderFrameHost;
15
16 class CONTENT_EXPORT KeyboardLockServiceImpl
17 : public NON_EXPORTED_BASE(blink::mojom::KeyboardLockService) {
18 public:
19 ~KeyboardLockServiceImpl() override;
20
21 static void CreateMojoService(
22 RenderFrameHost* render_frame_host,
23 blink::mojom::KeyboardLockServiceRequest request);
24
25 void RequestKeyLock(const std::vector<std::string>& key_codes,
dcheng 2017/04/26 13:27:17 Nit: Add a comment like // blink::mojom::Keyboard
Hzj_jie 2017/04/26 22:05:56 Done.
26 const RequestKeyLockCallback& callback) override;
27 void CancelKeyLock() override;
28
29 private:
30 explicit KeyboardLockServiceImpl(
31 blink::mojom::KeyboardLockServiceRequest request);
32
33 const mojo::Binding<blink::mojom::KeyboardLockService> binding_;
34 };
35
36 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698