This source file includes following definitions.
- displayed_first_run_balloon_
- OnMessageCenterTrayChanged
- ShowPopups
- HidePopups
- ShowMessageCenter
- HideMessageCenter
- ShowNotifierSettings
- IsContextMenuEnabled
- GetMessageCenterTray
- DisplayFirstRunBalloon
#include "ui/message_center/fake_message_center_tray_delegate.h"
#include "base/message_loop/message_loop.h"
#include "ui/message_center/message_center_tray.h"
namespace message_center {
FakeMessageCenterTrayDelegate::FakeMessageCenterTrayDelegate(
MessageCenter* message_center,
base::Closure quit_closure)
: tray_(new MessageCenterTray(this, message_center)),
quit_closure_(quit_closure),
displayed_first_run_balloon_(false) {}
FakeMessageCenterTrayDelegate::~FakeMessageCenterTrayDelegate() {
}
void FakeMessageCenterTrayDelegate::OnMessageCenterTrayChanged() {
}
bool FakeMessageCenterTrayDelegate::ShowPopups() {
return false;
}
void FakeMessageCenterTrayDelegate::HidePopups() {
}
bool FakeMessageCenterTrayDelegate::ShowMessageCenter() {
return false;
}
void FakeMessageCenterTrayDelegate::HideMessageCenter() {
}
bool FakeMessageCenterTrayDelegate::ShowNotifierSettings() {
return false;
}
bool FakeMessageCenterTrayDelegate::IsContextMenuEnabled() const {
return false;
}
MessageCenterTray* FakeMessageCenterTrayDelegate::GetMessageCenterTray() {
return tray_.get();
}
void FakeMessageCenterTrayDelegate::DisplayFirstRunBalloon() {
displayed_first_run_balloon_ = true;
base::MessageLoop::current()->PostTask(FROM_HERE, quit_closure_);
}
}