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

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

Issue 326026: Add "Go to..." to the context menu when the selected text in a page is a url... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: UTF16ToWide Created 11 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 | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu.h
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu.h (revision 30667)
+++ chrome/browser/tab_contents/render_view_context_menu.h (working copy)
@@ -23,9 +23,8 @@
class RenderViewContextMenu {
public:
- RenderViewContextMenu(
- TabContents* tab_contents,
- const ContextMenuParams& params);
+ RenderViewContextMenu(TabContents* tab_contents,
+ const ContextMenuParams& params);
virtual ~RenderViewContextMenu();
@@ -109,6 +108,13 @@
bool IsDevCommandEnabled(int id) const;
+ // The destination URL to use if the user tries to search for or navigate to
+ // a text selection.
+ GURL selection_navigation_url_;
+
+ // The transition type of |selection_navigation_url_|.
+ PageTransition::Type transition_;
+
DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
};
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698