summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/render_view_context_menu.h
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-01 21:07:13 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-01 21:07:13 +0000
commit79efa5752ce12d22383a435625883b638e7909af (patch)
treeaa78909e71b4b6ba7b48176d243817d042ea6030 /chrome/browser/tab_contents/render_view_context_menu.h
parentf53c9ca8a871c90534bc890ed5798f219ed15b76 (diff)
downloadchromium_src-79efa5752ce12d22383a435625883b638e7909af.zip
chromium_src-79efa5752ce12d22383a435625883b638e7909af.tar.gz
chromium_src-79efa5752ce12d22383a435625883b638e7909af.tar.bz2
Add "Go to..." to the context menu when the selected text in a page is a url.
So when you select: "http://www.google.com" The context menu that will appear will be: "Go to http://www.google.com" Instead of: "Search Google for http://www.google.com" BUG=1978 TEST=open chromium, select a text that is a url, see if appears the menu "Go to..."; click on it, see if it goes to the desired page. Review URL: http://codereview.chromium.org/326026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/render_view_context_menu.h')
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.h b/chrome/browser/tab_contents/render_view_context_menu.h
index 7a4bbc8..599051f 100644
--- a/chrome/browser/tab_contents/render_view_context_menu.h
+++ b/chrome/browser/tab_contents/render_view_context_menu.h
@@ -23,9 +23,8 @@ struct WebMediaPlayerAction;
class RenderViewContextMenu {
public:
- RenderViewContextMenu(
- TabContents* tab_contents,
- const ContextMenuParams& params);
+ RenderViewContextMenu(TabContents* tab_contents,
+ const ContextMenuParams& params);
virtual ~RenderViewContextMenu();
@@ -109,6 +108,13 @@ class RenderViewContextMenu {
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);
};