| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ | |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ | |
| 7 | |
| 8 #include "app/menus/simple_menu_model.h" | |
| 9 #include "chrome/browser/notifications/balloon.h" | |
| 10 | |
| 11 class NotificationOptionsMenuModel : public menus::SimpleMenuModel, | |
| 12 public menus::SimpleMenuModel::Delegate { | |
| 13 public: | |
| 14 explicit NotificationOptionsMenuModel(Balloon* balloon); | |
| 15 virtual ~NotificationOptionsMenuModel(); | |
| 16 | |
| 17 // Overridden from menus::SimpleMenuModel::Delegate: | |
| 18 virtual bool IsCommandIdChecked(int command_id) const; | |
| 19 virtual bool IsCommandIdEnabled(int command_id) const; | |
| 20 virtual bool GetAcceleratorForCommandId(int command_id, | |
| 21 menus::Accelerator* accelerator); | |
| 22 virtual void ExecuteCommand(int command_id); | |
| 23 | |
| 24 private: | |
| 25 Balloon* balloon_; // Not owned. | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel); | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ | |
| OLD | NEW |