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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_win.cc

Issue 7474021: Set a minimum tooltip auto-pop timeout of 10 seconds on web content tooltips (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.cc (revision 94724)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -1743,6 +1743,16 @@
}
ti.uFlags = TTF_TRANSPARENT;
ti.lpszText = LPSTR_TEXTCALLBACK;
+
+ // Ensure web content tooltips are displayed for at least this amount of
+ // time, to give users a chance to read longer messages.
+ const int kMinimumAutopopDurationMs = 10 * 1000;
+ int autopop_duration_ms =
+ SendMessage(tooltip_hwnd_, TTM_GETDELAYTIME, TTDT_AUTOPOP, NULL);
+ if (autopop_duration_ms < kMinimumAutopopDurationMs) {
+ SendMessage(tooltip_hwnd_, TTM_SETDELAYTIME, TTDT_AUTOPOP,
+ kMinimumAutopopDurationMs);
+ }
}
CRect cr;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698