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

Issue 2219823002: Move content offset to ViewAndroid (Closed)

Created:
4 years, 4 months ago by Jinsuk Kim
Modified:
3 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move content offset to ViewAndroid Content offset is specific to a given web contents/render widget. This CL moves the offset info from WindwoAndroid to ViewAndroid, and it is used to get the correct bounds for snapshot API. BUG=617750 Review-Url: https://codereview.chromium.org/2219823002 Cr-Commit-Position: refs/heads/master@{#442442} Committed: https://chromium.googlesource.com/chromium/src/+/8f74b8e7c03b8b37f1b2cfcc6a28a9b639e3822b

Patch Set 1 #

Total comments: 7

Patch Set 2 : pass right bounds to snapshot api #

Total comments: 3

Patch Set 3 : offset in RWH #

Total comments: 2

Patch Set 4 : updated comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -37 lines) Patch
M content/browser/android/content_view_core_impl.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/android/view_android.h View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M ui/android/view_android.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M ui/android/window_android.h View 1 2 3 2 chunks +0 lines, -11 lines 0 comments Download
M ui/snapshot/snapshot_android.cc View 1 2 3 4 chunks +9 lines, -17 lines 0 comments Download

Messages

Total messages: 50 (32 generated)
Jinsuk Kim
Removing one TODO at a time... sievers@chromium.org: Please review changes in content/ twellington@chromium.org: Please review ...
4 years, 4 months ago (2016-08-05 11:50:43 UTC) #6
no sievers
> This still works for WindowAndroid since it inherits ViewAndroid. Except for that nobody sets ...
4 years, 4 months ago (2016-08-05 18:15:15 UTC) #7
no sievers
https://codereview.chromium.org/2219823002/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2219823002/diff/1/content/browser/android/content_view_core_impl.cc#newcode432 content/browser/android/content_view_core_impl.cc:432: view_.set_content_offset(gfx::ScaleVector2d(content_offset, dpi_scale_)); Actually with your change this can now ...
4 years, 4 months ago (2016-08-05 18:22:44 UTC) #8
no sievers
https://codereview.chromium.org/2219823002/diff/1/ui/snapshot/snapshot_android.cc File ui/snapshot/snapshot_android.cc (left): https://codereview.chromium.org/2219823002/diff/1/ui/snapshot/snapshot_android.cc#oldcode55 ui/snapshot/snapshot_android.cc:55: source_rect_in_pixel.y() + offset.y())), Argh, this code makes no sense. ...
4 years, 4 months ago (2016-08-05 19:32:12 UTC) #9
no sievers
https://codereview.chromium.org/2219823002/diff/1/ui/snapshot/snapshot_android.cc File ui/snapshot/snapshot_android.cc (left): https://codereview.chromium.org/2219823002/diff/1/ui/snapshot/snapshot_android.cc#oldcode55 ui/snapshot/snapshot_android.cc:55: source_rect_in_pixel.y() + offset.y())), On 2016/08/05 19:32:12, sievers wrote: > ...
4 years, 4 months ago (2016-08-05 19:38:27 UTC) #10
Jinsuk Kim
On 2016/08/05 19:32:12, no sievers wrote: > https://codereview.chromium.org/2219823002/diff/1/ui/snapshot/snapshot_android.cc > File ui/snapshot/snapshot_android.cc (left): > > https://codereview.chromium.org/2219823002/diff/1/ui/snapshot/snapshot_android.cc#oldcode55 ...
4 years ago (2016-12-22 12:33:57 UTC) #27
Jinsuk Kim
Bo, could you take a look? https://codereview.chromium.org/2219823002/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2219823002/diff/1/content/browser/android/content_view_core_impl.cc#newcode432 content/browser/android/content_view_core_impl.cc:432: view_.set_content_offset(gfx::ScaleVector2d(content_offset, dpi_scale_)); On ...
4 years ago (2016-12-22 12:35:48 UTC) #29
boliu
https://codereview.chromium.org/2219823002/diff/60001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2219823002/diff/60001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2351 content/browser/renderer_host/render_widget_host_impl.cc:2351: gfx::Rect snapshot_bounds(GetView()->GetViewBounds()); Feels like GrabViewSnapshotAsync should grab the offset ...
3 years, 12 months ago (2016-12-22 21:14:59 UTC) #31
boliu
https://codereview.chromium.org/2219823002/diff/1/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/2219823002/diff/1/content/browser/android/content_view_core_impl.cc#newcode432 content/browser/android/content_view_core_impl.cc:432: view_.set_content_offset(gfx::ScaleVector2d(content_offset, dpi_scale_)); On 2016/12/22 12:35:48, Jinsuk Kim wrote: > ...
3 years, 12 months ago (2016-12-22 21:22:38 UTC) #32
boliu
https://codereview.chromium.org/2219823002/diff/60001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2219823002/diff/60001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2351 content/browser/renderer_host/render_widget_host_impl.cc:2351: gfx::Rect snapshot_bounds(GetView()->GetViewBounds()); On 2016/12/22 21:14:59, boliu wrote: > Feels ...
3 years, 12 months ago (2016-12-22 21:28:54 UTC) #33
Jinsuk Kim
https://codereview.chromium.org/2219823002/diff/60001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/2219823002/diff/60001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2351 content/browser/renderer_host/render_widget_host_impl.cc:2351: gfx::Rect snapshot_bounds(GetView()->GetViewBounds()); On 2016/12/22 21:28:54, boliu_back_jan3 wrote: > On ...
3 years, 11 months ago (2017-01-03 07:07:48 UTC) #34
boliu
lgtm
3 years, 11 months ago (2017-01-03 16:58:07 UTC) #35
Jinsuk Kim
aelias@chromium.org: Please review changes in ui/snapshot twellington@chromium.org: Please review changes in ui/android
3 years, 11 months ago (2017-01-09 04:58:04 UTC) #41
Theresa
ui/android lgtm https://codereview.chromium.org/2219823002/diff/80001/ui/android/view_android.h File ui/android/view_android.h (right): https://codereview.chromium.org/2219823002/diff/80001/ui/android/view_android.h#newcode65 ui/android/view_android.h:65: void set_content_offset(const gfx::Vector2dF& content_offset) { nit: I ...
3 years, 11 months ago (2017-01-09 16:03:53 UTC) #42
aelias_OOO_until_Jul13
ui/snapshot lgtm
3 years, 11 months ago (2017-01-09 22:55:18 UTC) #43
Jinsuk Kim
https://codereview.chromium.org/2219823002/diff/80001/ui/android/view_android.h File ui/android/view_android.h (right): https://codereview.chromium.org/2219823002/diff/80001/ui/android/view_android.h#newcode65 ui/android/view_android.h:65: void set_content_offset(const gfx::Vector2dF& content_offset) { On 2017/01/09 16:03:53, Theresa ...
3 years, 11 months ago (2017-01-09 23:31:09 UTC) #44
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/2219823002/100001
3 years, 11 months ago (2017-01-09 23:32:23 UTC) #47
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 01:36:10 UTC) #50
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/8f74b8e7c03b8b37f1b2cfcc6a28...

Powered by Google App Engine
This is Rietveld 408576698