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_TRAY_BACKGROUND_VIEW_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/launcher/background_animator.h" | 9 #include "ash/launcher/background_animator.h" |
10 #include "ash/system/tray/tray_views.h" | 10 #include "ash/system/tray/tray_views.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 ShelfAlignment alignment_; | 52 ShelfAlignment alignment_; |
53 gfx::Size size_; | 53 gfx::Size size_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(TrayContainer); | 55 DISALLOW_COPY_AND_ASSIGN(TrayContainer); |
56 }; | 56 }; |
57 | 57 |
58 explicit TrayBackgroundView(internal::StatusAreaWidget* status_area_widget); | 58 explicit TrayBackgroundView(internal::StatusAreaWidget* status_area_widget); |
59 virtual ~TrayBackgroundView(); | 59 virtual ~TrayBackgroundView(); |
60 | 60 |
61 // Overridden from views::View. | 61 // Overridden from views::View. |
62 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 62 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
63 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 63 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
64 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; | 64 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; |
65 | 65 |
66 // Overridden from internal::ActionableView. | 66 // Overridden from internal::ActionableView. |
67 virtual bool PerformAction(const ui::Event& event) OVERRIDE; | 67 virtual bool PerformAction(const ui::Event& event) OVERRIDE; |
68 | 68 |
69 // Overridden from internal::BackgroundAnimatorDelegate. | 69 // Overridden from internal::BackgroundAnimatorDelegate. |
70 virtual void UpdateBackground(int alpha) OVERRIDE; | 70 virtual void UpdateBackground(int alpha) OVERRIDE; |
71 | 71 |
72 // Called whenever the shelf alignment changes. | 72 // Called whenever the shelf alignment changes. |
73 virtual void SetShelfAlignment(ShelfAlignment alignment); | 73 virtual void SetShelfAlignment(ShelfAlignment alignment); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 internal::BackgroundAnimator hide_background_animator_; | 107 internal::BackgroundAnimator hide_background_animator_; |
108 internal::BackgroundAnimator hover_background_animator_; | 108 internal::BackgroundAnimator hover_background_animator_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 110 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace internal | 113 } // namespace internal |
114 } // namespace ash | 114 } // namespace ash |
115 | 115 |
116 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 116 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
OLD | NEW |