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

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/aura.gyp » ('j') | ui/aura/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 8ff3036fdf34f65decc0884841fef8270d91ea1b..5ddda42cf16aa59da00e4a79bbe63747592ec4bc 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -10,6 +10,7 @@
#include "content/browser/renderer_host/render_widget_host.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
+#include "ui/aura/aura_constants.h"
#include "ui/aura/desktop.h"
#include "ui/aura/event.h"
#include "ui/aura/hit_test.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::kTooltipTextKey, tooltip);
}
BackingStore* RenderWidgetHostViewAura::AllocBackingStore(
« no previous file with comments | « no previous file | ui/aura/aura.gyp » ('j') | ui/aura/aura_constants.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698