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

Issue 23671002: Refactoring: Add toWebFrameImpl() interface. (Closed)

Created:
7 years, 3 months ago by r.kasibhatla
Modified:
7 years, 3 months ago
Reviewers:
tkent, jamesr
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Refactoring: Add toWebFrameImpl() interface. We should avoid static_cast at various places by using proper conversion function. This would avoid the error that can be introduced with each manual addition of static_cast addition. Unlike other toClassName functions (like in rendering), we do not require an assertion to confirm the type of passed WebFrame object, since WebFrameImpl is the only child class of WebFrame. BUG=NONE TEST=none; no behavior changes. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156825

Patch Set 1 #

Patch Set 2 : Refactoring: Add toWebFrameImpl() interface. #

Total comments: 1

Patch Set 3 : Corrected as per review commments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -53 lines) Patch
M Source/web/ChromeClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebDOMMessageEvent.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebFrameImpl.h View 1 1 chunk +13 lines, -0 lines 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 5 chunks +5 lines, -5 lines 0 comments Download
M Source/web/WebPageSerializer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPageSerializerImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebRange.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebSharedWorkerImpl.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/web/mac/WebSubstringUtil.mm View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/CustomEventTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/FrameLoaderClientImplTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/web/tests/PopupMenuTest.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M Source/web/tests/RenderTableCellTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/tests/RenderTableRowTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 13 chunks +17 lines, -17 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 8 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
r.kasibhatla
7 years, 3 months ago (2013-08-28 04:27:33 UTC) #1
tkent
lgtm https://codereview.chromium.org/23671002/diff/2001/Source/web/tests/PopupMenuTest.cpp File Source/web/tests/PopupMenuTest.cpp (right): https://codereview.chromium.org/23671002/diff/2001/Source/web/tests/PopupMenuTest.cpp#newcode190 Source/web/tests/PopupMenuTest.cpp:190: m_popupMenu = adoptRef(new PopupMenuChromium(*(toWebFrameImpl(m_webView->mainFrame())->frame()), &m_popupMenuClient)); You don't need ...
7 years, 3 months ago (2013-08-28 04:40:10 UTC) #2
tkent
> Refactoring: Add toWebFrameImpl() & toConstWebFrameImpl() interfaces. Please update the description.
7 years, 3 months ago (2013-08-28 04:42:13 UTC) #3
r.kasibhatla
On 2013/08/28 04:42:13, tkent wrote: > > Refactoring: Add toWebFrameImpl() & toConstWebFrameImpl() interfaces. > > ...
7 years, 3 months ago (2013-08-28 05:05:28 UTC) #4
r.kasibhatla
On 2013/08/28 04:40:10, tkent wrote: > lgtm > > https://codereview.chromium.org/23671002/diff/2001/Source/web/tests/PopupMenuTest.cpp > File Source/web/tests/PopupMenuTest.cpp (right): > ...
7 years, 3 months ago (2013-08-28 05:05:41 UTC) #5
tkent
lgtm. Thanks!
7 years, 3 months ago (2013-08-28 05:06:29 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/r.kasibhatla@samsung.com/23671002/7001
7 years, 3 months ago (2013-08-28 05:06:45 UTC) #7
commit-bot: I haz the power
7 years, 3 months ago (2013-08-28 07:07:46 UTC) #8
Message was sent while issue was closed.
Change committed as 156825

Powered by Google App Engine
This is Rietveld 408576698