blob: e217d71c8ea5965a8abcd45e91d34c8de3646de2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_KEYBOARD_LOCK_KEYBOARD_LOCK_SERVICE_IMPL_H_
#define CONTENT_BROWSER_KEYBOARD_LOCK_KEYBOARD_LOCK_SERVICE_IMPL_H_
#include <string>
#include <vector>
#include "content/common/content_export.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock.mojom.h"
namespace content {
class RenderFrameHost;
class WebContents;
class CONTENT_EXPORT KeyboardLockServiceImpl
: public blink::mojom::KeyboardLockService {
public:
explicit KeyboardLockServiceImpl(RenderFrameHost* render_frame_host);
~KeyboardLockServiceImpl() override;
static void CreateMojoService(
RenderFrameHost* render_frame_host,
blink::mojom::KeyboardLockServiceRequest request);
// blink::mojom::KeyboardLockService implementations.
void RequestKeyboardLock(const std::vector<std::string>& key_codes,
RequestKeyboardLockCallback callback) override;
void CancelKeyboardLock() override;
private:
WebContents* const web_contents_;
};
} // namespace
#endif // CONTENT_BROWSER_KEYBOARD_LOCK_KEYBOARD_LOCK_SERVICE_IMPL_H_
|