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

Unified Diff: content/public/browser/android/vr_content_view_core.h

Issue 2350253004: Controller support for VrShell (Closed)
Patch Set: Created 4 years, 3 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
Index: content/public/browser/android/vr_content_view_core.h
diff --git a/content/public/browser/android/vr_content_view_core.h b/content/public/browser/android/vr_content_view_core.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7c6a67c684169eb775ec415ff4d103d706f5dcf
--- /dev/null
+++ b/content/public/browser/android/vr_content_view_core.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
bshe 2016/09/21 15:18:41 nit: s/Copyright (c) 2012/Copyright 2016
asimjour 2016/09/22 14:48:37 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_VR_CONTENT_VIEW_CORE_H_
+#define CONTENT_PUBLIC_BROWSER_ANDROID_VR_CONTENT_VIEW_CORE_H_
+
+#include <jni.h>
+
+#include "base/android/scoped_java_ref.h"
+#include "base/callback.h"
+#include "base/strings/string16.h"
+#include "content/common/content_export.h"
+#include "content/public/browser/android/content_view_core.h"
+#include "content/public/browser/readback_types.h"
+
+namespace content {
+
+// DEPRECATED. Do not add methods.
bshe 2016/09/21 15:18:41 Remove the comments here. We don't want to land DE
asimjour 2016/09/22 14:48:37 Done.
+// Refer to the public WebContents interface or elsewhere instead.
+class CONTENT_EXPORT VrContentViewCore {
mthiesse 2016/09/21 17:43:27 This name feels wrong. We're not a ContentViewCore
+ public:
+ // Returns the existing ContentViewCore for |web_contents|, or nullptr.
+ static VrContentViewCore* FromContentViewCore(
+ ContentViewCore* content_view_core);
+
+ virtual void SendScrollEvent(long time_ms,
+ float x,
+ float y,
+ float dx,
+ float dy,
+ int type) = 0;
+
+ virtual void SendClickEvent(long time_ms, float x, float y) = 0;
+
+ virtual void SendMouseMoveEvent(long time_ms, float x, float y, int type) = 0;
+
+ protected:
+ ~VrContentViewCore() {}
+};
+
+}; // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_ANDROID_VR_CONTENT_VIEW_CORE_H_

Powered by Google App Engine
This is Rietveld 408576698