| 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 COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ | 5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ |
| 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ | 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 | 10 |
| 10 class RenderViewContextMenuBase; | 11 class RenderViewContextMenuBase; |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 class WebContents; | 14 class WebContents; |
| 14 struct ContextMenuParams; | 15 struct ContextMenuParams; |
| 15 } | 16 } |
| 16 | 17 |
| 17 // A ContextMenuDelegate can build and show renderer context menu. | 18 // A ContextMenuDelegate can build and show renderer context menu. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 const content::ContextMenuParams& params) = 0; | 31 const content::ContextMenuParams& params) = 0; |
| 31 | 32 |
| 32 // Displays the context menu. | 33 // Displays the context menu. |
| 33 virtual void ShowMenu(scoped_ptr<RenderViewContextMenuBase> menu) = 0; | 34 virtual void ShowMenu(scoped_ptr<RenderViewContextMenuBase> menu) = 0; |
| 34 | 35 |
| 35 private: | 36 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(ContextMenuDelegate); | 37 DISALLOW_COPY_AND_ASSIGN(ContextMenuDelegate); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ | 40 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_CONTEXT_MENU_DELEGATE_H_ |
| OLD | NEW |