OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 #include "app/l10n_util.h" | 5 #include "app/l10n_util.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/gtk/notifications/notification_options_menu_model.h" | 7 #include "chrome/browser/gtk/notifications/notification_options_menu_model.h" |
8 #include "chrome/browser/notifications/balloon.h" | 8 #include "chrome/browser/notifications/balloon.h" |
9 #include "chrome/browser/notifications/desktop_notification_service.h" | 9 #include "chrome/browser/notifications/desktop_notification_service.h" |
10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 int NotificationOptionsMenuModel::GetGroupIdAt(int index) const { | 59 int NotificationOptionsMenuModel::GetGroupIdAt(int index) const { |
60 return 0; | 60 return 0; |
61 } | 61 } |
62 | 62 |
63 bool NotificationOptionsMenuModel::GetIconAt(int index, SkBitmap* icon) const { | 63 bool NotificationOptionsMenuModel::GetIconAt(int index, SkBitmap* icon) const { |
64 return false; | 64 return false; |
65 } | 65 } |
66 | 66 |
| 67 menus::ButtonMenuItemModel* NotificationOptionsMenuModel::GetButtonMenuItemAt( |
| 68 int index) const { |
| 69 return NULL; |
| 70 } |
| 71 |
67 bool NotificationOptionsMenuModel::IsEnabledAt(int index) const { | 72 bool NotificationOptionsMenuModel::IsEnabledAt(int index) const { |
68 return true; | 73 return true; |
69 } | 74 } |
70 | 75 |
71 MenuModel* NotificationOptionsMenuModel::GetSubmenuModelAt(int index) const { | 76 MenuModel* NotificationOptionsMenuModel::GetSubmenuModelAt(int index) const { |
72 return NULL; | 77 return NULL; |
73 } | 78 } |
74 | 79 |
75 void NotificationOptionsMenuModel::HighlightChangedTo(int index) { | 80 void NotificationOptionsMenuModel::HighlightChangedTo(int index) { |
76 } | 81 } |
77 | 82 |
78 void NotificationOptionsMenuModel::ActivatedAt(int index) { | 83 void NotificationOptionsMenuModel::ActivatedAt(int index) { |
79 DCHECK_EQ(0, index); | 84 DCHECK_EQ(0, index); |
80 | 85 |
81 DesktopNotificationService* service = | 86 DesktopNotificationService* service = |
82 balloon_->profile()->GetDesktopNotificationService(); | 87 balloon_->profile()->GetDesktopNotificationService(); |
83 | 88 |
84 service->DenyPermission(balloon_->notification().origin_url()); | 89 service->DenyPermission(balloon_->notification().origin_url()); |
85 } | 90 } |
OLD | NEW |