OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_ |
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 MessageCenterBubble(MessageCenter* message_center, MessageCenterTray* tray); | 26 MessageCenterBubble(MessageCenter* message_center, MessageCenterTray* tray); |
27 | 27 |
28 ~MessageCenterBubble() override; | 28 ~MessageCenterBubble() override; |
29 | 29 |
30 void SetSettingsVisible(); | 30 void SetSettingsVisible(); |
31 | 31 |
32 // Overridden from views::WidgetObserver: | 32 // Overridden from views::WidgetObserver: |
33 void OnWidgetClosing(views::Widget* widget) override; | 33 void OnWidgetClosing(views::Widget* widget) override; |
34 | 34 |
35 // Overridden from MessageBubbleBase: | 35 // Overridden from MessageBubbleBase: |
36 views::TrayBubbleView::InitParams GetInitParams( | |
37 views::TrayBubbleView::AnchorAlignment anchor_alignment) override; | |
38 void InitializeContents(views::TrayBubbleView* bubble_view) override; | 36 void InitializeContents(views::TrayBubbleView* bubble_view) override; |
39 void OnBubbleViewDestroyed() override; | 37 void OnBubbleViewDestroyed() override; |
40 void UpdateBubbleView() override; | 38 void UpdateBubbleView() override; |
41 void OnMouseEnteredView() override; | 39 void OnMouseEnteredView() override; |
42 void OnMouseExitedView() override; | 40 void OnMouseExitedView() override; |
43 | 41 |
44 size_t NumMessageViewsForTest() const; | 42 size_t NumMessageViewsForTest() const; |
45 | 43 |
46 private: | 44 private: |
47 MessageCenterView* message_center_view_; | 45 MessageCenterView* message_center_view_; |
48 | 46 |
49 // Use settings view as the initially visible content if true. | 47 // Use settings view as the initially visible content if true. |
50 bool initially_settings_visible_; | 48 bool initially_settings_visible_; |
51 | 49 |
52 DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble); | 50 DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble); |
53 }; | 51 }; |
54 | 52 |
55 } // namespace message_center | 53 } // namespace message_center |
56 | 54 |
57 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_ | 55 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_ |
OLD | NEW |