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

Side by Side Diff: chrome/browser/tab_contents/menu_category_app_mode.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: fix incorrect dcheck + platform app logic 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/tab_contents/menu_category_app_mode.h"
6
7 MenuCategoryAppMode::MenuCategoryAppMode(
8 content::RenderFrameHost* render_frame_host,
9 const content::ContextMenuParams& params)
10 : MenuCategoryBase(render_frame_host, params) {
11 }
12
13 MenuCategoryAppMode::~MenuCategoryAppMode() {
14 }
15
16 bool MenuCategoryAppMode::IsCategoryEnabled(int category) {
17 switch (category) {
18 case ITEM_CATEGORY_EDITABLE:
19 case ITEM_CATEGORY_COPY:
20 return MenuCategoryBase::IsCategoryEnabled(category);
21 default:
22 return false;
23 }
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698