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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 15754003: Content tooltips should linger forever in aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 0da585350faa3e1e3fd09dbd9c5df1c4a8cde9d5..2060acde4d78e22dfee4bf3242bd5174ba317e1b 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1104,8 +1104,13 @@ void RenderWidgetHostViewAura::Destroy() {
void RenderWidgetHostViewAura::SetTooltipText(const string16& tooltip_text) {
tooltip_ = tooltip_text;
aura::RootWindow* root_window = window_->GetRootWindow();
- if (aura::client::GetTooltipClient(root_window))
- aura::client::GetTooltipClient(root_window)->UpdateTooltip(window_);
+ aura::client::TooltipClient* tooltip_client =
+ aura::client::GetTooltipClient(root_window);
+ if (tooltip_client) {
+ tooltip_client->UpdateTooltip(window_);
+ // Content tooltips should be visible indefinitely.
+ tooltip_client->SetTooltipShownTimeout(window_, 0);
+ }
}
void RenderWidgetHostViewAura::SelectionChanged(const string16& text,
« 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