| Index: ash/common/system/chromeos/network/tray_sms.cc
|
| diff --git a/ash/common/system/chromeos/network/tray_sms.cc b/ash/common/system/chromeos/network/tray_sms.cc
|
| index 5597c7503c8724125ab4d42197ca0f75ee85b093..008788169557d9c80998f3fe173a0461af8647eb 100644
|
| --- a/ash/common/system/chromeos/network/tray_sms.cc
|
| +++ b/ash/common/system/chromeos/network/tray_sms.cc
|
| @@ -14,6 +14,7 @@
|
| #include "ash/common/system/tray/tray_item_more.h"
|
| #include "ash/common/system/tray/tray_item_view.h"
|
| #include "ash/common/system/tray/tray_notification_view.h"
|
| +#include "ash/common/system/tray/view_click_listener.h"
|
| #include "ash/common/wm_shell.h"
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| @@ -189,7 +190,8 @@
|
| DISALLOW_COPY_AND_ASSIGN(SmsMessageView);
|
| };
|
|
|
| -class TraySms::SmsDetailedView : public TrayDetailsView {
|
| +class TraySms::SmsDetailedView : public TrayDetailsView,
|
| + public ViewClickListener {
|
| public:
|
| explicit SmsDetailedView(TraySms* owner) : TrayDetailsView(owner) {
|
| Init();
|
| @@ -200,7 +202,7 @@
|
|
|
| void Init() {
|
| CreateScrollableList();
|
| - CreateTitleRow(IDS_ASH_STATUS_TRAY_SMS);
|
| + CreateSpecialRow(IDS_ASH_STATUS_TRAY_SMS, this);
|
| }
|
|
|
| void Update() {
|
| @@ -241,6 +243,12 @@
|
| scroller()->Layout();
|
| }
|
|
|
| + // Overridden from ViewClickListener.
|
| + void OnViewClicked(views::View* sender) override {
|
| + if (sender == footer()->content())
|
| + TransitionToDefaultView();
|
| + }
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(SmsDetailedView);
|
| };
|
|
|
|
|