| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 void ChildPreferredSizeChanged(views::View* child) override; | 77 void ChildPreferredSizeChanged(views::View* child) override; |
| 78 void GetAccessibleState(ui::AXViewState* state) override; | 78 void GetAccessibleState(ui::AXViewState* state) override; |
| 79 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 79 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 80 | 80 |
| 81 // ActionableView: | 81 // ActionableView: |
| 82 bool PerformAction(const ui::Event& event) override; | 82 bool PerformAction(const ui::Event& event) override; |
| 83 gfx::Rect GetFocusBounds() override; | 83 gfx::Rect GetFocusBounds() override; |
| 84 void OnGestureEvent(ui::GestureEvent* event) override; | 84 void OnGestureEvent(ui::GestureEvent* event) override; |
| 85 | 85 |
| 86 // BackgroundAnimatorDelegate: | 86 // BackgroundAnimatorDelegate: |
| 87 void UpdateBackground(int alpha) override; | 87 void UpdateBackground(BackgroundAnimator* animator, int alpha) override; |
| 88 | 88 |
| 89 // Called whenever the shelf alignment changes. | 89 // Called whenever the shelf alignment changes. |
| 90 virtual void SetShelfAlignment(ShelfAlignment alignment); | 90 virtual void SetShelfAlignment(ShelfAlignment alignment); |
| 91 | 91 |
| 92 // Called when the anchor (tray or bubble) may have moved or changed. | 92 // Called when the anchor (tray or bubble) may have moved or changed. |
| 93 virtual void AnchorUpdated() {} | 93 virtual void AnchorUpdated() {} |
| 94 | 94 |
| 95 // Called from GetAccessibleState, must return a valid accessible name. | 95 // Called from GetAccessibleState, must return a valid accessible name. |
| 96 virtual base::string16 GetAccessibleNameForTray() = 0; | 96 virtual base::string16 GetAccessibleNameForTray() = 0; |
| 97 | 97 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 179 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
| 180 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 180 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
| 181 | 181 |
| 182 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 182 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
| 183 }; | 183 }; |
| 184 | 184 |
| 185 } // namespace ash | 185 } // namespace ash |
| 186 | 186 |
| 187 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 187 #endif // ASH_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| OLD | NEW |