BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / tabs / tab_menu_model.h
blob1853572d0f6f1e4415935e50617826cb63a1dc88
1 // Copyright (c) 2011 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.
5 #ifndef CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_
8 #include "ui/base/models/simple_menu_model.h"
10 class TabStripModel;
12 // A menu model that builds the contents of the tab context menu. To make sure
13 // the menu reflects the real state of the tab a new TabMenuModel should be
14 // created each time the menu is shown.
15 class TabMenuModel : public ui::SimpleMenuModel {
16 public:
17 TabMenuModel(ui::SimpleMenuModel::Delegate* delegate,
18 TabStripModel* tab_strip,
19 int index);
20 ~TabMenuModel() override {}
22 private:
23 void Build(TabStripModel* tab_strip, int index);
25 DISALLOW_COPY_AND_ASSIGN(TabMenuModel);
28 #endif // CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_