Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ui/message_center/message_center_tray_host.h

Issue 11819048: Implement message center on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase on master @fa1d2262 and rearrange dependencies. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_HOST_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_HOST_H_
7
8 #include <string>
9
10 #include "ui/gfx/rect.h"
11 #include "ui/message_center/message_center.h"
12 #include "ui/message_center/message_center_export.h"
13 #include "ui/views/bubble/tray_bubble_view.h"
14 #include "ui/views/view.h"
15
16 namespace ui {
17
18 // System-specific code that manages the UI in the notification area for each
19 // system should implement MessageCenterTrayHost.
20 class MESSAGE_CENTER_EXPORT MessageCenterTrayHost {
21 public:
22 static MessageCenterTrayHost* GetInstance();
23 virtual ~MessageCenterTrayHost() {}
24
25 virtual message_center::MessageCenter* message_center() = 0;
26 // Events.
27 virtual void OnMessageCenterTrayChanged() = 0;
28 virtual void OnShowMessageCenterBubble() = 0;
29 virtual void OnHideMessageCenterBubble() = 0;
30 // System-specific information related to rendering the bubbles.
31 virtual gfx::NativeView GetBubbleWindowContainer() = 0;
32 virtual views::View* GetAnchorView() = 0;
33 virtual gfx::Rect GetAnchorRect(
34 views::Widget* anchor_widget,
35 views::TrayBubbleView::AnchorType anchor_type,
36 views::TrayBubbleView::AnchorAlignment anchor_alignment) = 0;
37 virtual views::TrayBubbleView::AnchorAlignment GetAnchorAlignment() = 0;
38 virtual void UpdateInitParams(
39 views::TrayBubbleView::InitParams* init_params) = 0;
40 virtual string16 GetAccessibleNameForBubble() = 0;
41 virtual bool CanShowPopups() = 0;
42 };
43
44 } // namespace ui
45 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698