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

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

Issue 1191453002: Implement "open link as user" context menu entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 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
Index: chrome/browser/renderer_context_menu/render_view_context_menu_test_util.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.cc b/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.cc
index 0465a7144f8816943a7bde6ada1c5231257968ad..e197c23f6b8019d205d6b734003f27962739b4fc 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.cc
@@ -42,6 +42,17 @@ bool TestRenderViewContextMenu::IsItemPresent(int command_id) {
return menu_model_.GetIndexOfCommandId(command_id) != -1;
}
+bool TestRenderViewContextMenu::IsItemInRangePresent(int command_id_first,
+ int command_id_last) {
+ DCHECK_LE(command_id_first, command_id_last);
+ for (int command_id = command_id_first; command_id <= command_id_last;
+ ++command_id) {
+ if (IsItemPresent(command_id))
+ return true;
+ }
+ return false;
+}
+
bool TestRenderViewContextMenu::GetMenuModelAndItemIndex(
int command_id,
MenuModel** found_model,
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu_test_util.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698