summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_menu_model.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 15:39:20 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 15:39:20 +0000
commit239619390b6f88dbf22733966446ea7185679e44 (patch)
treed0e20227095cc90bbec31031c3e0dd7c99c6d308 /chrome/browser/tab_menu_model.h
parentf2a14229a7a87c5fd694610ce52c1bf0b2b0f97f (diff)
downloadchromium_src-239619390b6f88dbf22733966446ea7185679e44.zip
chromium_src-239619390b6f88dbf22733966446ea7185679e44.tar.gz
chromium_src-239619390b6f88dbf22733966446ea7185679e44.tar.bz2
Changes the tab menu to use pin and unpin instead of a check. The mac
changes to use the right thing (pinned vs mini) will be done separately. BUG=none TEST=none Review URL: http://codereview.chromium.org/1725006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_menu_model.h')
-rw-r--r--chrome/browser/tab_menu_model.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/tab_menu_model.h b/chrome/browser/tab_menu_model.h
index c98731d..dca49af 100644
--- a/chrome/browser/tab_menu_model.h
+++ b/chrome/browser/tab_menu_model.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// Copyright (c) 2010 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.
@@ -10,14 +10,16 @@
class Browser;
// A menu model that builds the contents of the tab context menu. This menu has
-// only one level (no submenus).
+// only one level (no submenus). TabMenuModel caches local state from the
+// tab (such as the pinned state). To make sure the menu reflects the real state
+// of the tab a new TabMenuModel should be created each time the menu is shown.
class TabMenuModel : public menus::SimpleMenuModel {
public:
- explicit TabMenuModel(menus::SimpleMenuModel::Delegate* delegate);
+ TabMenuModel(menus::SimpleMenuModel::Delegate* delegate, bool is_pinned);
virtual ~TabMenuModel() {}
private:
- void Build();
+ void Build(bool is_pinned);
DISALLOW_COPY_AND_ASSIGN(TabMenuModel);
};