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

Unified Diff: webkit/glue/webmenurunner_mac.mm

Issue 6974007: Move setToolTipText related functions from RenderView to RenderWidget. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Check tool tip is empty in Mac code. Created 9 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 | « webkit/glue/webmenuitem.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webmenurunner_mac.mm
diff --git a/webkit/glue/webmenurunner_mac.mm b/webkit/glue/webmenurunner_mac.mm
index 7dce0a6bbc89ad605c8338da753f1b03c9cca43f..65fcb7f7d72116e75ad4e73372c61474d3da0524 100644
--- a/webkit/glue/webmenurunner_mac.mm
+++ b/webkit/glue/webmenurunner_mac.mm
@@ -66,6 +66,10 @@ static NSString* NSWritingDirectionAttributeName = @"NSWritingDirection";
NSMenuItem* menuItem = [menu_ addItemWithTitle:title
action:@selector(menuItemSelected:)
keyEquivalent:@""];
+ if (!item.toolTip.empty()) {
+ NSString* toolTip = base::SysUTF16ToNSString(item.toolTip);
+ [menuItem setToolTip:toolTip];
+ }
[menuItem setEnabled:(item.enabled && item.type != WebMenuItem::GROUP)];
[menuItem setTarget:self];
« no previous file with comments | « webkit/glue/webmenuitem.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698