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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 852083002: Propagate focus type to plugins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved Created 5 years, 11 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/WebPluginContainerImpl.cpp ('k') | public/platform/WebFocusType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index 8b7320a2516e8fb3b3b8b5ca36af9fd44f7eeeab..1eacaa5647b8f52538fddbc2a586abc4763527ca 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -2756,7 +2756,7 @@ void WebViewImpl::setInitialFocus(bool reverse)
if (Document* document = toLocalFrame(frame)->document())
document->setFocusedElement(nullptr);
}
- page()->focusController().setInitialFocus(reverse ? FocusTypeBackward : FocusTypeForward);
+ page()->focusController().setInitialFocus(reverse ? WebFocusTypeBackward : WebFocusTypeForward);
}
void WebViewImpl::clearFocusedElement()
@@ -2888,7 +2888,7 @@ void WebViewImpl::computeScaleAndScrollForFocusedNode(Node* focusedNode, float&
void WebViewImpl::advanceFocus(bool reverse)
{
- page()->focusController().advanceFocus(reverse ? FocusTypeBackward : FocusTypeForward);
+ page()->focusController().advanceFocus(reverse ? WebFocusTypeBackward : WebFocusTypeForward);
}
double WebViewImpl::zoomLevel()
« no previous file with comments | « Source/web/WebPluginContainerImpl.cpp ('k') | public/platform/WebFocusType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698