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

Side by Side Diff: chrome/browser/guestview/webview/menu_context_guest.cc

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: Move webview specific file under c/b/guestview/webview/* 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "chrome/browser/guestview/webview/menu_context_guest.h"
6
7 MenuContextGuest::MenuContextGuest(content::RenderFrameHost* render_frame_host,
Fady Samuel 2014/02/25 00:33:53 Can we call this a WebViewMenuContext?
lazyboy 2014/02/25 01:29:08 Done.
8 const content::ContextMenuParams& params)
9 : MenuContext(render_frame_host, params) {
10 }
11
12 MenuContextGuest::~MenuContextGuest() {
13 }
14
15 bool MenuContextGuest::SupportsGroup(int group) {
16 switch (group) {
17 case ITEM_GROUP_PAGE:
18 case ITEM_GROUP_FRAME:
19 case ITEM_GROUP_LINK:
20 case ITEM_GROUP_SEARCH_PROVIDER:
21 case ITEM_GROUP_PRINT:
22 case ITEM_GROUP_ALL_EXTENSION:
23 case ITEM_GROUP_CURRENT_EXTENSION:
24 case ITEM_GROUP_PRINT_PREVIEW:
25 return false;
26 default:
27 return MenuContext::SupportsGroup(group);
28 }
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698