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_RENDER_VIEW_CONTEXT_MENU_PROXY_H_ | 5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_PROXY_H_ |
6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_PROXY_H_ | 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_PROXY_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Add a submenu item to a context menu. | 78 // Add a submenu item to a context menu. |
79 virtual void AddSubMenu(int command_id, | 79 virtual void AddSubMenu(int command_id, |
80 const base::string16& label, | 80 const base::string16& label, |
81 ui::MenuModel* model) = 0; | 81 ui::MenuModel* model) = 0; |
82 | 82 |
83 // Update the status and text of the specified context-menu item. | 83 // Update the status and text of the specified context-menu item. |
84 virtual void UpdateMenuItem(int command_id, | 84 virtual void UpdateMenuItem(int command_id, |
85 bool enabled, | 85 bool enabled, |
86 bool hidden, | 86 bool hidden, |
87 const base::string16& title) = 0; | 87 const base::string16& title) = 0; |
| 88 virtual void SetIcon(int command_id, const gfx::ImageSkia& icon) = 0; |
88 | 89 |
89 // Retrieve the given associated objects with a context menu. | 90 // Retrieve the given associated objects with a context menu. |
90 virtual content::RenderViewHost* GetRenderViewHost() const = 0; | 91 virtual content::RenderViewHost* GetRenderViewHost() const = 0; |
91 virtual content::WebContents* GetWebContents() const = 0; | 92 virtual content::WebContents* GetWebContents() const = 0; |
92 virtual content::BrowserContext* GetBrowserContext() const = 0; | 93 virtual content::BrowserContext* GetBrowserContext() const = 0; |
93 }; | 94 }; |
94 | 95 |
95 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_PROXY_H_ | 96 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_PROXY_H_ |
OLD | NEW |