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

Issue 964403003: Make it possible to set the display mode from Chromium (Closed)

Created:
5 years, 9 months ago by Mikhail
Modified:
5 years, 8 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri (slow - plz ping), nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make it possible to set the display mode from Chromium This CL allows setting of blink::WebView display mode with the value obtainted from the content::WebContentsDelegate implementations (so far there is a preliminary implementation at content_shell). The display mode value is send along with ViewMsg_Resize_Params IPC message. The follow-up layout test: https://codereview.chromium.org/1066213003/ BUG=471703 Committed: https://crrev.com/c0e251b8eedbeec65e9d0cafc3c270f072fc6724 Cr-Commit-Position: refs/heads/master@{#325200}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added test, took comments from Kenneth into consideration #

Total comments: 4

Patch Set 3 : Improved the added browser test #

Total comments: 5

Patch Set 4 : Decouple getting display mode and renderer-initiated fullscreen mode code paths #

Total comments: 1

Patch Set 5 : Added test for AppWindow #

Total comments: 3

Patch Set 6 : Added implementation for content shell #

Total comments: 10

Patch Set 7 : Updated accordingly to jochen comments #

Patch Set 8 : Added a comment to WebContentsDelegate::GetDisplayMode #

Patch Set 9 : Omit extensions/ changes (extract those to a separate CL) #

Patch Set 10 : Allowed include of "third_party/WebKit/public/platform/WebDisplayMode.h" #

Total comments: 1

Patch Set 11 : Comments from scheib. Disabled browser test on Android. #

Patch Set 12 : s/FIXME/TODO #

Patch Set 13 : Re-enable test for Android, force "was resized" IPC message there. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -5 lines) Patch
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +47 lines, -0 lines 0 comments Download
M content/common/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +17 lines, -5 lines 0 comments Download
M content/renderer/resizing_mode_selector.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/browser/shell.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (15 generated)
Mikhail
WIP (tests are missing yet) This CL is basically following https://codereview.chromium.org/870933002#msg6, I decided though not ...
5 years, 9 months ago (2015-03-02 16:23:08 UTC) #2
mlamouri (slow - plz ping)
Do we expect the display mode to change during the lifetime of the widget except ...
5 years, 9 months ago (2015-03-02 19:02:53 UTC) #3
Mikhail
On 2015/03/02 19:02:53, Mounir Lamouri wrote: > Do we expect the display mode to change ...
5 years, 9 months ago (2015-03-03 09:40:47 UTC) #4
kenneth.christiansen
https://codereview.chromium.org/964403003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/964403003/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode590 content/browser/renderer_host/render_widget_host_impl.cc:590: resize_params->display_mode = GetDisplayMode(); isn't Isfullscreen included in the GetDisplayMode? ...
5 years, 9 months ago (2015-03-06 12:21:29 UTC) #6
Mikhail
Should not land before https://codereview.chromium.org/984023003/
5 years, 9 months ago (2015-03-06 15:42:36 UTC) #7
Mikhail
On 2015/03/06 15:42:36, Mikhail wrote: > Should not land before https://codereview.chromium.org/984023003/ Now dependent fix has ...
5 years, 9 months ago (2015-03-13 09:17:28 UTC) #8
Mike West
A few nits and questions. IPC LGTM, but you'll need a content/ OWNER to take ...
5 years, 9 months ago (2015-03-18 08:43:33 UTC) #9
Mikhail
On 2015/03/18 08:43:33, Mike West wrote: > A few nits and questions. IPC LGTM, but ...
5 years, 9 months ago (2015-03-24 13:50:10 UTC) #11
jochen (gone - plz use gerrit)
+falken for fullscreen +danakj for resize message
5 years, 9 months ago (2015-03-25 12:10:24 UTC) #13
danakj
On 2015/03/25 12:10:24, jochen wrote: > +danakj for resize message Sorry I'm not sure what ...
5 years, 9 months ago (2015-03-25 16:21:04 UTC) #14
jochen (gone - plz use gerrit)
On 2015/03/25 at 16:21:04, danakj wrote: > On 2015/03/25 12:10:24, jochen wrote: > > +danakj ...
5 years, 9 months ago (2015-03-25 16:30:43 UTC) #15
danakj
https://codereview.chromium.org/964403003/diff/40001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/964403003/diff/40001/content/renderer/render_widget.cc#newcode806 content/renderer/render_widget.cc:806: bool will_be_fullscreen = is_fullscreen || I find it kinda ...
5 years, 9 months ago (2015-03-25 16:56:38 UTC) #16
falken
The CL description should explain more the motivation for the change. There's no bug for ...
5 years, 9 months ago (2015-03-26 02:13:52 UTC) #17
jochen (gone - plz use gerrit)
On 2015/03/26 at 02:13:52, falken wrote: > The CL description should explain more the motivation ...
5 years, 9 months ago (2015-03-26 15:37:58 UTC) #18
falken
Maybe +scheib? The callsites of is_fullscreen() are just pepper_plugin_instance_impl.cc and resizing_mode_selector.cc, adding +miu@ also who's ...
5 years, 9 months ago (2015-03-27 00:47:37 UTC) #20
scheib
Patch definitely needs more explanation in the change comment, needs a BUG=, and most importantly ...
5 years, 9 months ago (2015-03-27 16:50:52 UTC) #21
miu
Sort of echoing what other reviewers have said, but I'd like to know more about ...
5 years, 9 months ago (2015-03-27 21:14:55 UTC) #22
Mikhail
Thanks for having a look! I've added a bug to the CL description. In general ...
5 years, 8 months ago (2015-03-30 15:47:17 UTC) #23
scheib
Ok this is looking pretty reasonable, but it's hard to see the use in Blink. ...
5 years, 8 months ago (2015-03-30 17:47:16 UTC) #24
miu
https://codereview.chromium.org/964403003/diff/60001/content/renderer/render_widget.h File content/renderer/render_widget.h (right): https://codereview.chromium.org/964403003/diff/60001/content/renderer/render_widget.h#newcode127 content/renderer/render_widget.h:127: bool is_fullscreen() const { return is_fullscreen_; } I understand ...
5 years, 8 months ago (2015-03-31 01:37:49 UTC) #25
Mikhail
On 2015/03/30 17:47:16, scheib wrote: > Ok this is looking pretty reasonable, but it's hard ...
5 years, 8 months ago (2015-03-31 15:23:32 UTC) #26
Mikhail
On 2015/03/31 01:37:49, miu wrote: > https://codereview.chromium.org/964403003/diff/60001/content/renderer/render_widget.h > File content/renderer/render_widget.h (right): > > https://codereview.chromium.org/964403003/diff/60001/content/renderer/render_widget.h#newcode127 > ...
5 years, 8 months ago (2015-03-31 15:24:24 UTC) #27
scheib
On 2015/03/31 15:24:24, Mikhail wrote: > On 2015/03/31 01:37:49, miu wrote: > > > https://codereview.chromium.org/964403003/diff/60001/content/renderer/render_widget.h ...
5 years, 8 months ago (2015-03-31 21:02:48 UTC) #28
scheib
https://codereview.chromium.org/964403003/diff/80001/chrome/test/data/extensions/fullscreen_app/check_media_feature.js File chrome/test/data/extensions/fullscreen_app/check_media_feature.js (right): https://codereview.chromium.org/964403003/diff/80001/chrome/test/data/extensions/fullscreen_app/check_media_feature.js#newcode1 chrome/test/data/extensions/fullscreen_app/check_media_feature.js:1: var fullscreen = matchMedia( '(display-mode: fullscreen)' ); This needs ...
5 years, 8 months ago (2015-03-31 21:03:02 UTC) #29
scheib
On 2015/03/31 15:23:32, Mikhail wrote: > These are the related blink side patches: > https://codereview.chromium.org/870933002 ...
5 years, 8 months ago (2015-03-31 21:05:35 UTC) #30
miu
On 2015/03/31 21:02:48, scheib wrote: > On 2015/03/31 15:24:24, Mikhail wrote: > > On 2015/03/31 ...
5 years, 8 months ago (2015-03-31 21:22:12 UTC) #31
miu
On 2015/03/31 15:24:24, Mikhail wrote: > On 2015/03/31 01:37:49, miu wrote: > > I understand ...
5 years, 8 months ago (2015-03-31 21:24:47 UTC) #32
scheib
https://codereview.chromium.org/964403003/diff/80001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/964403003/diff/80001/content/public/browser/web_contents_delegate.h#newcode384 content/public/browser/web_contents_delegate.h:384: virtual blink::WebDisplayMode GetDisplayMode( Comment here the specification DisplayMode represents, ...
5 years, 8 months ago (2015-03-31 21:55:02 UTC) #33
scheib
OK, sorry for missing that, I've looked again and agree with miu@, is_fullscreen is used ...
5 years, 8 months ago (2015-03-31 21:55:23 UTC) #34
Mikhail
On 2015/03/31 21:05:35, scheib wrote: > On 2015/03/31 15:23:32, Mikhail wrote: > > These are ...
5 years, 8 months ago (2015-04-07 22:14:58 UTC) #35
Mikhail
On 2015/03/31 21:24:47, miu wrote: > At the least, in this change, please file a ...
5 years, 8 months ago (2015-04-07 22:15:52 UTC) #36
miu
lgtm
5 years, 8 months ago (2015-04-08 01:25:03 UTC) #37
jochen (gone - plz use gerrit)
https://codereview.chromium.org/964403003/diff/100001/content/browser/web_contents/web_contents_impl_browsertest.cc File content/browser/web_contents/web_contents_impl_browsertest.cc (right): https://codereview.chromium.org/964403003/diff/100001/content/browser/web_contents/web_contents_impl_browsertest.cc#newcode659 content/browser/web_contents/web_contents_impl_browsertest.cc:659: }; nit. DISALLOW_COPY_AND_ASSIGN() also please add a virtual dtor ...
5 years, 8 months ago (2015-04-08 07:54:37 UTC) #38
Mikhail
https://codereview.chromium.org/964403003/diff/100001/content/browser/web_contents/web_contents_impl_browsertest.cc File content/browser/web_contents/web_contents_impl_browsertest.cc (right): https://codereview.chromium.org/964403003/diff/100001/content/browser/web_contents/web_contents_impl_browsertest.cc#newcode659 content/browser/web_contents/web_contents_impl_browsertest.cc:659: }; On 2015/04/08 07:54:36, jochen wrote: > nit. DISALLOW_COPY_AND_ASSIGN() ...
5 years, 8 months ago (2015-04-08 09:16:01 UTC) #39
jochen (gone - plz use gerrit)
lgtm
5 years, 8 months ago (2015-04-08 09:21:04 UTC) #40
Mikhail
On 2015/03/31 21:03:02, scheib wrote: > https://codereview.chromium.org/964403003/diff/80001/chrome/test/data/extensions/fullscreen_app/check_media_feature.js > File chrome/test/data/extensions/fullscreen_app/check_media_feature.js (right): > > https://codereview.chromium.org/964403003/diff/80001/chrome/test/data/extensions/fullscreen_app/check_media_feature.js#newcode1 > ...
5 years, 8 months ago (2015-04-08 11:09:00 UTC) #41
Mikhail
https://codereview.chromium.org/964403003/diff/80001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/964403003/diff/80001/content/public/browser/web_contents_delegate.h#newcode384 content/public/browser/web_contents_delegate.h:384: virtual blink::WebDisplayMode GetDisplayMode( On 2015/03/31 21:55:02, scheib wrote: > ...
5 years, 8 months ago (2015-04-08 11:09:37 UTC) #42
Mikhail
On 2015/04/08 11:09:00, Mikhail wrote: > On 2015/03/31 21:03:02, scheib wrote: > > > https://codereview.chromium.org/964403003/diff/80001/chrome/test/data/extensions/fullscreen_app/check_media_feature.js ...
5 years, 8 months ago (2015-04-09 20:55:38 UTC) #43
Mikhail
On 2015/04/09 20:55:38, Mikhail wrote: > On 2015/04/08 11:09:00, Mikhail wrote: > > On 2015/03/31 ...
5 years, 8 months ago (2015-04-10 10:24:27 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/964403003/160001
5 years, 8 months ago (2015-04-10 10:28:02 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/55423)
5 years, 8 months ago (2015-04-10 10:37:34 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/964403003/180001
5 years, 8 months ago (2015-04-10 12:29:27 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/10992)
5 years, 8 months ago (2015-04-10 18:31:35 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/964403003/180001
5 years, 8 months ago (2015-04-13 07:55:15 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/11439)
5 years, 8 months ago (2015-04-13 13:55:12 UTC) #58
scheib
LGTM Small comment change requested. Cite the layout test in this change description https://codereview.chromium.org/1066213003/ https://codereview.chromium.org/964403003/diff/180001/content/shell/browser/shell.cc ...
5 years, 8 months ago (2015-04-13 18:30:22 UTC) #59
Mikhail
The newly added test cannot pass on Android because of http://crbug.com/129998: [ERROR:shell_android.cc(70)] Not implemented reached ...
5 years, 8 months ago (2015-04-14 10:37:23 UTC) #60
Mikhail
On 2015/04/14 10:37:23, Mikhail wrote: > The newly added test cannot pass on Android because ...
5 years, 8 months ago (2015-04-14 12:33:07 UTC) #61
Mikhail
On 2015/04/14 12:33:07, Mikhail wrote: > On 2015/04/14 10:37:23, Mikhail wrote: > > The newly ...
5 years, 8 months ago (2015-04-14 13:22:18 UTC) #62
scheib
LGTM For smaller changes you should use judgement, especially if they're test only fix ups ...
5 years, 8 months ago (2015-04-14 15:06:32 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/964403003/240001
5 years, 8 months ago (2015-04-15 06:47:33 UTC) #66
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 8 months ago (2015-04-15 06:51:38 UTC) #67
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 06:52:28 UTC) #68
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/c0e251b8eedbeec65e9d0cafc3c270f072fc6724
Cr-Commit-Position: refs/heads/master@{#325200}

Powered by Google App Engine
This is Rietveld 408576698