| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_
H_ | 5 #ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_
H_ |
| 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_
H_ | 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UTIL_
H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" | 12 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
| 13 #include "extensions/features/features.h" | 13 #include "extensions/features/features.h" |
| 14 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 15 | 15 |
| 16 #if BUILDFLAG(ENABLE_EXTENSIONS) | 16 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 17 #include "chrome/browser/extensions/context_menu_matcher.h" | 17 #include "chrome/browser/extensions/context_menu_matcher.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 class Browser; | |
| 21 | |
| 22 namespace content { | 20 namespace content { |
| 23 class WebContents; | 21 class WebContents; |
| 24 } | 22 } |
| 25 namespace ui { | 23 namespace ui { |
| 26 class MenuModel; | 24 class MenuModel; |
| 27 } | 25 } |
| 28 | 26 |
| 29 class TestRenderViewContextMenu : public RenderViewContextMenu { | 27 class TestRenderViewContextMenu : public RenderViewContextMenu { |
| 30 public: | 28 public: |
| 31 TestRenderViewContextMenu(content::RenderFrameHost* render_frame_host, | 29 TestRenderViewContextMenu(content::RenderFrameHost* render_frame_host, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 69 |
| 72 using RenderViewContextMenu::AppendImageItems; | 70 using RenderViewContextMenu::AppendImageItems; |
| 73 | 71 |
| 74 void Show() override; | 72 void Show() override; |
| 75 | 73 |
| 76 private: | 74 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu); | 75 DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu); |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UT
IL_H_ | 78 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UT
IL_H_ |
| OLD | NEW |