Chromium Code Reviews| Index: chrome/browser/ui/toolbar/recent_tabs_menu_model_delegate.h |
| diff --git a/chrome/browser/ui/toolbar/recent_tabs_menu_model_delegate.h b/chrome/browser/ui/toolbar/recent_tabs_menu_model_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aa8bc179896909f87381865f67c625722b36dff1 |
| --- /dev/null |
| +++ b/chrome/browser/ui/toolbar/recent_tabs_menu_model_delegate.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2012 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_UI_TOOLBAR_RECENT_TABS_MENU_MODEL_DELEGATE_H_ |
| +#define CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_MENU_MODEL_DELEGATE_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "ui/base/models/menu_model_delegate.h" |
| + |
| +namespace ui { |
| +class MenuModel; |
| +} |
| + |
| +namespace views { |
| +class MenuItemView; |
| +} |
| + |
| +// Provides the ui::MenuModelDelegate implementation for RecentTabsSubMenuModel |
| +// items. |
| +class RecentTabsMenuModelDelegate : public ui::MenuModelDelegate { |
| + public: |
| + RecentTabsMenuModelDelegate(ui::MenuModel* model, |
| + views::MenuItemView* menu_item); |
| + virtual ~RecentTabsMenuModelDelegate(); |
| + |
| + // ui::MenuModelDelegate implementation: |
| + virtual void OnIconChanged(int index) OVERRIDE; |
| + |
| + private: |
| + ui::MenuModel* model_; |
| + 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
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(RecentTabsMenuModelDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_TOOLBAR_RECENT_TABS_MENU_MODEL_DELEGATE_H_ |