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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW_H_
8 #include "components/renderer_context_menu/context_menu_content_type.h"
10 // A ContextMenuContentType for <webview> guest.
11 // Guests are rendered inside chrome apps, but have most of the actions
12 // that a regular web page has. Currently actions/items that are suppressed from
13 // guests are: searching, printing, speech and instant.
14 class ContextMenuContentTypeWebView : public ContextMenuContentType {
16 ~ContextMenuContentTypeWebView() override;
18 // ContextMenuContentType overrides.
19 bool SupportsGroup(int group) override;
22 ContextMenuContentTypeWebView(content::WebContents* web_contents,
23 const content::ContextMenuParams& params);
26 friend class ContextMenuContentTypeFactory;
28 DISALLOW_COPY_AND_ASSIGN(ContextMenuContentTypeWebView);
31 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CONTEXT_MENU_CONTENT_TYPE_WEB_VIEW_H_