OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/message_center/message_center_bubble.h" | 5 #include "ui/message_center/message_center_bubble.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "grit/ui_strings.h" | 8 #include "grit/ui_strings.h" |
9 #include "third_party/skia/include/core/SkPaint.h" | 9 #include "third_party/skia/include/core/SkPaint.h" |
10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
216 layout->AddView(notification_label_); | 216 layout->AddView(notification_label_); |
217 layout->AddView(settings_button_); | 217 layout->AddView(settings_button_); |
218 layout->AddView(close_all_button); | 218 layout->AddView(close_all_button); |
219 set_close_all_button(close_all_button); | 219 set_close_all_button(close_all_button); |
220 } | 220 } |
221 | 221 |
222 private: | 222 private: |
223 // views::ButtonListener overrides: | 223 // views::ButtonListener overrides: |
224 virtual void ButtonPressed(views::Button* sender, | 224 virtual void ButtonPressed(views::Button* sender, |
225 const ui::Event& event) OVERRIDE { | 225 const ui::Event& event) OVERRIDE { |
226 // TODO(mukai): Replace ShowNotificationSettings by | |
stevenjb
2013/01/25 00:18:05
s/by/with
Jun Mukai
2013/01/25 00:22:35
Done.
| |
227 // ShowNotificationSettingsDialog(GetWidget()->GetNativeView()) | |
226 if (sender == close_all_button()) | 228 if (sender == close_all_button()) |
227 list_delegate()->SendRemoveAllNotifications(); | 229 list_delegate()->SendRemoveAllNotifications(); |
228 else if (sender == settings_button_) | 230 else if (sender == settings_button_) |
229 list_delegate()->ShowNotificationSettings(""); | 231 list_delegate()->ShowNotificationSettings(""); |
230 else | 232 else |
231 NOTREACHED(); | 233 NOTREACHED(); |
232 } | 234 } |
233 | 235 |
234 views::Label* notification_label_; | 236 views::Label* notification_label_; |
235 views::Button* settings_button_; | 237 views::Button* settings_button_; |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
552 } | 554 } |
553 | 555 |
554 void MessageCenterBubble::OnMouseExitedView() { | 556 void MessageCenterBubble::OnMouseExitedView() { |
555 } | 557 } |
556 | 558 |
557 size_t MessageCenterBubble::NumMessageViewsForTest() const { | 559 size_t MessageCenterBubble::NumMessageViewsForTest() const { |
558 return contents_view_->NumMessageViews(); | 560 return contents_view_->NumMessageViews(); |
559 } | 561 } |
560 | 562 |
561 } // namespace message_center | 563 } // namespace message_center |
OLD | NEW |