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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
index 0ebe12dd5af8368bc8a53944367160e740731962..f6fa9d6fc798b9843af29893c69b7603e1a73620 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -1296,7 +1296,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
OpenURL(handlers[handlerIndex].TranslateUrl(params_.link_url),
GetDocumentURL(params_),
disposition,
- content::PAGE_TRANSITION_LINK);
+ ui::PAGE_TRANSITION_LINK);
return;
}
@@ -1308,19 +1308,19 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
GetDocumentURL(params_),
!browser || browser->is_app() ?
NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB,
- content::PAGE_TRANSITION_LINK);
+ ui::PAGE_TRANSITION_LINK);
break;
}
case IDC_CONTENT_CONTEXT_OPENLINKNEWWINDOW:
OpenURL(params_.link_url,
GetDocumentURL(params_),
NEW_WINDOW,
- content::PAGE_TRANSITION_LINK);
+ ui::PAGE_TRANSITION_LINK);
break;
case IDC_CONTENT_CONTEXT_OPENLINKOFFTHERECORD:
OpenURL(params_.link_url, GURL(), OFF_THE_RECORD,
- content::PAGE_TRANSITION_LINK);
+ ui::PAGE_TRANSITION_LINK);
break;
case IDC_CONTENT_CONTEXT_SAVELINKAS: {
@@ -1379,7 +1379,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
OpenURL(params_.src_url,
GetDocumentURL(params_),
NEW_BACKGROUND_TAB,
- content::PAGE_TRANSITION_LINK);
+ ui::PAGE_TRANSITION_LINK);
break;
case IDC_CONTENT_CONTEXT_PLAYPAUSE: {
@@ -1623,14 +1623,14 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
WindowOpenDisposition disposition =
ForceNewTabDispositionFromEventFlags(event_flags);
OpenURL(selection_navigation_url_, GURL(), disposition,
- content::PAGE_TRANSITION_LINK);
+ ui::PAGE_TRANSITION_LINK);
break;
}
case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS: {
WindowOpenDisposition disposition =
ForceNewTabDispositionFromEventFlags(event_flags);
GURL url = chrome::GetSettingsUrl(chrome::kLanguageOptionsSubPage);
- OpenURL(url, GURL(), disposition, content::PAGE_TRANSITION_LINK);
+ OpenURL(url, GURL(), disposition, ui::PAGE_TRANSITION_LINK);
break;
}
@@ -1640,7 +1640,7 @@ void RenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
WindowOpenDisposition disposition =
ForceNewTabDispositionFromEventFlags(event_flags);
GURL url = chrome::GetSettingsUrl(chrome::kHandlerSettingsSubPage);
- OpenURL(url, GURL(), disposition, content::PAGE_TRANSITION_LINK);
+ OpenURL(url, GURL(), disposition, ui::PAGE_TRANSITION_LINK);
break;
}

Powered by Google App Engine
This is Rietveld 408576698