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

Issue 2860673002: Change all test cases to use WebViewBase instead of WebViewImpl. (Closed)

Created:
3 years, 7 months ago by slangley
Modified:
3 years, 6 months ago
Reviewers:
haraken, sashab, dcheng
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, kinuko+watch, rjwright, shans
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Change all test cases to use WebViewBase instead of WebViewImpl. This CL changes all of the test cases to use the abstract WebViewBase class in place of WebViewImpl. This should be the final CL to decouple the use of WebViewImpl in web/ and move everything over to WebViewBase. As before, there were a number of methods defined in WebViewImpl that needed to be made virtual in WebViewBase and then overridden in WebViewImpl. Also, it was not possible to use CORE_EXPORT or MODULES_EXPORT to export the statically defined symbols from WebViewBase, so I used PLATFORM_EXPORT instead. A number of symbols were being transitively included, so in places needed to add include files to bring the symbols into scope. BUG=712963 Review-Url: https://codereview.chromium.org/2860673002 Cr-Commit-Position: refs/heads/master@{#469575} Committed: https://chromium.googlesource.com/chromium/src/+/ba9abc4c70ae99cf7fc03adbd48258cea2514595

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address code review comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -391 lines) Patch
M third_party/WebKit/Source/core/exported/WebViewBase.h View 1 5 chunks +43 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImplTest.cpp View 6 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlayTest.cpp View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 8 chunks +26 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/AnimationSimTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/BrowserControlsTest.cpp View 24 chunks +32 lines, -31 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp View 1 6 chunks +9 lines, -12 lines 1 comment Download
M third_party/WebKit/Source/web/tests/CompositorWorkerTest.cpp View 3 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.h View 6 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp View 1 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ImeOnFocusTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/LayoutGeometryMapTest.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/ProgrammaticScrollTest.cpp View 3 chunks +12 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/web/tests/RootScrollerTest.cpp View 16 chunks +39 lines, -40 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp View 14 chunks +23 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/web/tests/TouchActionTest.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 6 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameSerializerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 49 chunks +53 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp View 7 chunks +37 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 95 chunks +102 lines, -96 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimCompositor.h View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimCompositor.cpp View 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimTest.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/sim/SimTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (14 generated)
slangley
3 years, 7 months ago (2017-05-03 03:58:23 UTC) #3
sashab
https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h File third_party/WebKit/Source/core/exported/WebViewBase.h (right): https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h#newcode69 third_party/WebKit/Source/core/exported/WebViewBase.h:69: PLATFORM_EXPORT static WebViewBase* Create(WebViewClient*, I think BLINK_EXPORT is better ...
3 years, 7 months ago (2017-05-03 04:05:22 UTC) #4
sashab
Other than that LGTM https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp File third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp (right): https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp#newcode48 third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp:48: WebViewBase::SetCurrentInputEventForTest(event); Maybe next time do ...
3 years, 7 months ago (2017-05-03 04:34:19 UTC) #5
slangley
haraken@ - ptal. There are a couple of nits, WDYT? https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h File third_party/WebKit/Source/core/exported/WebViewBase.h (right): https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h#newcode69 ...
3 years, 7 months ago (2017-05-03 21:43:08 UTC) #8
haraken
LGTM with a couple of questions. https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h File third_party/WebKit/Source/core/exported/WebViewBase.h (right): https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h#newcode69 third_party/WebKit/Source/core/exported/WebViewBase.h:69: PLATFORM_EXPORT static WebViewBase* ...
3 years, 7 months ago (2017-05-04 05:30:42 UTC) #14
slangley
Thanks! https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h File third_party/WebKit/Source/core/exported/WebViewBase.h (right): https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h#newcode69 third_party/WebKit/Source/core/exported/WebViewBase.h:69: PLATFORM_EXPORT static WebViewBase* Create(WebViewClient*, On 2017/05/04 at 05:30:42, ...
3 years, 7 months ago (2017-05-04 09:15:34 UTC) #15
haraken
(Tokyo is a vacation week, and I'll be slow at reviewing.) https://codereview.chromium.org/2860673002/diff/1/third_party/WebKit/Source/core/exported/WebViewBase.h File third_party/WebKit/Source/core/exported/WebViewBase.h (right): ...
3 years, 7 months ago (2017-05-04 15:14:32 UTC) #16
slangley
On 2017/05/04 at 15:14:32, haraken wrote: > (Tokyo is a vacation week, and I'll be ...
3 years, 7 months ago (2017-05-05 00:27:33 UTC) #17
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/2860673002/20001
3 years, 7 months ago (2017-05-05 00:28:24 UTC) #20
haraken
LGTM
3 years, 7 months ago (2017-05-05 00:54:00 UTC) #21
haraken
https://codereview.chromium.org/2860673002/diff/20001/third_party/WebKit/Source/core/exported/WebViewBase.h File third_party/WebKit/Source/core/exported/WebViewBase.h (right): https://codereview.chromium.org/2860673002/diff/20001/third_party/WebKit/Source/core/exported/WebViewBase.h#newcode70 third_party/WebKit/Source/core/exported/WebViewBase.h:70: // WebPageVisibilityState); Remove this.
3 years, 7 months ago (2017-05-05 00:54:38 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/ba9abc4c70ae99cf7fc03adbd48258cea2514595
3 years, 7 months ago (2017-05-05 02:27:50 UTC) #25
slangley
https://codereview.chromium.org/2860673002/diff/20001/third_party/WebKit/Source/core/exported/WebViewBase.h File third_party/WebKit/Source/core/exported/WebViewBase.h (right): https://codereview.chromium.org/2860673002/diff/20001/third_party/WebKit/Source/core/exported/WebViewBase.h#newcode70 third_party/WebKit/Source/core/exported/WebViewBase.h:70: // WebPageVisibilityState); On 2017/05/05 at 00:54:38, haraken wrote: > ...
3 years, 7 months ago (2017-05-05 06:12:11 UTC) #26
dcheng
3 years, 6 months ago (2017-05-29 10:09:19 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/2860673002/diff/20001/third_party/WebKit/Sour...
File third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp (right):

https://codereview.chromium.org/2860673002/diff/20001/third_party/WebKit/Sour...
third_party/WebKit/Source/web/tests/ChromeClientImplTest.cpp:252:
WebViewBase::Create(&web_view_client_, kWebPageVisibilityStateVisible));
Btw I just came across this and found it a little confusing.

Should we have a static WebViewBase::Create() which just returns a WebViewBase*?
I think this is actually calling WebView::Create() right now.

Powered by Google App Engine
This is Rietveld 408576698