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

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

Issue 2879033002: Keyboard Lock Host implementation
Patch Set: Remove useless files Created 3 years, 4 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h" 9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock .mojom.h" 10 #include "third_party/WebKit/public/platform/modules/keyboard_lock/keyboard_lock .mojom.h"
11 11
12
12 namespace content { 13 namespace content {
13 14
15 class RenderFrameHost;
16 class WebContents;
17
14 class CONTENT_EXPORT KeyboardLockServiceImpl 18 class CONTENT_EXPORT KeyboardLockServiceImpl
15 : public NON_EXPORTED_BASE(blink::mojom::KeyboardLockService) { 19 : public NON_EXPORTED_BASE(blink::mojom::KeyboardLockService) {
16 public: 20 public:
17 KeyboardLockServiceImpl(); 21 KeyboardLockServiceImpl(RenderFrameHost* render_frame_host);
18 ~KeyboardLockServiceImpl() override; 22 ~KeyboardLockServiceImpl() override;
19 23
20 static void CreateMojoService( 24 static void CreateMojoService(
25 RenderFrameHost* render_frame_host,
21 blink::mojom::KeyboardLockServiceRequest request); 26 blink::mojom::KeyboardLockServiceRequest request);
22 27
23 // blink::mojom::KeyboardLockService implementations. 28 // blink::mojom::KeyboardLockService implementations.
24 void RequestKeyboardLock(const std::vector<std::string>& key_codes, 29 void RequestKeyboardLock(
25 RequestKeyboardLockCallback callback) override; 30 const std::vector<std::string>& key_codes,
31 RequestKeyboardLockCallback callback) override;
26 void CancelKeyboardLock() override; 32 void CancelKeyboardLock() override;
33
34 private:
35 WebContents* const web_contents_;
27 }; 36 };
28 37
29 } // namespace 38 } // namespace
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/keyboard_lock/keyboard_lock_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698