root/ui/message_center/fake_message_center_tray_delegate.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. displayed_first_run_balloon_
  2. OnMessageCenterTrayChanged
  3. ShowPopups
  4. HidePopups
  5. ShowMessageCenter
  6. HideMessageCenter
  7. ShowNotifierSettings
  8. IsContextMenuEnabled
  9. GetMessageCenterTray
  10. DisplayFirstRunBalloon

// 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,
    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_);
}

}  // namespace message_center

/* [<][>][^][v][top][bottom][index][help] */