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

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

Issue 1504743002: Do not show a tooltip same as the previous one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 5 years 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/page/ChromeClient.h
diff --git a/third_party/WebKit/Source/core/page/ChromeClient.h b/third_party/WebKit/Source/core/page/ChromeClient.h
index 431a1f0b4d01a96a152eaaa6ece7605a7f702d71..771528b73e7b2b682b2482c8788b5326d2d98b80 100644
--- a/third_party/WebKit/Source/core/page/ChromeClient.h
+++ b/third_party/WebKit/Source/core/page/ChromeClient.h
@@ -22,6 +22,7 @@
#ifndef ChromeClient_h
#define ChromeClient_h
+#include "base/gtest_prod_util.h"
#include "core/CoreExport.h"
#include "core/dom/AXObjectCache.h"
#include "core/frame/ConsoleTypes.h"
@@ -155,6 +156,7 @@ public:
void mouseDidMoveOverElement(const HitTestResult&);
virtual void setToolTip(const String&, TextDirection) = 0;
+ void clearToolTip();
void print(LocalFrame*);
@@ -270,6 +272,11 @@ protected:
private:
bool canOpenModalIfDuringPageDismissal(Frame* mainFrame, DialogType, const String& message);
void setToolTip(const HitTestResult&);
+
+ LayoutPoint m_lastToolTipPoint;
+ String m_lastToolTipText;
+
+ FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/page/ChromeClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698