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

Side by Side Diff: public/platform/WebVRClient.h

Issue 1165223006: Move WebVR public headers into public/platform/modules/vr (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed mismatched forward declaration Created 5 years, 6 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
« no previous file with comments | « public/platform/WebVR.h ('k') | public/platform/modules/vr/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 WebVRClient_h
6 #define WebVRClient_h
7
8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebVR.h"
10 #include "public/platform/WebVector.h"
11
12 namespace blink {
13
14 // Success and failure callbacks for getDevices.
15 typedef WebCallbacks<WebVector<blink::WebVRDevice>, void> WebVRGetDevicesCallbac k;
16
17 // Client handling VR device communication for a given WebFrame.
18 class WebVRClient {
19 public:
20 virtual ~WebVRClient() { }
21
22 virtual void getDevices(WebVRGetDevicesCallback*) = 0;
23
24 virtual void getSensorState(unsigned index, blink::WebHMDSensorState& into) = 0;
25
26 virtual void resetSensor(unsigned index) = 0;
27 };
28
29 } // namespace blink
30
31 #endif // WebVRClient_h
OLDNEW
« no previous file with comments | « public/platform/WebVR.h ('k') | public/platform/modules/vr/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698