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_BUBBLE_BASE_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_BUBBLE_BASE_H_ |
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_BUBBLE_BASE_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_BUBBLE_BASE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/message_center/message_center.h" | 9 #include "ui/message_center/message_center.h" |
10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 MessageCenter* message_center() { return message_center_; } | 63 MessageCenter* message_center() { return message_center_; } |
64 MessageCenterTray* tray() { return tray_; } | 64 MessageCenterTray* tray() { return tray_; } |
65 void set_bubble_view(views::TrayBubbleView* bubble_view) { | 65 void set_bubble_view(views::TrayBubbleView* bubble_view) { |
66 bubble_view_ = bubble_view; | 66 bubble_view_ = bubble_view; |
67 } | 67 } |
68 | 68 |
69 private: | 69 private: |
70 MessageCenter* message_center_; | 70 MessageCenter* message_center_; |
71 MessageCenterTray* tray_; | 71 MessageCenterTray* tray_; |
72 views::TrayBubbleView* bubble_view_; | 72 views::TrayBubbleView* bubble_view_; |
| 73 int max_height_; |
73 base::WeakPtrFactory<MessageBubbleBase> weak_ptr_factory_; | 74 base::WeakPtrFactory<MessageBubbleBase> weak_ptr_factory_; |
74 int max_height_; | |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(MessageBubbleBase); | 76 DISALLOW_COPY_AND_ASSIGN(MessageBubbleBase); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace message_center | 79 } // namespace message_center |
80 | 80 |
81 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_BUBBLE_BASE_H_ | 81 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_BUBBLE_BASE_H_ |
OLD | NEW |