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

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

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.h
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.h b/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.h
index 52cb9049a634f35d06d14599e0b0cd41bbf5dc43..c0fc272c908b11e855450d3bed0fe46e06bc288a 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.h
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu_test_util.h
@@ -41,11 +41,16 @@ class TestRenderViewContextMenu : public RenderViewContextMenu {
bool GetAcceleratorForCommandId(int command_id,
ui::Accelerator* accelerator) override;
- // Returns true if command specified by |command_id| is present
+ // Returns true if the command specified by |command_id| is present
// in the menu.
- // List of command ids can be found in chrome/app/chrome_command_ids.h.
+ // A list of command ids can be found in chrome/app/chrome_command_ids.h.
bool IsItemPresent(int command_id);
+ // Returns true if a command specified by any command id between
+ // |command_id_first| and |command_id_last| (inclusive) is present in the
+ // menu.
+ bool IsItemInRangePresent(int command_id_first, int command_id_last);
+
// Searches for an menu item with |command_id|. If it's found, the return
// value is true and the model and index where it appears in that model are
// returned in |found_model| and |found_index|. Otherwise returns false.

Powered by Google App Engine
This is Rietveld 408576698