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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu_test_util.h

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_ 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_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/tab_contents/render_view_context_menu.h" 9 #include "chrome/browser/tab_contents/render_view_context_menu.h"
10 10
11 class TestRenderViewContextMenu : public RenderViewContextMenu { 11 class TestRenderViewContextMenu : public RenderViewContextMenu {
12 public: 12 public:
13 TestRenderViewContextMenu(content::WebContents* web_contents, 13 TestRenderViewContextMenu(content::RenderFrameHost* render_frame_host,
14 content::ContextMenuParams params); 14 content::ContextMenuParams params);
15 virtual ~TestRenderViewContextMenu(); 15 virtual ~TestRenderViewContextMenu();
16 16
17 virtual void PlatformInit() OVERRIDE; 17 virtual void PlatformInit() OVERRIDE;
18 virtual void PlatformCancel() OVERRIDE; 18 virtual void PlatformCancel() OVERRIDE;
19 virtual bool GetAcceleratorForCommandId( 19 virtual bool GetAcceleratorForCommandId(
20 int command_id, 20 int command_id,
21 ui::Accelerator* accelerator) OVERRIDE; 21 ui::Accelerator* accelerator) OVERRIDE;
22 22
23 // Returns true if command specified by |command_id| is present 23 // Returns true if command specified by |command_id| is present
24 // in the menu. 24 // in the menu.
25 // List of command ids can be found in chrome/app/chrome_command_ids.h. 25 // List of command ids can be found in chrome/app/chrome_command_ids.h.
26 bool IsItemPresent(int command_id); 26 bool IsItemPresent(int command_id);
27 27
28 private: 28 private:
29 DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu); 29 DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu);
30 }; 30 };
31 31
32 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_ 32 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698