From f8a0cb584078998db374e3df2e0f4290377b0be6 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Wed, 16 Dec 2009 16:21:36 +0000 Subject: Factor tab context menu into a shared model and fix mac and win to use it. Improve a couple of model unit tests. Remove unused members in the models. BUG=28977 TEST=context menus on tabs should work and enable/disable properly Review URL: http://codereview.chromium.org/500030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34718 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_menu_model.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 chrome/browser/tab_menu_model.h (limited to 'chrome/browser/tab_menu_model.h') diff --git a/chrome/browser/tab_menu_model.h b/chrome/browser/tab_menu_model.h new file mode 100644 index 0000000..d176fc9 --- /dev/null +++ b/chrome/browser/tab_menu_model.h @@ -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_ -- cgit v1.1