Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_MENU_MODEL_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_MENU_MODEL_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "ui/base/models/menu_model_delegate.h" | |
| 11 | |
| 12 namespace ui { | |
| 13 class MenuModel; | |
| 14 } | |
| 15 | |
| 16 namespace views { | |
| 17 class MenuItemView; | |
| 18 } | |
| 19 | |
| 20 // Provides the ui::MenuModelDelegate implementation for RecentTabsSubMenuModel | |
| 21 // items. | |
| 22 class RecentTabsMenuModelDelegate : public ui::MenuModelDelegate { | |
| 23 public: | |
| 24 RecentTabsMenuModelDelegate(ui::MenuModel* model, | |
| 25 views::MenuItemView* menu_item); | |
| 26 virtual ~RecentTabsMenuModelDelegate(); | |
| 27 | |
| 28 // ui::MenuModelDelegate implementation: | |
| 29 virtual void OnIconChanged(int index) OVERRIDE; | |
| 30 | |
| 31 private: | |
| 32 ui::MenuModel* model_; | |
| 33 views::MenuItemView* menu_item_; | |
|
sky
2012/11/07 00:10:47
You shouldn't have views specific code in this dir
kuan
2012/11/07 02:29:46
Done. i initially had this as a private class of
| |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(RecentTabsMenuModelDelegate); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_MENU_MODEL_DELEGATE_H_ | |
| OLD | NEW |