Chromium Code Reviews| Index: chrome/browser/tab_contents/render_view_context_menu_test_util.cc |
| diff --git a/chrome/browser/tab_contents/render_view_context_menu_test_util.cc b/chrome/browser/tab_contents/render_view_context_menu_test_util.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2dc83c72e5396a0cd7487d145078d034c98d0a07 |
| --- /dev/null |
| +++ b/chrome/browser/tab_contents/render_view_context_menu_test_util.cc |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/tab_contents/render_view_context_menu_test_util.h" |
| + |
| +TestRenderViewContextMenu::TestRenderViewContextMenu( |
| + content::WebContents* web_contents, content::ContextMenuParams params) |
|
sky
2013/01/14 16:03:37
same comment agbout each param on its own line.
rustema
2013/01/15 07:37:40
Done.
|
| + : RenderViewContextMenu(web_contents, params) {} |
| + |
| +TestRenderViewContextMenu::~TestRenderViewContextMenu() {} |
| + |
| +void TestRenderViewContextMenu::PlatformInit() {} |
| + |
| +void TestRenderViewContextMenu::PlatformCancel() {} |
| + |
| +bool TestRenderViewContextMenu::GetAcceleratorForCommandId( |
| + int command_id, ui::Accelerator* accelerator) { |
|
sky
2013/01/14 16:03:37
each param on its own line here too.
rustema
2013/01/15 07:37:40
Done.
|
| + return false; |
| +} |
| + |
| +bool TestRenderViewContextMenu::IsItemPresent(int command_id) { |
| + return menu_model_.GetIndexOfCommandId(command_id) != -1; |
| +} |