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

Side by Side Diff: third_party/WebKit/Source/core/page/ChromeClient.h

Issue 2681803002: blink: clear tooltips on frame leaves (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple, Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0; 198 virtual void contentsSizeChanged(LocalFrame*, const IntSize&) const = 0;
199 virtual void pageScaleFactorChanged() const {} 199 virtual void pageScaleFactorChanged() const {}
200 virtual float clampPageScaleFactorToLimits(float scale) const { 200 virtual float clampPageScaleFactorToLimits(float scale) const {
201 return scale; 201 return scale;
202 } 202 }
203 virtual void mainFrameScrollOffsetChanged() const {} 203 virtual void mainFrameScrollOffsetChanged() const {}
204 virtual void layoutUpdated(LocalFrame*) const {} 204 virtual void layoutUpdated(LocalFrame*) const {}
205 205
206 void mouseDidMoveOverElement(LocalFrame&, const HitTestResult&); 206 void mouseDidMoveOverElement(LocalFrame&, const HitTestResult&);
207 void mouseDidLeave(LocalFrame&);
207 virtual void setToolTip(LocalFrame&, const String&, TextDirection) = 0; 208 virtual void setToolTip(LocalFrame&, const String&, TextDirection) = 0;
208 void clearToolTip(LocalFrame&); 209 void clearToolTip(LocalFrame&);
209 210
210 bool print(LocalFrame*); 211 bool print(LocalFrame*);
211 212
212 virtual void annotatedRegionsChanged() = 0; 213 virtual void annotatedRegionsChanged() = 0;
213 214
214 virtual ColorChooser* openColorChooser(LocalFrame*, 215 virtual ColorChooser* openColorChooser(LocalFrame*,
215 ColorChooserClient*, 216 ColorChooserClient*,
216 const Color&) = 0; 217 const Color&) = 0;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 WeakMember<Node> m_lastMouseOverNode; 373 WeakMember<Node> m_lastMouseOverNode;
373 LayoutPoint m_lastToolTipPoint; 374 LayoutPoint m_lastToolTipPoint;
374 String m_lastToolTipText; 375 String m_lastToolTipText;
375 376
376 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood); 377 FRIEND_TEST_ALL_PREFIXES(ChromeClientTest, SetToolTipFlood);
377 }; 378 };
378 379
379 } // namespace blink 380 } // namespace blink
380 381
381 #endif // ChromeClient_h 382 #endif // ChromeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698