cros: Remove default pinned apps trial.
[chromium-blink-merge.git] / chrome / browser / tab_contents / render_view_context_menu_test_util.h
blobffe36ff30efc7b9dd3d9adb6157ee44b7047a6df
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 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_
8 #include "base/basictypes.h"
9 #include "chrome/browser/tab_contents/render_view_context_menu.h"
11 class TestRenderViewContextMenu : public RenderViewContextMenu {
12 public:
13 TestRenderViewContextMenu(content::WebContents* web_contents,
14 content::ContextMenuParams params);
15 virtual ~TestRenderViewContextMenu();
17 virtual void PlatformInit() OVERRIDE;
18 virtual void PlatformCancel() OVERRIDE;
19 virtual bool GetAcceleratorForCommandId(
20 int command_id,
21 ui::Accelerator* accelerator) OVERRIDE;
23 // Returns true if command specified by |command_id| is present
24 // in the menu.
25 // List of command ids can be found in chrome/app/chrome_command_ids.h.
26 bool IsItemPresent(int command_id);
28 private:
29 DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu);
32 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_