| 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_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 6 #define ASH_COMMON_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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 void OnImplicitAnimationsCompleted() override; | 155 void OnImplicitAnimationsCompleted() override; |
| 156 bool RequiresNotificationWhenAnimatorDestroyed() const override; | 156 bool RequiresNotificationWhenAnimatorDestroyed() const override; |
| 157 | 157 |
| 158 // Applies transformations to the |layer()| to animate the view when | 158 // Applies transformations to the |layer()| to animate the view when |
| 159 // SetVisible(false) is called. | 159 // SetVisible(false) is called. |
| 160 void HideTransformation(); | 160 void HideTransformation(); |
| 161 | 161 |
| 162 // Helper function that calculates background insets relative to local bounds. | 162 // Helper function that calculates background insets relative to local bounds. |
| 163 gfx::Insets GetBackgroundInsets() const; | 163 gfx::Insets GetBackgroundInsets() const; |
| 164 | 164 |
| 165 // Helper function that calculates ink drop bounds relative to local bounds | 165 // Helper function that calculates background bounds relative to local bounds |
| 166 // based on the background insets returned from GetBackgroundInsets(). | 166 // based on background insets returned from GetBackgroundInsets(). |
| 167 gfx::Rect GetInkDropBounds() const; | 167 gfx::Rect GetBackgroundBounds() const; |
| 168 | 168 |
| 169 // The shelf containing the system tray for this view. | 169 // The shelf containing the system tray for this view. |
| 170 WmShelf* wm_shelf_; | 170 WmShelf* wm_shelf_; |
| 171 | 171 |
| 172 // Convenience pointer to the contents view. | 172 // Convenience pointer to the contents view. |
| 173 TrayContainer* tray_container_; | 173 TrayContainer* tray_container_; |
| 174 | 174 |
| 175 // Shelf alignment. | 175 // Shelf alignment. |
| 176 // TODO(jamescook): Don't cache this, get it from WmShelf. | 176 // TODO(jamescook): Don't cache this, get it from WmShelf. |
| 177 ShelfAlignment shelf_alignment_; | 177 ShelfAlignment shelf_alignment_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 189 | 189 |
| 190 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 190 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
| 191 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 191 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
| 192 | 192 |
| 193 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 193 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 } // namespace ash | 196 } // namespace ash |
| 197 | 197 |
| 198 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 198 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| OLD | NEW |