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

Unified Diff: third_party/WebKit/Source/core/page/ChromeClient.h

Issue 2592263003: Send an empty tooltip text when hovering over a different node (Closed)
Patch Set: Send an empty tooltip text when hoverring over a different node Created 3 years, 12 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 | « no previous file | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/ChromeClient.h
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.h b/third_party/WebKit/Source/core/page/ChromeClient.h
index 7ddb77859e06b5fbcf0afe939ea0cd4f6088d8a8..2faaddba80be220c5cf0a7f763ee37f39ded3911 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.h
+++ b/third_party/WebKit/Source/core/page/ChromeClient.h
@@ -180,7 +180,11 @@ class CORE_EXPORT ChromeClient : public HostWindow {
virtual WebScreenInfo screenInfo() const = 0;
virtual void setCursor(const Cursor&, LocalFrame* localRoot) = 0;
// End methods used by HostWindow.
+
virtual Cursor lastSetCursorForTesting() const = 0;
+ Node* lastSetTooltipNodeForTesting() const {
+ return m_lastMouseOverNode.get();
+ }
// Returns a custom visible content rect if a viewport override is active.
virtual WTF::Optional<IntRect> visibleContentRectForPainting() const {
@@ -338,6 +342,8 @@ class CORE_EXPORT ChromeClient : public HostWindow {
virtual void installSupplements(LocalFrame&) {}
+ DECLARE_TRACE();
+
protected:
~ChromeClient() override {}
@@ -359,6 +365,7 @@ class CORE_EXPORT ChromeClient : public HostWindow {
const String& message);
void setToolTip(LocalFrame&, const HitTestResult&);
+ WeakMember<Node> m_lastMouseOverNode;
LayoutPoint m_lastToolTipPoint;
String m_lastToolTipText;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698