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

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

Issue 8371024: Enable tooltips for aura. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: added file missing in previous patch Created 9 years, 2 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 | ui/aura_shell/aura_constants.h » ('j') | ui/aura_shell/aura_constants.h » ('J')
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 09255569f48621af295d661859f23b9ed795c6e1..05491728d722a5880476ea6dd773ce5f32ef4ea0 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -14,6 +14,7 @@
#include "ui/aura/event.h"
#include "ui/aura/hit_test.h"
#include "ui/aura/window.h"
+#include "ui/aura_shell/aura_constants.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/compositor/layer.h"
@@ -180,7 +181,8 @@ void RenderWidgetHostViewAura::Destroy() {
}
void RenderWidgetHostViewAura::SetTooltipText(const string16& tooltip_text) {
- //NOTIMPLEMENTED();
+ string16* tooltip = new string16(tooltip_text);
+ window_->SetProperty(aura_shell::kTooltipTextKey, tooltip);
}
BackingStore* RenderWidgetHostViewAura::AllocBackingStore(
« no previous file with comments | « no previous file | ui/aura_shell/aura_constants.h » ('j') | ui/aura_shell/aura_constants.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698