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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2773903003: Add way to get native VR UI information from Java (Closed)
Patch Set: Cleanup Created 3 years, 9 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: chrome/browser/android/vr_shell/vr_shell.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index 7a3de3000f39c4ee92d3cc28a4516f973d1463f3..33f72318dd19884927bb5e11ec4168923b88bdc5 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -128,6 +128,10 @@ class VrShell : public device::GvrDelegate,
const base::android::JavaParamRef<jobject>& obj,
jboolean can_go_back,
jboolean can_go_forward);
+ void RequestUiElementInfo(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jintArray element_ids,
+ jint callback_id);
void ContentWebContentsDestroyed();
// Called when our WebContents have been hidden. Usually a sign that something
@@ -167,6 +171,8 @@ class VrShell : public device::GvrDelegate,
// Perform a UI action triggered by the javascript API.
void DoUiAction(const UiAction action,
const base::DictionaryValue* arguments);
+ void OnUiElementInfoCreated(int callback_id,
+ std::unique_ptr<base::DictionaryValue> info);
void SetContentCssSize(float width, float height, float dpr);
void SetUiCssSize(float width, float height, float dpr);

Powered by Google App Engine
This is Rietveld 408576698