|
Use bounds instead of size for prerender requests
This changes the pipeline that initializes prerender contents
with a size to use bounds instead. Note that not all addPrerenderX
calls are switched to use Rect since for everywhere except Android
this won't be needed. Android needs bounds instead of size to get
info about the Physical Backing Size, also the top container height
(to be used for toolbar hide on scroll). With a Rect, all these can
be initialized and we can avoid extra Resizes that happen when the
native View is properly tied to the Android View hierarcy on swap.
This change only updates the params and shouldn't be making any
functional changes. A follow up Android only patch will start setting
the value to the origin.
BUG= 628302
Committed: https://crrev.com/7c8d964d95350a8a63ed75d761ae37a36ade3e85
Cr-Commit-Position: refs/heads/master@{#413469}
Total comments: 12
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+98 lines, -81 lines) |
Patch |
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java
|
View
|
|
4 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/android/javatests/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandlerTest.java
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/offline_pages/prerender_adapter_unittest.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/tab_capture/offscreen_tab.cc
|
View
|
1
2
3
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/external_prerender_handler_android.h
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/external_prerender_handler_android.cc
|
View
|
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/prerender_contents.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/prerender_contents.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/prerender_manager.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/prerender_manager.cc
|
View
|
1
2
3
4
5
6
|
9 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prerender/prerender_unittest.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/apps/chrome_app_delegate.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_tabrestore.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/exclusive_access/fullscreen_controller.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/search/instant_search_prerenderer_unittest.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/tabs/tab_strip_model.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/web_contents_sizer.h
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/web_contents_sizer.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/web_contents_sizer.mm
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/extensions/extension_settings_browsertest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/android/javatests/src/org/chromium/chrome/test/util/PrerenderTestHelper.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
Total messages: 64 (43 generated)
|