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 ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/system/user/login_status.h" | 9 #include "ash/system/user/login_status.h" |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 virtual ~SystemTrayBubbleView(); | 31 virtual ~SystemTrayBubbleView(); |
32 | 32 |
33 void SetBubbleBorder(views::BubbleBorder* border); | 33 void SetBubbleBorder(views::BubbleBorder* border); |
34 | 34 |
35 void UpdateAnchor(); | 35 void UpdateAnchor(); |
36 | 36 |
37 // Called when the host is destroyed. | 37 // Called when the host is destroyed. |
38 void reset_host() { host_ = NULL; } | 38 void reset_host() { host_ = NULL; } |
39 | 39 |
40 private: | 40 private: |
| 41 friend class SystemTrayBubble; |
| 42 |
41 // Overridden from views::BubbleDelegateView. | 43 // Overridden from views::BubbleDelegateView. |
42 virtual void Init() OVERRIDE; | 44 virtual void Init() OVERRIDE; |
43 virtual gfx::Rect GetAnchorRect() OVERRIDE; | 45 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
44 // Overridden from views::View. | 46 // Overridden from views::View. |
45 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; | 47 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE; |
46 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 48 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
47 virtual bool CanActivate() const OVERRIDE; | 49 virtual bool CanActivate() const OVERRIDE; |
48 virtual gfx::Size GetPreferredSize() OVERRIDE; | 50 virtual gfx::Size GetPreferredSize() OVERRIDE; |
49 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 51 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; |
50 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 52 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 int autoclose_delay_; | 120 int autoclose_delay_; |
119 base::OneShotTimer<SystemTrayBubble> autoclose_; | 121 base::OneShotTimer<SystemTrayBubble> autoclose_; |
120 | 122 |
121 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); | 123 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); |
122 }; | 124 }; |
123 | 125 |
124 } // namespace internal | 126 } // namespace internal |
125 } // namespace ash | 127 } // namespace ash |
126 | 128 |
127 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 129 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
OLD | NEW |