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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2965603002: Update hover states when dragging the mouse into an element (Closed)
Patch Set: hover drag Created 3 years, 5 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
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index 89293da9e9f99b7e0198cfdf661dcc50fd901f47..0e9eec74bc6432cece97e8c4deab6c4711e87f56 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -728,8 +728,8 @@ class CORE_EXPORT Document : public ContainerNode,
void SetSequentialFocusNavigationStartingPoint(Node*);
Element* SequentialFocusNavigationStartingPoint(WebFocusType) const;
- void SetActiveHoverElement(Element*);
- Element* ActiveHoverElement() const { return active_hover_element_.Get(); }
+ void SetActiveElement(Element*);
+ Element* GetActiveElement() const { return active_element_.Get(); }
Element* HoverElement() const { return hover_element_.Get(); }
@@ -1448,6 +1448,9 @@ class CORE_EXPORT Document : public ContainerNode,
bool HaveImportsLoaded() const;
void ViewportDefiningElementDidChange();
+ void UpdateActiveState(const HitTestRequest&, Element*);
+ void UpdateHoverState(const HitTestRequest&, Element*);
+
DocumentLifecycle lifecycle_;
bool has_nodes_with_placeholder_style_;
@@ -1503,7 +1506,7 @@ class CORE_EXPORT Document : public ContainerNode,
Member<Element> focused_element_;
Member<Range> sequential_focus_navigation_starting_point_;
Member<Element> hover_element_;
- Member<Element> active_hover_element_;
+ Member<Element> active_element_;
Member<Element> document_element_;
UserActionElementSet user_action_elements_;
Member<RootScrollerController> root_scroller_controller_;

Powered by Google App Engine
This is Rietveld 408576698