| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // tray_container(). | 138 // tray_container(). |
| 139 gfx::Insets GetBubbleAnchorInsets() const; | 139 gfx::Insets GetBubbleAnchorInsets() const; |
| 140 | 140 |
| 141 protected: | 141 protected: |
| 142 // ActionableView: | 142 // ActionableView: |
| 143 std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override; | 143 std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override; |
| 144 bool ShouldEnterPushedState(const ui::Event& event) override; | 144 bool ShouldEnterPushedState(const ui::Event& event) override; |
| 145 bool PerformAction(const ui::Event& event) override; | 145 bool PerformAction(const ui::Event& event) override; |
| 146 void HandlePerformActionResult(bool action_performed, | 146 void HandlePerformActionResult(bool action_performed, |
| 147 const ui::Event& event) override; | 147 const ui::Event& event) override; |
| 148 gfx::Rect GetFocusBounds() override; | |
| 149 void OnPaintFocus(gfx::Canvas* canvas) override; | 148 void OnPaintFocus(gfx::Canvas* canvas) override; |
| 150 | 149 |
| 151 private: | 150 private: |
| 152 class TrayWidgetObserver; | 151 class TrayWidgetObserver; |
| 153 | 152 |
| 154 // ui::ImplicitAnimationObserver: | 153 // ui::ImplicitAnimationObserver: |
| 155 void OnImplicitAnimationsCompleted() override; | 154 void OnImplicitAnimationsCompleted() override; |
| 156 bool RequiresNotificationWhenAnimatorDestroyed() const override; | 155 bool RequiresNotificationWhenAnimatorDestroyed() const override; |
| 157 | 156 |
| 158 // Applies transformations to the |layer()| to animate the view when | 157 // Applies transformations to the |layer()| to animate the view when |
| (...skipping 30 matching lines...) Expand all Loading... |
| 189 | 188 |
| 190 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 189 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
| 191 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 190 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
| 192 | 191 |
| 193 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 192 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
| 194 }; | 193 }; |
| 195 | 194 |
| 196 } // namespace ash | 195 } // namespace ash |
| 197 | 196 |
| 198 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 197 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| OLD | NEW |