| Index: chrome/browser/tab_contents/menu_category_extension_popup.cc
|
| diff --git a/chrome/browser/tab_contents/menu_category_extension_popup.cc b/chrome/browser/tab_contents/menu_category_extension_popup.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9d5852fedd66f17a7a9c246982d2f238a86885bb
|
| --- /dev/null
|
| +++ b/chrome/browser/tab_contents/menu_category_extension_popup.cc
|
| @@ -0,0 +1,27 @@
|
| +// 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.
|
| +
|
| +#include "chrome/browser/tab_contents/menu_category_extension_popup.h"
|
| +
|
| +MenuCategoryExtensionPopup::MenuCategoryExtensionPopup(
|
| + content::RenderFrameHost* render_frame_host,
|
| + const content::ContextMenuParams& params)
|
| + : MenuCategoryBase(render_frame_host, params) {
|
| +}
|
| +
|
| +MenuCategoryExtensionPopup::~MenuCategoryExtensionPopup() {
|
| +}
|
| +
|
| +bool MenuCategoryExtensionPopup::IsCategoryEnabled(int category) {
|
| + switch (category) {
|
| + case ITEM_CATEGORY_EDITABLE:
|
| + case ITEM_CATEGORY_COPY:
|
| + case ITEM_CATEGORY_SEARCH_PROVIDER:
|
| + case ITEM_CATEGORY_ALL_EXTENSION:
|
| + case ITEM_CATEGORY_DEVELOPER:
|
| + return MenuCategoryBase::IsCategoryEnabled(category);
|
| + default:
|
| + return false;
|
| + }
|
| +}
|
|
|