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 #pragma once | |
8 | 7 |
9 #include "chrome/browser/notifications/balloon.h" | 8 #include "chrome/browser/notifications/balloon.h" |
10 #include "ui/base/models/simple_menu_model.h" | 9 #include "ui/base/models/simple_menu_model.h" |
11 | 10 |
12 // Model for the corner-selection submenu. | 11 // Model for the corner-selection submenu. |
13 class CornerSelectionMenuModel : public ui::SimpleMenuModel, | 12 class CornerSelectionMenuModel : public ui::SimpleMenuModel, |
14 public ui::SimpleMenuModel::Delegate { | 13 public ui::SimpleMenuModel::Delegate { |
15 public: | 14 public: |
16 explicit CornerSelectionMenuModel(Balloon* balloon); | 15 explicit CornerSelectionMenuModel(Balloon* balloon); |
17 virtual ~CornerSelectionMenuModel(); | 16 virtual ~CornerSelectionMenuModel(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 51 |
53 private: | 52 private: |
54 Balloon* balloon_; // Not owned. | 53 Balloon* balloon_; // Not owned. |
55 | 54 |
56 scoped_ptr<CornerSelectionMenuModel> corner_menu_model_; | 55 scoped_ptr<CornerSelectionMenuModel> corner_menu_model_; |
57 | 56 |
58 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel); | 57 DISALLOW_COPY_AND_ASSIGN(NotificationOptionsMenuModel); |
59 }; | 58 }; |
60 | 59 |
61 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ | 60 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPTIONS_MENU_MODEL_H_ |
OLD | NEW |