| Index: chrome/browser/tab_contents/menu_category_guest.h
|
| diff --git a/chrome/browser/tab_contents/menu_category_guest.h b/chrome/browser/tab_contents/menu_category_guest.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fd0538ad56df889707017490aee45bbf979d2665
|
| --- /dev/null
|
| +++ b/chrome/browser/tab_contents/menu_category_guest.h
|
| @@ -0,0 +1,31 @@
|
| +// 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.
|
| +
|
| +#ifndef CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_GUEST_H_
|
| +#define CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_GUEST_H_
|
| +
|
| +#include "chrome/browser/tab_contents/menu_category_base.h"
|
| +
|
| +// A MenuCategory for <webview> guest.
|
| +// Guests are rendered inside chrome apps, but have most of the actions
|
| +// that a regular web page has. Currently actions/items that are suppressed from
|
| +// guests are: searching, printing, speech and instant.
|
| +class MenuCategoryGuest : public MenuCategoryBase {
|
| + public:
|
| + virtual ~MenuCategoryGuest();
|
| +
|
| + protected:
|
| + MenuCategoryGuest(content::RenderFrameHost* render_frame_host,
|
| + const content::ContextMenuParams& params);
|
| +
|
| + // MenuCategoryBase overrides.
|
| + virtual bool IsCategoryEnabled(int category) OVERRIDE;
|
| +
|
| + private:
|
| + friend class MenuCategoryFactory;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MenuCategoryGuest);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_GUEST_H_
|
|
|