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

Unified Diff: Source/core/dom/Document.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/core/dom/Document.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 00874d2f95c4bcf5ed3acd373ca16b87d337e211..d343d9c8de4ecec8a729308fa5116cf8fd1b45b8 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3424,7 +3424,7 @@ void Document::setAnnotatedRegions(const Vector<AnnotatedRegionValue>& regions)
setAnnotatedRegionsDirty(false);
}
-bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedElement, FocusType type)
+bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedElement, WebFocusType type)
{
m_clearFocusedElementTimer.stop();
@@ -3479,9 +3479,9 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
if (view()) {
Widget* oldWidget = widgetForElement(*oldFocusedElement);
if (oldWidget)
- oldWidget->setFocus(false);
+ oldWidget->setFocus(false, type);
else
- view()->setFocus(false);
+ view()->setFocus(false, type);
}
}
@@ -3543,9 +3543,9 @@ bool Document::setFocusedElement(PassRefPtrWillBeRawPtr<Element> prpNewFocusedEl
focusWidget = widgetForElement(*m_focusedElement);
}
if (focusWidget)
- focusWidget->setFocus(true);
+ focusWidget->setFocus(true, type);
else
- view()->setFocus(true);
+ view()->setFocus(true, type);
}
}
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698