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

Unified Diff: chrome/browser/guestview/webview/context_menu_content_type_webview.h

Issue 169093009: Separate out logic to handle different category/group of context menu items from RVContextMenu class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-mmm-refactor1
Patch Set: fix semicolon Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/guestview/webview/context_menu_content_type_webview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/guestview/webview/context_menu_content_type_webview.h
diff --git a/chrome/browser/guestview/webview/context_menu_content_type_webview.h b/chrome/browser/guestview/webview/context_menu_content_type_webview.h
new file mode 100644
index 0000000000000000000000000000000000000000..c4ce7a1a6b52e93b389c4319464b65ca8e28e4f0
--- /dev/null
+++ b/chrome/browser/guestview/webview/context_menu_content_type_webview.h
@@ -0,0 +1,31 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_GUESTVIEW_WEBVIEW_CONTEXT_MENU_CONTENT_TYPE_WEBVIEW_H_
+#define CHROME_BROWSER_GUESTVIEW_WEBVIEW_CONTEXT_MENU_CONTENT_TYPE_WEBVIEW_H_
+
+#include "chrome/browser/renderer_context_menu/context_menu_content_type.h"
+
+// A ContextMenuContentType for <webview> guest.
+// Guests are rendered inside chrome apps, but have most of the actions
+// that a regular web page has. Currently actions/items that are suppressed from
+// guests are: searching, printing, speech and instant.
+class ContextMenuContentTypeWebView : public ContextMenuContentType {
+ public:
+ virtual ~ContextMenuContentTypeWebView();
+
+ // ContextMenuContentType overrides.
+ virtual bool SupportsGroup(int group) OVERRIDE;
+
+ protected:
+ ContextMenuContentTypeWebView(content::RenderFrameHost* render_frame_host,
+ const content::ContextMenuParams& params);
+
+ private:
+ friend class ContextMenuContentTypeFactory;
+
+ DISALLOW_COPY_AND_ASSIGN(ContextMenuContentTypeWebView);
+};
+
+#endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_CONTEXT_MENU_CONTENT_TYPE_WEBVIEW_H_
« no previous file with comments | « no previous file | chrome/browser/guestview/webview/context_menu_content_type_webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698