NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / tab_contents / render_view_context_menu_test_util.cc
blobef30316b3dedcc654491b30f594d734055fba5b8
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/tab_contents/render_view_context_menu_test_util.h"
7 TestRenderViewContextMenu::TestRenderViewContextMenu(
8 content::RenderFrameHost* render_frame_host,
9 content::ContextMenuParams params)
10 : RenderViewContextMenu(render_frame_host, params) {}
12 TestRenderViewContextMenu::~TestRenderViewContextMenu() {}
14 void TestRenderViewContextMenu::PlatformInit() {}
16 void TestRenderViewContextMenu::PlatformCancel() {}
18 bool TestRenderViewContextMenu::GetAcceleratorForCommandId(
19 int command_id,
20 ui::Accelerator* accelerator) {
21 return false;
24 bool TestRenderViewContextMenu::IsItemPresent(int command_id) {
25 return menu_model_.GetIndexOfCommandId(command_id) != -1;