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

Issue 2832093003: Implement screen orientation for out-of-process iframes. (Closed)

Created:
3 years, 8 months ago by lfg
Modified:
3 years, 7 months ago
CC:
blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, mlamouri+watch-screen-orientation_chromium.org, nasko+codewatch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement screen orientation for out-of-process iframes. This change adds support for sending screen orientation change events to out-of-process iframes as well as fixing the Screen.orientation property on OOPIFs. This change adds a PageMsg_UpdateScreenInfo that updates the ScreenInfo for subframe renderers. The screen orientation is still updated on the ViewMsg_Resize for the main frame. The flow of dispatching the screen orientation update is: 1. The browser sends a ViewMsg_Resize to the main frame's renderer. The browser also sends PageMsg_UpdateScreenInfo to the OOPIF renderers. 2. The main frame renderer dispatches FrameHostMsg_FrameRectsChanged back to the browser process. 3. The browser process dispatches ViewMsg_Resize to the subframe renderers. 4. The subframe renderers dispatch the screen orientation event when they receive the resize IPC. BUG=498287 Review-Url: https://codereview.chromium.org/2832093003 Cr-Commit-Position: refs/heads/master@{#468057} Committed: https://chromium.googlesource.com/chromium/src/+/8d649cc1eb710240e71a02c6b44d4f1d245c3f19

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix dcheck #

Total comments: 12

Patch Set 4 : rebase #

Patch Set 5 : add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -22 lines) Patch
M content/browser/screen_orientation/screen_orientation_browsertest.cc View 1 2 3 4 6 chunks +114 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/page_messages.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M content/renderer/render_widget.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp View 1 2 3 1 chunk +14 lines, -11 lines 0 comments Download

Messages

Total messages: 40 (24 generated)
lfg
mlamouri, can you take a look?
3 years, 8 months ago (2017-04-21 17:15:08 UTC) #4
mlamouri (slow - plz ping)
lgtm with the question inline adressed https://codereview.chromium.org/2832093003/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2832093003/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode549 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:549: Event::Create(EventTypeNames::orientationchange)); Note that ...
3 years, 8 months ago (2017-04-25 11:06:47 UTC) #12
haraken
https://codereview.chromium.org/2832093003/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2832093003/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode545 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:545: } What is this change for? Does TraverseNext not ...
3 years, 8 months ago (2017-04-25 12:35:39 UTC) #14
dcheng
https://codereview.chromium.org/2832093003/diff/40001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2832093003/diff/40001/content/renderer/render_view_impl.cc#newcode2300 content/renderer/render_view_impl.cc:2300: // ViewMsg_Resize. Is this something we'll be able to ...
3 years, 8 months ago (2017-04-25 13:10:45 UTC) #16
lfg
Please, take another look. https://codereview.chromium.org/2832093003/diff/40001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2832093003/diff/40001/content/renderer/render_view_impl.cc#newcode2300 content/renderer/render_view_impl.cc:2300: // ViewMsg_Resize. On 2017/04/25 13:10:44, ...
3 years, 8 months ago (2017-04-25 15:44:31 UTC) #17
haraken
WebKit LGTM https://codereview.chromium.org/2832093003/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp File third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/2832093003/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode548 third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp:548: frame->DomWindow()->DispatchEvent( Nit: We should have renamed DomWindow ...
3 years, 8 months ago (2017-04-25 16:21:03 UTC) #19
lfg
Thanks, I'll put other CLs for the cleanups. On 2017/04/25 16:21:03, haraken wrote: > https://codereview.chromium.org/2832093003/diff/40001/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp#newcode548 ...
3 years, 8 months ago (2017-04-25 19:46:40 UTC) #20
lfg
Nasko, can you take a look?
3 years, 8 months ago (2017-04-25 19:47:18 UTC) #22
nasko
I have one question, but overall LGTM. https://codereview.chromium.org/2832093003/diff/40001/content/browser/screen_orientation/screen_orientation_browsertest.cc File content/browser/screen_orientation/screen_orientation_browsertest.cc (right): https://codereview.chromium.org/2832093003/diff/40001/content/browser/screen_orientation/screen_orientation_browsertest.cc#newcode88 content/browser/screen_orientation/screen_orientation_browsertest.cc:88: rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), ...
3 years, 8 months ago (2017-04-25 19:59:08 UTC) #24
lfg
https://codereview.chromium.org/2832093003/diff/40001/content/browser/screen_orientation/screen_orientation_browsertest.cc File content/browser/screen_orientation/screen_orientation_browsertest.cc (right): https://codereview.chromium.org/2832093003/diff/40001/content/browser/screen_orientation/screen_orientation_browsertest.cc#newcode88 content/browser/screen_orientation/screen_orientation_browsertest.cc:88: rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params)); On 2017/04/25 19:59:08, nasko wrote: > ...
3 years, 8 months ago (2017-04-25 20:08:18 UTC) #25
nasko
On 2017/04/25 20:08:18, lfg wrote: > https://codereview.chromium.org/2832093003/diff/40001/content/browser/screen_orientation/screen_orientation_browsertest.cc > File content/browser/screen_orientation/screen_orientation_browsertest.cc > (right): > > https://codereview.chromium.org/2832093003/diff/40001/content/browser/screen_orientation/screen_orientation_browsertest.cc#newcode88 ...
3 years, 8 months ago (2017-04-25 21:25:33 UTC) #26
dcheng
https://codereview.chromium.org/2832093003/diff/40001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2832093003/diff/40001/content/renderer/render_view_impl.cc#newcode2300 content/renderer/render_view_impl.cc:2300: // ViewMsg_Resize. On 2017/04/25 15:44:31, lfg wrote: > On ...
3 years, 8 months ago (2017-04-25 23:32:05 UTC) #27
lfg
On 2017/04/25 21:25:33, nasko wrote: > Thanks for the details! If you think it will ...
3 years, 8 months ago (2017-04-26 16:40:27 UTC) #31
dcheng
Thanks, makes sense. LGTM
3 years, 7 months ago (2017-04-28 00:17:42 UTC) #34
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/2832093003/80001
3 years, 7 months ago (2017-04-28 16:07:06 UTC) #37
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 18:04:47 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/8d649cc1eb710240e71a02c6b44d...

Powered by Google App Engine
This is Rietveld 408576698