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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 140067: Only show tooltip when window is key.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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_mac.mm
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_mac.mm (revision 18902)
+++ chrome/browser/renderer_host/render_widget_host_view_mac.mm (working copy)
@@ -267,7 +267,7 @@
// right now it allows multiple views in multiple tabs to each be displaying
// a tooltip simultaneously (http://crbug.com/14178).
void RenderWidgetHostViewMac::SetTooltipText(const std::wstring& tooltip_text) {
- if (tooltip_text != tooltip_text_ && [[cocoa_view_ window] isMainWindow]) {
+ if (tooltip_text != tooltip_text_ && [[cocoa_view_ window] isKeyWindow]) {
tooltip_text_ = tooltip_text;
// Clamp the tooltip length to kMaxTooltipLength. It's a DOS issue on
« 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