Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
Fady Samuel
2014/02/24 19:07:29
Can we somehow move this file to the webview direc
lazyboy
2014/02/24 23:45:00
Done.
| |
| 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_guest.h" | |
| 6 | |
| 7 MenuCategoryGuest::MenuCategoryGuest( | |
| 8 content::RenderFrameHost* render_frame_host, | |
| 9 const content::ContextMenuParams& params) | |
| 10 : MenuCategoryBase(render_frame_host, params) { | |
| 11 } | |
| 12 | |
| 13 MenuCategoryGuest::~MenuCategoryGuest() { | |
| 14 } | |
| 15 | |
| 16 bool MenuCategoryGuest::IsCategoryEnabled(int category) { | |
| 17 switch (category) { | |
| 18 case ITEM_CATEGORY_PAGE: | |
| 19 case ITEM_CATEGORY_FRAME: | |
| 20 case ITEM_CATEGORY_LINK: | |
| 21 case ITEM_CATEGORY_SEARCH_PROVIDER: | |
| 22 case ITEM_CATEGORY_PRINT: | |
| 23 case ITEM_CATEGORY_ALL_EXTENSION: | |
| 24 case ITEM_CATEGORY_CURRENT_EXTENSION: | |
| 25 case ITEM_CATEGORY_PRINT_PREVIEW: | |
| 26 return false; | |
| 27 default: | |
| 28 return MenuCategoryBase::IsCategoryEnabled(category); | |
| 29 } | |
| 30 } | |
| OLD | NEW |