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_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/system/power/power_supply_status.h" | 9 #include "ash/system/power/power_supply_status.h" |
10 #include "ash/system/tray/tray_background_view.h" | 10 #include "ash/system/tray/tray_background_view.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // |notification_items_|, or destroys it if there are no notification items. | 191 // |notification_items_|, or destroys it if there are no notification items. |
192 void UpdateNotificationBubble(); | 192 void UpdateNotificationBubble(); |
193 | 193 |
194 // Called when the anchor (tray or bubble) may have moved or changed. | 194 // Called when the anchor (tray or bubble) may have moved or changed. |
195 void UpdateNotificationAnchor(); | 195 void UpdateNotificationAnchor(); |
196 | 196 |
197 // Overridden from internal::ActionableView. | 197 // Overridden from internal::ActionableView. |
198 virtual bool PerformAction(const ui::Event& event) OVERRIDE; | 198 virtual bool PerformAction(const ui::Event& event) OVERRIDE; |
199 | 199 |
200 // Overridden from views::View. | 200 // Overridden from views::View. |
201 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 201 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
202 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 202 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
203 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 203 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
204 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 204 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
205 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 205 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
206 | 206 |
207 // Owned items. | 207 // Owned items. |
208 ScopedVector<SystemTrayItem> items_; | 208 ScopedVector<SystemTrayItem> items_; |
209 | 209 |
210 // Pointers to members of |items_|. | 210 // Pointers to members of |items_|. |
211 SystemTrayItem* detailed_item_; | 211 SystemTrayItem* detailed_item_; |
212 std::vector<SystemTrayItem*> notification_items_; | 212 std::vector<SystemTrayItem*> notification_items_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // Set to true when system notifications should be hidden (e.g. web | 249 // Set to true when system notifications should be hidden (e.g. web |
250 // notification bubble is visible). | 250 // notification bubble is visible). |
251 bool hide_notifications_; | 251 bool hide_notifications_; |
252 | 252 |
253 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 253 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
254 }; | 254 }; |
255 | 255 |
256 } // namespace ash | 256 } // namespace ash |
257 | 257 |
258 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 258 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
OLD | NEW |