Chromium Code Reviews| Index: chrome/browser/tab_contents/render_view_context_menu_test_util.h |
| diff --git a/chrome/browser/tab_contents/render_view_context_menu_test_util.h b/chrome/browser/tab_contents/render_view_context_menu_test_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aac09a9f931d06ef5b4fdd82505c48e60c97d1a6 |
| --- /dev/null |
| +++ b/chrome/browser/tab_contents/render_view_context_menu_test_util.h |
| @@ -0,0 +1,28 @@ |
| +// 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. |
| + |
| +#ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_ |
| +#define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "chrome/browser/tab_contents/render_view_context_menu.h" |
| + |
| +class TestRenderViewContextMenu : public RenderViewContextMenu { |
| + public: |
| + TestRenderViewContextMenu(content::WebContents* web_contents, |
| + content::ContextMenuParams params); |
| + virtual ~TestRenderViewContextMenu(); |
| + |
| + virtual void PlatformInit() OVERRIDE; |
| + virtual void PlatformCancel() OVERRIDE; |
| + virtual bool GetAcceleratorForCommandId( |
| + int command_id, ui::Accelerator* accelerator) OVERRIDE; |
|
sky
2013/01/14 16:03:37
when you wrap, each param on its own line.
rustema
2013/01/15 07:37:40
Done.
|
| + |
| + bool IsItemPresent(int command_id); |
|
sky
2013/01/14 16:03:37
add description.
rustema
2013/01/15 07:37:40
Done.
|
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_ |