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

Issue 2317563004: Change blink::WebScreenInfo to content::ScreenInfo (Closed)

Created:
4 years, 3 months ago by ccameron
Modified:
4 years, 3 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, mlamouri+watch-screen-orientation_chromium.org, nasko+codewatch_chromium.org, browser-components-watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, jam, gcasto+watch-blimp_chromium.org, nona+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, lethalantidote+watch-blimp_chromium.org, devtools-reviews_chromium.org, vabr+watchlistautofill_chromium.org, einbinder+watch-test-runner_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, rouslan+autofill_chromium.org, piman+watch_chromium.org, James Su, khushalsagar+watch-blimp_chromium.org, mlamouri+watch-test-runner_chromium.org, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, shuchen+watch_chromium.org, dtapuska+chromiumwatch_chromium.org, jdonnelly+autofillwatch_chromium.org, estade+watch_chromium.org, dtrainor+watch-blimp_chromium.org, pfeldman, hubbe
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change blink::WebScreenInfo to content::ScreenInfo Before this patch, we use blink::WebScreenInfo far more in content than in blink. Particularly objectionable is that all of the RenderWidget::Create functions take this blink structure, rather than a content structure. After this patch, content traffics (almost) exclusively in a content::ScreenInfo type, which is converted to a blink::WebScreenInfo only inside the renderer process, when crossing the boundary to blink. The reason for making this change now is that we will need to add a gfx::ICCProfile to the screen info sent to content::RenderWidget::Create and content::ResizeParams, but we will not be needing this information in blink (there is no "real" ICC profile structure in Blink, and to the extent that it does exist, it will be removed). BUG=644545 TBR=dtrainor CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/2f4515313ffa7f28fa241c098d6e2ba0a5b4ccf5 Cr-Commit-Position: refs/heads/master@{#417058}

Patch Set 1 : git cl try #

Patch Set 2 : Fix Windows compile #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+387 lines, -288 lines) Patch
M blimp/engine/feature/engine_render_widget_feature_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/content/browser/risk/fingerprint.cc View 8 chunks +9 lines, -11 lines 0 comments Download
M components/autofill/content/browser/risk/fingerprint_browsertest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/devtools/protocol/color_picker.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/devtools/protocol/page_handler.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/frame_host/interstitial_page_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/interstitial_page_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/synthetic_gesture_target_aura.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.h View 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 5 chunks +13 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 3 chunks +15 lines, -17 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base_unittest.cc View 2 chunks +24 lines, -24 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/screen_orientation/screen_orientation_browsertest.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view.h View 2 chunks +3 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_view_android.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_android.cc View 3 chunks +8 lines, -10 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 2 chunks +14 lines, -16 lines 0 comments Download
M content/browser/web_contents/web_contents_view_child_frame.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_child_frame.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_view_guest.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_guest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 4 chunks +13 lines, -13 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_mus.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/resize_params.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 4 chunks +10 lines, -8 lines 2 comments Download
M content/public/browser/render_widget_host.h View 3 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/screen_orientation_provider.cc View 1 3 chunks +31 lines, -33 lines 0 comments Download
M content/public/common/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/common/screen_info.h View 1 chunk +51 lines, -0 lines 0 comments Download
A content/public/common/screen_info.cc View 1 chunk +25 lines, -0 lines 0 comments Download
M content/public/common/screen_orientation_values.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/devtools/render_widget_screen_metrics_emulator.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/devtools/render_widget_screen_metrics_emulator.cc View 4 chunks +30 lines, -10 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/mus/compositor_mus_connection_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 3 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_frame_impl_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.h View 6 chunks +7 lines, -6 lines 0 comments Download
M content/renderer/render_widget.cc View 10 chunks +42 lines, -14 lines 0 comments Download
M content/renderer/render_widget_browsertest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_widget_fullscreen.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/resizing_mode_selector.cc View 2 chunks +1 line, -2 lines 0 comments Download
M content/test/fuzzer/fuzzer_support.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/layouttest_support.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 53 (43 generated)
ccameron
PTAL -- a big rename in content and some related places. dtrainor: please do blimp/ ...
4 years, 3 months ago (2016-09-07 19:43:41 UTC) #32
dcheng
https://codereview.chromium.org/2317563004/diff/120001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/2317563004/diff/120001/content/common/view_messages.h#newcode90 content/common/view_messages.h:90: blink::WebScreenOrientationLandscapeSecondary) Is it possible to remove this now?
4 years, 3 months ago (2016-09-07 19:52:29 UTC) #33
Evan Stade
autofill lgtm """ When to use To Be Reviewed (TBR) - For widespread or refactoring ...
4 years, 3 months ago (2016-09-07 19:54:07 UTC) #36
Avi (use Gerrit)
lgtm stampity stamp
4 years, 3 months ago (2016-09-07 20:12:11 UTC) #39
ccameron
https://codereview.chromium.org/2317563004/diff/120001/content/common/view_messages.h File content/common/view_messages.h (right): https://codereview.chromium.org/2317563004/diff/120001/content/common/view_messages.h#newcode90 content/common/view_messages.h:90: blink::WebScreenOrientationLandscapeSecondary) On 2016/09/07 19:52:29, dcheng wrote: > Is it ...
4 years, 3 months ago (2016-09-07 20:21:30 UTC) #41
dcheng
ipc lgtm
4 years, 3 months ago (2016-09-07 20:42:48 UTC) #43
ccameron
Thanks all! Adding TBR for blimp/, based on Evan's remarks.
4 years, 3 months ago (2016-09-07 21:34:22 UTC) #46
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/2317563004/120001
4 years, 3 months ago (2016-09-07 21:40:59 UTC) #49
commit-bot: I haz the power
Committed patchset #2 (id:120001)
4 years, 3 months ago (2016-09-07 21:49:57 UTC) #51
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 21:52:54 UTC) #53
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2f4515313ffa7f28fa241c098d6e2ba0a5b4ccf5
Cr-Commit-Position: refs/heads/master@{#417058}

Powered by Google App Engine
This is Rietveld 408576698