Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 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_PUBLIC_BROWSER_ANDROID_VR_CONTENT_VIEW_CORE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_ANDROID_VR_CONTENT_VIEW_CORE_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 | |
| 10 #include "base/android/scoped_java_ref.h" | |
| 11 #include "base/callback.h" | |
| 12 #include "base/strings/string16.h" | |
| 13 #include "content/common/content_export.h" | |
| 14 #include "content/public/browser/android/content_view_core.h" | |
| 15 #include "content/public/browser/readback_types.h" | |
| 16 | |
| 17 namespace content { | |
| 18 | |
| 19 // 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.
| |
| 20 // Refer to the public WebContents interface or elsewhere instead. | |
| 21 class CONTENT_EXPORT VrContentViewCore { | |
|
mthiesse
2016/09/21 17:43:27
This name feels wrong. We're not a ContentViewCore
| |
| 22 public: | |
| 23 // Returns the existing ContentViewCore for |web_contents|, or nullptr. | |
| 24 static VrContentViewCore* FromContentViewCore( | |
| 25 ContentViewCore* content_view_core); | |
| 26 | |
| 27 virtual void SendScrollEvent(long time_ms, | |
| 28 float x, | |
| 29 float y, | |
| 30 float dx, | |
| 31 float dy, | |
| 32 int type) = 0; | |
| 33 | |
| 34 virtual void SendClickEvent(long time_ms, float x, float y) = 0; | |
| 35 | |
| 36 virtual void SendMouseMoveEvent(long time_ms, float x, float y, int type) = 0; | |
| 37 | |
| 38 protected: | |
| 39 ~VrContentViewCore() {} | |
| 40 }; | |
| 41 | |
| 42 }; // namespace content | |
| 43 | |
| 44 #endif // CONTENT_PUBLIC_BROWSER_ANDROID_VR_CONTENT_VIEW_CORE_H_ | |
| OLD | NEW |