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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu.h

Issue 1244723003: [Mac] Update context menu dictionary lookup wording and placement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 5 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
Index: chrome/browser/renderer_context_menu/render_view_context_menu.h
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.h b/chrome/browser/renderer_context_menu/render_view_context_menu.h
index 549d9d4e9734b04ed3a49adade2fe26db83a9f71..bdf1592dc6733e8cc87f382c701ed93a128aff91 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.h
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.h
@@ -64,6 +64,13 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
protected:
Profile* GetProfile();
+ // Returns a (possibly truncated) version of the current selection text
+ // suitable for putting in the title of a menu item.
+ base::string16 PrintableSelectionText();
+
+ // Helper function to escape "&" as "&&".
+ void EscapeAmpersands(base::string16* text);
+
#if defined(ENABLE_EXTENSIONS)
extensions::ContextMenuMatcher extension_items_;
#endif
@@ -146,10 +153,6 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
// on URL.
ProtocolHandlerRegistry::ProtocolHandlerList GetHandlersForLinkUrl();
- // Returns a (possibly truncated) version of the current selection text
- // suitable or putting in the title of a menu item.
- base::string16 PrintableSelectionText();
-
// The destination URL to use if the user tries to search for or navigate to
// a text selection.
GURL selection_navigation_url_;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698