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/shelf/background_animator.h" | 9 #include "ash/shelf/background_animator.h" |
10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual const char* GetClassName() const OVERRIDE; | 70 virtual const char* GetClassName() const OVERRIDE; |
71 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 71 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
72 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 72 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
73 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; | 73 virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE; |
74 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 74 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
75 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; | 75 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE; |
76 | 76 |
77 // ActionableView: | 77 // ActionableView: |
78 virtual bool PerformAction(const ui::Event& event) OVERRIDE; | 78 virtual bool PerformAction(const ui::Event& event) OVERRIDE; |
79 virtual gfx::Rect GetFocusBounds() OVERRIDE; | 79 virtual gfx::Rect GetFocusBounds() OVERRIDE; |
| 80 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
80 | 81 |
81 // BackgroundAnimatorDelegate: | 82 // BackgroundAnimatorDelegate: |
82 virtual void UpdateBackground(int alpha) OVERRIDE; | 83 virtual void UpdateBackground(int alpha) OVERRIDE; |
83 | 84 |
84 // Called whenever the shelf alignment changes. | 85 // Called whenever the shelf alignment changes. |
85 virtual void SetShelfAlignment(ShelfAlignment alignment); | 86 virtual void SetShelfAlignment(ShelfAlignment alignment); |
86 | 87 |
87 // Called when the anchor (tray or bubble) may have moved or changed. | 88 // Called when the anchor (tray or bubble) may have moved or changed. |
88 virtual void AnchorUpdated() {} | 89 virtual void AnchorUpdated() {} |
89 | 90 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 188 |
188 scoped_ptr<TrayWidgetObserver> widget_observer_; | 189 scoped_ptr<TrayWidgetObserver> widget_observer_; |
189 scoped_ptr<TrayEventFilter> tray_event_filter_; | 190 scoped_ptr<TrayEventFilter> tray_event_filter_; |
190 | 191 |
191 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 192 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
192 }; | 193 }; |
193 | 194 |
194 } // namespace ash | 195 } // namespace ash |
195 | 196 |
196 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 197 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
OLD | NEW |