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

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)

Created:
4 years, 3 months ago by lfg
Modified:
3 years, 3 months ago
Reviewers:
falken, dcheng
CC:
chromium-reviews, nasko+codewatch_chromium.org, apavlov+blink_chromium.org, kinuko+watch, caseq+blink_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, einbinder+watch-test-runner_chromium.org, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, Peter Beverloo, lushnikov+blink_chromium.org, loading-reviews_chromium.org, Nate Chapin, jochen+watch_chromium.org, tyoshino+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, pfeldman+blink_chromium.org, kozyatinskiy+blink_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move convertViewportToWindow and convertWindowToViewport from WebViewClient to WebWidgetClient. This is part of a refactor to split WebView/WebWidget. BUG=583347

Patch Set 1 #

Total comments: 22

Patch Set 2 : rebase #

Patch Set 3 : addressing comment, moving Widget* to Widget& #

Patch Set 4 : add client to WebSharedWorkerImpl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -53 lines) Patch
M content/public/test/layouttest_support.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 3 chunks +2 lines, -10 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/test/layouttest_support.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocument.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocumentTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/DevToolsHost.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/SpatialNavigation.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/HostWindow.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/Scrollbar.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/DateTimeChooserImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/InspectorOverlay.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/PopupMenuImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h View 1 2 4 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.h View 1 2 3 4 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp View 1 2 3 4 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebViewClient.h View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
lfg
+dcheng, please take a look.
4 years, 3 months ago (2016-08-31 19:51:04 UTC) #4
dcheng
So looking at this and the other CLs, I wonder if we should just move ...
4 years, 3 months ago (2016-09-02 08:57:39 UTC) #7
lfg
https://codereview.chromium.org/2290233007/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/2290233007/diff/1/content/renderer/render_view_impl.cc#newcode2108 content/renderer/render_view_impl.cc:2108: void RenderViewImpl::ConvertViewportToWindowViaWidget(blink::WebRect* rect) { On 2016/09/02 08:57:39, dcheng wrote: ...
4 years, 3 months ago (2016-09-02 17:36:38 UTC) #8
dcheng
+falken for worker question https://codereview.chromium.org/2290233007/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2290233007/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc#newcode497 content/shell/renderer/layout_test/blink_test_runner.cc:497: return content::GetWindowToViewportScale(render_view()->GetMainRenderFrame()); On 2016/09/02 17:36:37, ...
4 years, 3 months ago (2016-09-08 05:25:48 UTC) #10
falken
https://codereview.chromium.org/2290233007/diff/1/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp File third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp (right): https://codereview.chromium.org/2290233007/diff/1/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp#newcode299 third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp:299: m_webFrameWidget = WebFrameWidget::create(nullptr, m_webView, m_mainFrame); On 2016/09/08 05:25:47, dcheng ...
4 years, 3 months ago (2016-09-08 05:50:39 UTC) #11
lfg
https://codereview.chromium.org/2290233007/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc File content/shell/renderer/layout_test/blink_test_runner.cc (right): https://codereview.chromium.org/2290233007/diff/1/content/shell/renderer/layout_test/blink_test_runner.cc#newcode497 content/shell/renderer/layout_test/blink_test_runner.cc:497: return content::GetWindowToViewportScale(render_view()->GetMainRenderFrame()); On 2016/09/08 05:25:47, dcheng wrote: > > ...
4 years, 3 months ago (2016-09-08 21:40:43 UTC) #12
falken
https://codereview.chromium.org/2290233007/diff/1/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp File third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp (right): https://codereview.chromium.org/2290233007/diff/1/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp#newcode143 third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp:143: m_webFrameWidget = WebFrameWidget::create(nullptr, m_webView, m_mainFrame); On 2016/09/08 21:40:43, lfg ...
4 years, 3 months ago (2016-09-09 05:04:28 UTC) #13
lfg
Daniel: ping.
4 years, 3 months ago (2016-09-23 16:24:45 UTC) #14
dcheng
On 2016/09/23 16:24:45, lfg wrote: > Daniel: ping. My comments regarding a null client haven't ...
4 years, 3 months ago (2016-09-23 17:29:22 UTC) #15
lfg
4 years, 3 months ago (2016-09-23 19:24:43 UTC) #18
On 2016/09/23 17:29:22, dcheng wrote:
> On 2016/09/23 16:24:45, lfg wrote:
> > Daniel: ping.
> 
> My comments regarding a null client haven't been addressed.

Ah, sorry, I missed that. Done, please take another look.

I've also switched Widget* to Widget&, to be more in line with what we've been
doing on other patches. I'll follow up eventually cleaning up the places that
are different.

Powered by Google App Engine
This is Rietveld 408576698