OLD | NEW |
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_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ |
7 | 7 |
8 #include "chrome/browser/notifications/balloon.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" |
9 #include "ui/base/models/simple_menu_model.h" | 11 #include "ui/base/models/simple_menu_model.h" |
10 | 12 |
| 13 class Balloon; |
| 14 |
11 // Model for the corner-selection submenu. | 15 // Model for the corner-selection submenu. |
12 class CornerSelectionMenuModel : public ui::SimpleMenuModel, | 16 class CornerSelectionMenuModel : public ui::SimpleMenuModel, |
13 public ui::SimpleMenuModel::Delegate { | 17 public ui::SimpleMenuModel::Delegate { |
14 public: | 18 public: |
15 explicit CornerSelectionMenuModel(Balloon* balloon); | 19 explicit CornerSelectionMenuModel(Balloon* balloon); |
16 virtual ~CornerSelectionMenuModel(); | 20 virtual ~CornerSelectionMenuModel(); |
17 | 21 |
18 // Overridden from ui::SimpleMenuModel::Delegate: | 22 // Overridden from ui::SimpleMenuModel::Delegate: |
19 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 23 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
20 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 24 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
(...skipping 30 matching lines...) Expand all Loading... |
51 | 55 |
52 private: | 56 private: |
53 Balloon* balloon_; // Not owned. | 57 Balloon* balloon_; // Not owned. |
54 | 58 |
55 scoped_ptr<CornerSelectionMenuModel> corner_menu_model_; | 59 scoped_ptr<CornerSelectionMenuModel> corner_menu_model_; |
56 | 60 |
57 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel); | 61 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel); |
58 }; | 62 }; |
59 | 63 |
60 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ | 64 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ |
OLD | NEW |