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

Issue 2773903003: Add way to get native VR UI information from Java (Closed)

Created:
3 years, 9 months ago by bsheedy
Modified:
3 years, 8 months ago
CC:
chromium-reviews, feature-vr-reviews_chromium.org, arv+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add way to get native VR UI information from Java Adds a way to request information about native UI elements in Java for instrumentation testing. Based on the earlier crrev.com/2766503002, but goes directly from Java > Native instead of Java > JS > Native. BUG=702700 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Cleanup #

Total comments: 24

Patch Set 4 : Address nits #

Patch Set 5 : Switch to using names instead of IDs #

Total comments: 10

Patch Set 6 : Address cjgrant@ comments + stability improvement #

Total comments: 16

Patch Set 7 : Address comments #

Patch Set 8 : Update JavaDoc #

Total comments: 2

Patch Set 9 : Remove comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 4 5 6 7 5 chunks +40 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/OnUiElementInfoReplyCallback.java View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/WebVrTest.java View 1 2 3 4 5 6 5 chunks +72 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene.cc View 1 2 3 4 5 6 7 8 2 chunks +79 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 6 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
A chrome/test/data/android/webvr_instrumentation/html/test_no_warning_on_secure_site.html View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (4 generated)
bsheedy
Now with 75% less Javascript. https://codereview.chromium.org/2773903003/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc File chrome/browser/android/vr_shell/vr_shell.cc (right): https://codereview.chromium.org/2773903003/diff/40001/chrome/browser/android/vr_shell/vr_shell.cc#newcode561 chrome/browser/android/vr_shell/vr_shell.cc:561: base::JSONWriter::Write(*info, &json_reply); Converting to ...
3 years, 9 months ago (2017-03-24 18:47:54 UTC) #3
tiborg
https://codereview.chromium.org/2773903003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2773903003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode647 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:647: // Lazily instantiate since we don't need it in ...
3 years, 9 months ago (2017-03-27 15:14:33 UTC) #4
cjgrant
https://codereview.chromium.org/2773903003/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2773903003/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode215 chrome/browser/resources/vr_shell/vr_shell_ui.js:215: domIdToUiElementIdMap[domId] = this.id; On 2017/03/27 15:14:33, tiborg wrote: > ...
3 years, 9 months ago (2017-03-27 15:41:32 UTC) #5
bsheedy
https://codereview.chromium.org/2773903003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2773903003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode647 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:647: // Lazily instantiate since we don't need it in ...
3 years, 9 months ago (2017-03-27 17:49:10 UTC) #6
cjgrant
https://codereview.chromium.org/2773903003/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js File chrome/browser/resources/vr_shell/vr_shell_ui.js (right): https://codereview.chromium.org/2773903003/diff/40001/chrome/browser/resources/vr_shell/vr_shell_ui.js#newcode215 chrome/browser/resources/vr_shell/vr_shell_ui.js:215: domIdToUiElementIdMap[domId] = this.id; On 2017/03/27 17:49:09, bsheedy wrote: > ...
3 years, 9 months ago (2017-03-27 19:49:43 UTC) #7
tiborg
https://codereview.chromium.org/2773903003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2773903003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode648 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:648: private SparseArray<Runnable> getUiElementInfoReplyCallbacks() { On 2017/03/27 17:49:09, bsheedy wrote: ...
3 years, 9 months ago (2017-03-27 19:59:59 UTC) #8
bsheedy
Now with 100% less Javascript.
3 years, 8 months ago (2017-03-27 23:56:14 UTC) #9
cjgrant
On 2017/03/27 23:56:14, bsheedy wrote: > Now with 100% less Javascript. Brian, can you clarify ...
3 years, 8 months ago (2017-03-29 15:43:48 UTC) #10
bsheedy
On 2017/03/29 15:43:48, cjgrant wrote: > On 2017/03/27 23:56:14, bsheedy wrote: > > Now with ...
3 years, 8 months ago (2017-03-29 16:25:38 UTC) #11
cjgrant
On 2017/03/29 16:25:38, bsheedy wrote: > On 2017/03/29 15:43:48, cjgrant wrote: > > On 2017/03/27 ...
3 years, 8 months ago (2017-03-29 17:12:47 UTC) #12
bsheedy
On 2017/03/29 17:12:47, cjgrant wrote: > On 2017/03/29 16:25:38, bsheedy wrote: > > On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 17:14:47 UTC) #13
cjgrant
https://codereview.chromium.org/2773903003/diff/80001/chrome/browser/android/vr_shell/ui_scene.h File chrome/browser/android/vr_shell/ui_scene.h (right): https://codereview.chromium.org/2773903003/diff/80001/chrome/browser/android/vr_shell/ui_scene.h#newcode71 chrome/browser/android/vr_shell/ui_scene.h:71: ContentRectangle* GetUiElementByName(std::string element_name); The parameter should be (const std::string& ...
3 years, 8 months ago (2017-03-29 21:16:06 UTC) #14
tiborg
On 2017/03/29 21:16:06, cjgrant wrote: > https://codereview.chromium.org/2773903003/diff/80001/chrome/browser/android/vr_shell/ui_scene.h > File chrome/browser/android/vr_shell/ui_scene.h (right): > > https://codereview.chromium.org/2773903003/diff/80001/chrome/browser/android/vr_shell/ui_scene.h#newcode71 > ...
3 years, 8 months ago (2017-03-29 21:20:03 UTC) #15
bsheedy
mthiesse@chromium.org: chrome/android/java dtrainor@chromium.org: chrome/android/javatests FYI, I also snuck in a one-line stability improvement (make resetting ...
3 years, 8 months ago (2017-03-29 22:33:45 UTC) #17
David Trainor- moved to gerrit
lgtm % nits https://codereview.chromium.org/2773903003/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java File chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java (right): https://codereview.chromium.org/2773903003/diff/100001/chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java#newcode133 chrome/android/javatests/src/org/chromium/chrome/browser/vr_shell/VrUtils.java:133: CriteriaHelper.pollInstrumentationThread(Criteria.equals(true, new Callable<Boolean>() { Should this ...
3 years, 8 months ago (2017-03-30 04:45:38 UTC) #18
mthiesse
https://codereview.chromium.org/2773903003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2773903003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode108 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:108: private SparseArray<Runnable> mUiElementInfoReplyCallbacks; Why do we need multiple callbacks ...
3 years, 8 months ago (2017-03-30 14:25:39 UTC) #19
cjgrant
https://codereview.chromium.org/2773903003/diff/100001/chrome/browser/android/vr_shell/ui_scene.cc File chrome/browser/android/vr_shell/ui_scene.cc (right): https://codereview.chromium.org/2773903003/diff/100001/chrome/browser/android/vr_shell/ui_scene.cc#newcode399 chrome/browser/android/vr_shell/ui_scene.cc:399: CHECK_NE(element, nullptr); Given that this is for testing, are ...
3 years, 8 months ago (2017-03-30 14:48:36 UTC) #20
bsheedy
https://codereview.chromium.org/2773903003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2773903003/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode108 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:108: private SparseArray<Runnable> mUiElementInfoReplyCallbacks; On 2017/03/30 14:25:38, mthiesse wrote: > ...
3 years, 8 months ago (2017-03-30 21:05:14 UTC) #21
cjgrant
lgtm https://codereview.chromium.org/2773903003/diff/140001/chrome/browser/android/vr_shell/ui_scene.cc File chrome/browser/android/vr_shell/ui_scene.cc (right): https://codereview.chromium.org/2773903003/diff/140001/chrome/browser/android/vr_shell/ui_scene.cc#newcode399 chrome/browser/android/vr_shell/ui_scene.cc:399: // Return an empty dict if not found ...
3 years, 8 months ago (2017-03-30 21:20:17 UTC) #22
bsheedy
https://codereview.chromium.org/2773903003/diff/140001/chrome/browser/android/vr_shell/ui_scene.cc File chrome/browser/android/vr_shell/ui_scene.cc (right): https://codereview.chromium.org/2773903003/diff/140001/chrome/browser/android/vr_shell/ui_scene.cc#newcode399 chrome/browser/android/vr_shell/ui_scene.cc:399: // Return an empty dict if not found and ...
3 years, 8 months ago (2017-03-30 21:23:04 UTC) #23
mthiesse
We should hold off on landing this until we know what direction the UI is ...
3 years, 8 months ago (2017-03-31 16:20:26 UTC) #24
cjgrant
3 years, 8 months ago (2017-04-13 14:20:57 UTC) #25
On 2017/03/31 16:20:26, mthiesse wrote:
> We should hold off on landing this until we know what direction the UI is
going
> in. Word on the street is HTML UI is dead, and depending on where we go this
> infrastructure won't be useful.

Bsheedy, we might as well pull this down.  The HTML UI removal CL is up and
pending commit (before or after branch cut, depending on leads' preference).

Powered by Google App Engine
This is Rietveld 408576698