Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4185)

Unified Diff: chrome/browser/tab_contents/menu_category_app_mode.h

Issue 169093009: Separate out logic to handle different category/group of context menu items from RVContextMenu class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-mmm-refactor1
Patch Set: fix incorrect dcheck + platform app logic Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/menu_category_app_mode.h
diff --git a/chrome/browser/tab_contents/menu_category_app_mode.h b/chrome/browser/tab_contents/menu_category_app_mode.h
new file mode 100644
index 0000000000000000000000000000000000000000..f9b2bfa35fcb0853b64c87dbaa3582cc4be888af
--- /dev/null
+++ b/chrome/browser/tab_contents/menu_category_app_mode.h
@@ -0,0 +1,28 @@
+// 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_APP_MODE_H_
+#define CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_APP_MODE_H_
+
+#include "chrome/browser/tab_contents/menu_category_base.h"
+
+class MenuCategoryAppMode : public MenuCategoryBase {
+ public:
+ virtual ~MenuCategoryAppMode();
+
+ protected:
+ MenuCategoryAppMode(
+ 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(MenuCategoryAppMode);
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_MENU_CATEGORY_APP_MODE_H_
« no previous file with comments | « no previous file | chrome/browser/tab_contents/menu_category_app_mode.cc » ('j') | chrome/browser/tab_contents/menu_category_base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698