| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" | 9 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // value is true and the model and index where it appears in that model are | 50 // value is true and the model and index where it appears in that model are |
| 51 // returned in |found_model| and |found_index|. Otherwise returns false. | 51 // returned in |found_model| and |found_index|. Otherwise returns false. |
| 52 bool GetMenuModelAndItemIndex(int command_id, | 52 bool GetMenuModelAndItemIndex(int command_id, |
| 53 ui::MenuModel** found_model, | 53 ui::MenuModel** found_model, |
| 54 int* found_index); | 54 int* found_index); |
| 55 | 55 |
| 56 #if defined(ENABLE_EXTENSIONS) | 56 #if defined(ENABLE_EXTENSIONS) |
| 57 extensions::ContextMenuMatcher& extension_items() { return extension_items_; } | 57 extensions::ContextMenuMatcher& extension_items() { return extension_items_; } |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 void Show() override; |
| 61 |
| 60 private: | 62 private: |
| 61 DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu); | 63 DISALLOW_COPY_AND_ASSIGN(TestRenderViewContextMenu); |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UT
IL_H_ | 66 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_TEST_UT
IL_H_ |
| OLD | NEW |