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

Issue 2268323003: Initialize RWHV with default bounds rather than only size (Closed)

Created:
4 years, 4 months ago by Yusuf
Modified:
4 years, 3 months ago
Reviewers:
Theresa, no sievers, Maria, sky
CC:
chromium-reviews, cbentzel+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, tburkard+watch_chromium.org, shuchen+watch_chromium.org, jam, gavinp+prer_chromium.org, lizeb+watch-custom-tabs_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize RWHV with default bounds rather than only size This starts sending bounds information from exteral prerenders and uses that to store a default_bounds_ rectangle in RWHV Android rather than a size. This basically updates the default size to also take into account the top controls offset needed in the physical backing size. With this we can get the page composited properly during prerendering. Note that this doesn't resolve the bug yet, since we still need an abstraction layer (possibly a NativeView) that will hold this default_bounds_ information. BUG=628302 Committed: https://crrev.com/8c230b2f62cd2e5f83983047f6ba56ecc9a024aa Cr-Commit-Position: refs/heads/master@{#415112}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed brackets #

Total comments: 2

Patch Set 3 : Nit #

Total comments: 2

Patch Set 4 : nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -24 lines) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 3 1 chunk +1 line, -1 line 2 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java View 1 2 3 1 chunk +11 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 1 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/web_contents_sizer.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 4 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 34 (17 generated)
Yusuf
sievers@ for RWHVA changes. I want to get an OK from you, before I send ...
4 years, 4 months ago (2016-08-23 17:11:32 UTC) #2
no sievers
You might want to update the description to say that this basically updates the default ...
4 years, 4 months ago (2016-08-23 21:24:39 UTC) #7
Yusuf
https://codereview.chromium.org/2268323003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2268323003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode387 content/browser/renderer_host/render_widget_host_view_android.cc:387: // Ignore the given size as only the Java ...
4 years, 4 months ago (2016-08-23 21:30:48 UTC) #10
no sievers
On 2016/08/23 21:30:48, Yusuf wrote: > https://codereview.chromium.org/2268323003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc > File content/browser/renderer_host/render_widget_host_view_android.cc (right): > > https://codereview.chromium.org/2268323003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode387 > ...
4 years, 4 months ago (2016-08-23 21:44:22 UTC) #11
Yusuf
On 2016/08/23 21:44:22, sievers wrote: > On 2016/08/23 21:30:48, Yusuf wrote: > > > https://codereview.chromium.org/2268323003/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc ...
4 years, 4 months ago (2016-08-23 21:52:44 UTC) #12
no sievers
On 2016/08/23 21:52:44, Yusuf wrote: > On 2016/08/23 21:44:22, sievers wrote: > > On 2016/08/23 ...
4 years, 4 months ago (2016-08-23 21:57:37 UTC) #13
Yusuf
On 2016/08/23 21:57:37, sievers wrote: > On 2016/08/23 21:52:44, Yusuf wrote: > > On 2016/08/23 ...
4 years, 3 months ago (2016-08-26 21:13:18 UTC) #14
no sievers
lgtm w/nit https://codereview.chromium.org/2268323003/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2268323003/diff/20001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode569 content/browser/renderer_host/render_widget_host_view_android.cc:569: if (default_bounds_.IsEmpty()) return gfx::Size(); nit: newline before ...
4 years, 3 months ago (2016-08-26 21:35:03 UTC) #17
Yusuf
sky@ for web_contents_sizer.cc mariakhomenko@ for other android changes This one actually starts using the bounds ...
4 years, 3 months ago (2016-08-26 23:26:25 UTC) #21
sky
LGTM
4 years, 3 months ago (2016-08-29 15:54:36 UTC) #22
Maria
lgtm https://codereview.chromium.org/2268323003/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java File chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java (right): https://codereview.chromium.org/2268323003/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java#newcode144 chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java:144: screenBounds.top = (int) Math.ceil(screenBounds.top / density); I think ...
4 years, 3 months ago (2016-08-29 16:41:15 UTC) #23
Yusuf
https://codereview.chromium.org/2268323003/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java File chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java (right): https://codereview.chromium.org/2268323003/diff/30001/chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java#newcode144 chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java:144: screenBounds.top = (int) Math.ceil(screenBounds.top / density); On 2016/08/29 16:41:15, ...
4 years, 3 months ago (2016-08-29 16:44:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2268323003/50001
4 years, 3 months ago (2016-08-29 16:51:18 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:50001)
4 years, 3 months ago (2016-08-30 04:45:38 UTC) #29
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/8c230b2f62cd2e5f83983047f6ba56ecc9a024aa Cr-Commit-Position: refs/heads/master@{#415112}
4 years, 3 months ago (2016-08-30 04:48:32 UTC) #31
Theresa
https://codereview.chromium.org/2268323003/diff/50001/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (left): https://codereview.chromium.org/2268323003/diff/50001/chrome/android/java/AndroidManifest.xml#oldcode257 chrome/android/java/AndroidManifest.xml:257: android:exported="false" /> This activity should not be exported because ...
4 years, 3 months ago (2016-09-08 23:14:37 UTC) #33
Theresa
4 years, 3 months ago (2016-09-08 23:17:04 UTC) #34
Message was sent while issue was closed.
https://codereview.chromium.org/2268323003/diff/50001/chrome/android/java/And...
File chrome/android/java/AndroidManifest.xml (left):

https://codereview.chromium.org/2268323003/diff/50001/chrome/android/java/And...
chrome/android/java/AndroidManifest.xml:257: android:exported="false" />
On 2016/09/08 23:14:37, Theresa Wellington wrote:
> This activity should not be exported because it allows incognito tabs to be
> opened (non-exported for security). Why was this changed?

Looks accidental (possibly testing things for me)? I'm going to change it back
if there are no objections.

Powered by Google App Engine
This is Rietveld 408576698