summaryrefslogtreecommitdiffstats
path: root/ui/message_center/fake_message_center_tray_delegate.cc
blob: ae4903484bb93337fb9eb737441b3a1dd5881365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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)
    : tray_(new MessageCenterTray(this, message_center)) {}

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();
}

}  // namespace message_center