Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: ui/message_center/views/message_popup_collection.cc

Issue 2799653004: Open the settings tab in the message center when clicking the settings button on a notification. (Closed)
Patch Set: . Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/message_center/views/message_center_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/views/message_popup_collection.h" 5 #include "ui/message_center/views/message_popup_collection.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 void MessagePopupCollection::ClickOnNotificationButton( 117 void MessagePopupCollection::ClickOnNotificationButton(
118 const std::string& notification_id, 118 const std::string& notification_id,
119 int button_index) { 119 int button_index) {
120 message_center_->ClickOnNotificationButton(notification_id, button_index); 120 message_center_->ClickOnNotificationButton(notification_id, button_index);
121 } 121 }
122 122
123 void MessagePopupCollection::ClickOnSettingsButton( 123 void MessagePopupCollection::ClickOnSettingsButton(
124 const std::string& notification_id) { 124 const std::string& notification_id) {
125 message_center_->ClickOnSettingsButton(notification_id); 125 tray_->ShowNotifierSettingsBubble();
126 } 126 }
127 127
128 void MessagePopupCollection::UpdateNotificationSize( 128 void MessagePopupCollection::UpdateNotificationSize(
129 const std::string& notification_id) { 129 const std::string& notification_id) {
130 OnNotificationUpdated(notification_id); 130 OnNotificationUpdated(notification_id);
131 } 131 }
132 132
133 void MessagePopupCollection::MarkAllPopupsShown() { 133 void MessagePopupCollection::MarkAllPopupsShown() {
134 std::set<std::string> closed_ids = CloseAllWidgets(); 134 std::set<std::string> closed_ids = CloseAllWidgets();
135 for (std::set<std::string>::iterator iter = closed_ids.begin(); 135 for (std::set<std::string>::iterator iter = closed_ids.begin();
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 views::Widget* widget = (*iter)->GetWidget(); 564 views::Widget* widget = (*iter)->GetWidget();
565 if (widget) 565 if (widget)
566 return widget->GetWindowBoundsInScreen(); 566 return widget->GetWindowBoundsInScreen();
567 break; 567 break;
568 } 568 }
569 } 569 }
570 return gfx::Rect(); 570 return gfx::Rect();
571 } 571 }
572 572
573 } // namespace message_center 573 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698