| 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" |
| 11 #include "base/message_pump_observer.h" | 11 #include "base/message_pump_observer.h" |
| 12 #include "base/timer.h" | 12 #include "base/timer.h" |
| 13 #include "ui/views/bubble/bubble_delegate.h" | 13 #include "ui/views/bubble/bubble_delegate.h" |
| 14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 15 | 15 |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 | 19 |
| 20 class SystemTray; | 20 class SystemTray; |
| 21 class SystemTrayItem; | 21 class SystemTrayItem; |
| 22 | 22 |
| 23 namespace internal { | 23 namespace internal { |
| 24 | 24 |
| 25 class SystemTrayBubble; | 25 class SystemTrayBubble; |
| 26 | 26 |
| 27 class SystemTrayBubbleView : public views::BubbleDelegateView { | 27 class SystemTrayBubbleView : public views::BubbleDelegateView { |
| 28 public: | 28 public: |
| 29 SystemTrayBubbleView(views::View* anchor, | 29 SystemTrayBubbleView(views::View* anchor, |
| 30 views::BubbleBorder::ArrowLocation arrow_location, |
| 30 SystemTrayBubble* host, | 31 SystemTrayBubble* host, |
| 31 bool can_activate); | 32 bool can_activate); |
| 32 virtual ~SystemTrayBubbleView(); | 33 virtual ~SystemTrayBubbleView(); |
| 33 | 34 |
| 34 void SetBubbleBorder(views::BubbleBorder* border); | 35 void SetBubbleBorder(views::BubbleBorder* border); |
| 35 | 36 |
| 36 void UpdateAnchor(); | 37 void UpdateAnchor(); |
| 37 | 38 |
| 38 // Called when the host is destroyed. | 39 // Called when the host is destroyed. |
| 39 void reset_host() { host_ = NULL; } | 40 void reset_host() { host_ = NULL; } |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 int autoclose_delay_; | 129 int autoclose_delay_; |
| 129 base::OneShotTimer<SystemTrayBubble> autoclose_; | 130 base::OneShotTimer<SystemTrayBubble> autoclose_; |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); | 132 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace internal | 135 } // namespace internal |
| 135 } // namespace ash | 136 } // namespace ash |
| 136 | 137 |
| 137 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 138 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
| OLD | NEW |