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

Side by Side Diff: ui/message_center/views/message_center_view.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 | « no previous file | ui/message_center/views/message_popup_collection.cc » ('j') | 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_center_view.h" 5 #include "ui/message_center/views/message_center_view.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 } 467 }
468 468
469 void MessageCenterView::ClickOnNotificationButton( 469 void MessageCenterView::ClickOnNotificationButton(
470 const std::string& notification_id, 470 const std::string& notification_id,
471 int button_index) { 471 int button_index) {
472 message_center_->ClickOnNotificationButton(notification_id, button_index); 472 message_center_->ClickOnNotificationButton(notification_id, button_index);
473 } 473 }
474 474
475 void MessageCenterView::ClickOnSettingsButton( 475 void MessageCenterView::ClickOnSettingsButton(
476 const std::string& notification_id) { 476 const std::string& notification_id) {
477 message_center_->ClickOnSettingsButton(notification_id); 477 tray_->ShowNotifierSettingsBubble();
478 } 478 }
479 479
480 void MessageCenterView::UpdateNotificationSize( 480 void MessageCenterView::UpdateNotificationSize(
481 const std::string& notification_id) { 481 const std::string& notification_id) {
482 OnNotificationUpdated(notification_id); 482 OnNotificationUpdated(notification_id);
483 } 483 }
484 484
485 void MessageCenterView::AnimationEnded(const gfx::Animation* animation) { 485 void MessageCenterView::AnimationEnded(const gfx::Animation* animation) {
486 DCHECK_EQ(animation, settings_transition_animation_.get()); 486 DCHECK_EQ(animation, settings_transition_animation_.get());
487 487
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 // Disable the close-all button since no notification is visible. 665 // Disable the close-all button since no notification is visible.
666 button_bar_->SetCloseAllButtonEnabled(false); 666 button_bar_->SetCloseAllButtonEnabled(false);
667 } 667 }
668 } 668 }
669 669
670 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { 670 void MessageCenterView::SetNotificationViewForTest(MessageView* view) {
671 message_list_view_->AddNotificationAt(view, 0); 671 message_list_view_->AddNotificationAt(view, 0);
672 } 672 }
673 673
674 } // namespace message_center 674 } // namespace message_center
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/message_popup_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698