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

Unified Diff: Source/web/WebPluginContainerImpl.cpp

Issue 24253004: Cleanup: Start using toFoo methods as part of newly adopted coding guideline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebAXObject.cpp ('k') | Source/web/tests/ScrollingCoordinatorChromiumTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPluginContainerImpl.cpp
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp
index e9275cd70b31c69fa9b4d69fb38bceb80fa7a742..a5f100b6a3309f2537508f37680d72e46be3a238 100644
--- a/Source/web/WebPluginContainerImpl.cpp
+++ b/Source/web/WebPluginContainerImpl.cpp
@@ -194,7 +194,7 @@ void WebPluginContainerImpl::handleEvent(Event* event)
else if (event->isKeyboardEvent())
handleKeyboardEvent(toKeyboardEvent(event));
else if (eventNames().isTouchEventType(event->type()))
- handleTouchEvent(static_cast<TouchEvent*>(event));
+ handleTouchEvent(toTouchEvent(event));
else if (eventNames().isGestureEventType(event->type()))
handleGestureEvent(static_cast<GestureEvent*>(event));
@@ -856,7 +856,7 @@ void WebPluginContainerImpl::synthesizeMouseEventIfPossible(TouchEvent* event)
void WebPluginContainerImpl::focusPlugin()
{
- Frame& containingFrame = static_cast<FrameView*>(parent())->frame();
+ Frame& containingFrame = toFrameView(parent())->frame();
if (Page* currentPage = containingFrame.page())
currentPage->focusController().setFocusedElement(m_element, &containingFrame);
else
« no previous file with comments | « Source/web/WebAXObject.cpp ('k') | Source/web/tests/ScrollingCoordinatorChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698