| 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 #ifndef CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_GUEST_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_GUEST_H_ |
| 7 |
| 8 #include "chrome/browser/tab_contents/menu_category_base.h" |
| 9 |
| 10 // A MenuCategory for <webview> guest. |
| 11 // Guests are rendered inside chrome apps, but have most of the actions |
| 12 // that a regular web page has. Currently actions/items that are suppressed from |
| 13 // guests are: searching, printing, speech and instant. |
| 14 class MenuCategoryGuest : public MenuCategoryBase { |
| 15 public: |
| 16 virtual ~MenuCategoryGuest(); |
| 17 |
| 18 protected: |
| 19 MenuCategoryGuest(content::RenderFrameHost* render_frame_host, |
| 20 const content::ContextMenuParams& params); |
| 21 |
| 22 // MenuCategoryBase overrides. |
| 23 virtual bool IsCategoryEnabled(int category) OVERRIDE; |
| 24 |
| 25 private: |
| 26 friend class MenuCategoryFactory; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(MenuCategoryGuest); |
| 29 }; |
| 30 |
| 31 #endif // CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_GUEST_H_ |
| OLD | NEW |