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

Unified Diff: chrome/browser/tab_menu_model.h

Issue 500030: Factor tab context menu into a shared model and fix mac and win to use it. Im... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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_menu_model.h
===================================================================
--- chrome/browser/tab_menu_model.h (revision 0)
+++ chrome/browser/tab_menu_model.h (revision 0)
@@ -0,0 +1,25 @@
+// Copyright (c) 2009 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_MENU_MODEL_H_
+#define CHROME_BROWSER_TAB_MENU_MODEL_H_
+
+#include "app/menus/simple_menu_model.h"
+
+class Browser;
+
+// A menu model that builds the contents of the tab context menu. This menu has
+// only one level (no submenus).
+class TabMenuModel : public menus::SimpleMenuModel {
+ public:
+ explicit TabMenuModel(menus::SimpleMenuModel::Delegate* delegate);
+ virtual ~TabMenuModel() { }
+
+ private:
+ void Build();
+
+ DISALLOW_COPY_AND_ASSIGN(TabMenuModel);
+};
+
+#endif // CHROME_BROWSER_TAB_MENU_MODEL_H_
Property changes on: chrome/browser/tab_menu_model.h
___________________________________________________________________
Name: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698