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

Unified Diff: sky/engine/core/dom/Element.cpp

Issue 790673006: Delete focused by mouse code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Element.cpp
diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
index cf55f981df2707e9c09118586ef74a15563e751a..09b702cbd8a169ea9ca7354e0e835f22e1484126 100644
--- a/sky/engine/core/dom/Element.cpp
+++ b/sky/engine/core/dom/Element.cpp
@@ -1288,21 +1288,8 @@ bool Element::isMouseFocusable() const
return isFocusable();
}
-void Element::willCallDefaultEventHandler(const Event& event)
-{
- // FIXME(sky): wasFocusedByMouse always returns false. Remove this function.
- if (!wasFocusedByMouse())
- return;
- if (!event.isKeyboardEvent() || event.type() != EventTypeNames::keydown)
- return;
- setWasFocusedByMouse(false);
-}
-
void Element::dispatchFocusEvent(Element* oldFocusedElement, FocusType type)
{
- if (type != FocusTypePage)
- setWasFocusedByMouse(type == FocusTypeMouse);
-
RefPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::focus, false, false, document().domWindow(), 0, oldFocusedElement);
EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(event.release()));
}
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698