| OLD | NEW |
| (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_extension_popup.h" |
| 6 |
| 7 MenuCategoryExtensionPopup::MenuCategoryExtensionPopup( |
| 8 content::RenderFrameHost* render_frame_host, |
| 9 const content::ContextMenuParams& params) |
| 10 : MenuCategoryBase(render_frame_host, params) { |
| 11 } |
| 12 |
| 13 MenuCategoryExtensionPopup::~MenuCategoryExtensionPopup() { |
| 14 } |
| 15 |
| 16 bool MenuCategoryExtensionPopup::IsCategoryEnabled(int category) { |
| 17 switch (category) { |
| 18 case ITEM_CATEGORY_EDITABLE: |
| 19 case ITEM_CATEGORY_COPY: |
| 20 case ITEM_CATEGORY_SEARCH_PROVIDER: |
| 21 case ITEM_CATEGORY_ALL_EXTENSION: |
| 22 case ITEM_CATEGORY_DEVELOPER: |
| 23 return MenuCategoryBase::IsCategoryEnabled(category); |
| 24 default: |
| 25 return false; |
| 26 } |
| 27 } |
| OLD | NEW |