Roll src/third_party/skia d32087a:1052f51
[chromium-blink-merge.git] / ui / message_center / fake_message_center_tray_delegate.h
blob8457065a89645e5517b126435743f1488df3d8bf
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_TRAY_DELEGATE_H_
6 #define UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_TRAY_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/message_center/message_center_tray_delegate.h"
13 namespace message_center {
15 class MessageCenter;
16 class MessageCenterTray;
18 // A message center tray delegate which does nothing.
19 class FakeMessageCenterTrayDelegate : public MessageCenterTrayDelegate {
20 public:
21 explicit FakeMessageCenterTrayDelegate(MessageCenter* message_center);
22 ~FakeMessageCenterTrayDelegate() override;
24 // Overridden from MessageCenterTrayDelegate:
25 void OnMessageCenterTrayChanged() override;
26 bool ShowPopups() override;
27 void HidePopups() override;
28 bool ShowMessageCenter() override;
29 void HideMessageCenter() override;
30 bool ShowNotifierSettings() override;
31 bool IsContextMenuEnabled() const override;
32 MessageCenterTray* GetMessageCenterTray() override;
34 private:
35 scoped_ptr<MessageCenterTray> tray_;
36 base::Closure quit_closure_;
37 bool displayed_first_run_balloon_;
39 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenterTrayDelegate);
42 } // namespace message_center
44 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_TRAY_DELEGATE_H_