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

Side by Side Diff: components/renderer_context_menu/render_view_context_menu_proxy.h

Issue 892953002: Show icons for custom menuitems in contextmenu. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698