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

Unified Diff: content/renderer/vr/vr_dispatcher.h

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT! Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/vr/vr_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/vr/vr_dispatcher.h
diff --git a/content/renderer/vr/vr_dispatcher.h b/content/renderer/vr/vr_dispatcher.h
deleted file mode 100644
index 7e2f422a051a22d84c819041a37348a95c8c6e49..0000000000000000000000000000000000000000
--- a/content/renderer/vr/vr_dispatcher.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2015 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_RENDERER_VR_DISPATCHER_H_
-#define CONTENT_RENDERER_VR_DISPATCHER_H_
-
-#include <vector>
-
-#include "base/id_map.h"
-#include "base/macros.h"
-#include "content/common/vr_service.mojom.h"
-#include "third_party/WebKit/public/platform/WebVector.h"
-#include "third_party/WebKit/public/platform/modules/vr/WebVR.h"
-#include "third_party/WebKit/public/platform/modules/vr/WebVRClient.h"
-
-namespace content {
-
-class ServiceRegistry;
-
-class VRDispatcher : NON_EXPORTED_BASE(public blink::WebVRClient) {
- public:
- explicit VRDispatcher(ServiceRegistry* service_registry);
- ~VRDispatcher() override;
-
- // blink::WebVRClient implementation.
- void getDevices(blink::WebVRGetDevicesCallback* callback) override;
-
- void getSensorState(unsigned int index,
- blink::WebHMDSensorState& state) override;
-
- void resetSensor(unsigned int index) override;
-
- private:
- // Helper method that returns an initialized PermissionServicePtr.
- mojom::VRServicePtr& GetVRServicePtr();
-
- // Callback handlers
- void OnGetDevices(int request_id,
- const mojo::Array<mojom::VRDeviceInfoPtr>& devices);
- static void OnGetSensorState(blink::WebHMDSensorState* state,
- const mojom::VRSensorStatePtr& mojo_state);
-
- // Tracks requests sent to browser to match replies with callbacks.
- // Owns callback objects.
- IDMap<blink::WebVRGetDevicesCallback, IDMapOwnPointer> pending_requests_;
-
- ServiceRegistry* service_registry_;
- mojom::VRServicePtr vr_service_;
-
- DISALLOW_COPY_AND_ASSIGN(VRDispatcher);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_VR_DISPATCHER_H_
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/vr/vr_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698