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

Unified Diff: components/renderer_context_menu/context_menu_content_type.h

Issue 1024153002: Hide "Inspect Element" context menu item from <webview> when <webview> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-cmenu-disable-inspect
Patch Set: fix win8 unrechable code Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/renderer_context_menu/context_menu_content_type.h
diff --git a/components/renderer_context_menu/context_menu_content_type.h b/components/renderer_context_menu/context_menu_content_type.h
index 81003dd5b17a0c8f0a213271e980388cafe279e9..c1e6a74f375c9ccdd7a5a7c914c29607a0e905b9 100644
--- a/components/renderer_context_menu/context_menu_content_type.h
+++ b/components/renderer_context_menu/context_menu_content_type.h
@@ -70,6 +70,10 @@ class ContextMenuContentType {
const extensions::Extension* GetExtension() const;
+ const content::WebContents* source_web_contents() const {
+ return source_web_contents_;
+ }
+
private:
bool SupportsGroupInternal(int group);
« no previous file with comments | « chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698