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

Side by Side Diff: content/browser/renderer_host/gamepad_monitor.h

Issue 2563483006: Move gamepad_service out of content/ and into device/ (Closed)
Patch Set: addressed Blundell's review comments Created 4 years 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 (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_MONITOR_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_MONITOR_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "device/gamepad/gamepad_consumer.h"
11 #include "device/gamepad/public/interfaces/gamepad.mojom.h"
12
13 namespace content {
14
15 class GamepadMonitor : public device::GamepadConsumer,
16 public device::mojom::GamepadMonitor {
17 public:
18 GamepadMonitor();
19 ~GamepadMonitor() override;
20
21 static void Create(device::mojom::GamepadMonitorRequest request);
22
23 // GamepadConsumer implementation.
24 void OnGamepadConnected(unsigned index,
25 const blink::WebGamepad& gamepad) override;
26 void OnGamepadDisconnected(unsigned index,
27 const blink::WebGamepad& gamepad) override;
28
29 // device::mojom::GamepadMonitor implementation.
30 void GamepadStartPolling(
31 const GamepadStartPollingCallback& callback) override;
32 void GamepadStopPolling(const GamepadStopPollingCallback& callback) override;
33 void SetObserver(device::mojom::GamepadObserverPtr gamepad_observer) override;
34
35 private:
36 device::mojom::GamepadObserverPtr gamepad_observer_;
37 bool is_started_;
38
39 DISALLOW_COPY_AND_ASSIGN(GamepadMonitor);
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_BROWSER_RENDERER_HOST_GAMEPAD_MONITOR_H_
OLDNEW
« no previous file with comments | « content/browser/gamepad/gamepad_shared_buffer_impl.cc ('k') | content/browser/renderer_host/gamepad_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698