| Index: chrome/browser/renderer_context_menu/context_menu_content_type_app_mode.cc
|
| diff --git a/chrome/browser/renderer_context_menu/context_menu_content_type_app_mode.cc b/chrome/browser/renderer_context_menu/context_menu_content_type_app_mode.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..72574f5a20a819874db91259170f2408d8f18ec3
|
| --- /dev/null
|
| +++ b/chrome/browser/renderer_context_menu/context_menu_content_type_app_mode.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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/renderer_context_menu/context_menu_content_type_app_mode.h"
|
| +
|
| +ContextMenuContentTypeAppMode::ContextMenuContentTypeAppMode(
|
| + content::RenderFrameHost* render_frame_host,
|
| + const content::ContextMenuParams& params)
|
| + : ContextMenuContentType(render_frame_host, params, false) {
|
| +}
|
| +
|
| +ContextMenuContentTypeAppMode::~ContextMenuContentTypeAppMode() {
|
| +}
|
| +
|
| +bool ContextMenuContentTypeAppMode::SupportsGroup(int group) {
|
| + switch (group) {
|
| + case ITEM_GROUP_EDITABLE:
|
| + case ITEM_GROUP_COPY:
|
| + return ContextMenuContentType::SupportsGroup(group);
|
| + default:
|
| + return false;
|
| + }
|
| +}
|
|
|