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

Side by Side Diff: chrome/browser/ui/tabs/tab_menu_model.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_ 6 #define CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_
7 7
8 #include "ui/base/models/simple_menu_model.h" 8 #include "ui/base/models/simple_menu_model.h"
9 9
10 class TabStripModel; 10 class TabStripModel;
11 11
12 // A menu model that builds the contents of the tab context menu. To make sure 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 13 // the menu reflects the real state of the tab a new TabMenuModel should be
14 // created each time the menu is shown. 14 // created each time the menu is shown.
15 class TabMenuModel : public ui::SimpleMenuModel { 15 class TabMenuModel : public ui::SimpleMenuModel {
16 public: 16 public:
17 TabMenuModel(ui::SimpleMenuModel::Delegate* delegate, 17 TabMenuModel(ui::SimpleMenuModel::Delegate* delegate,
18 TabStripModel* tab_strip, 18 TabStripModel* tab_strip,
19 int index); 19 int index);
20 virtual ~TabMenuModel() {} 20 ~TabMenuModel() override {}
21 21
22 private: 22 private:
23 void Build(TabStripModel* tab_strip, int index); 23 void Build(TabStripModel* tab_strip, int index);
24 24
25 DISALLOW_COPY_AND_ASSIGN(TabMenuModel); 25 DISALLOW_COPY_AND_ASSIGN(TabMenuModel);
26 }; 26 };
27 27
28 #endif // CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_ 28 #endif // CHROME_BROWSER_UI_TABS_TAB_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698