| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Called after the tray has been added to the widget containing it. | 71 // Called after the tray has been added to the widget containing it. |
| 72 virtual void Initialize(); | 72 virtual void Initialize(); |
| 73 | 73 |
| 74 // Initializes animations for the bubble. | 74 // Initializes animations for the bubble. |
| 75 static void InitializeBubbleAnimations(views::Widget* bubble_widget); | 75 static void InitializeBubbleAnimations(views::Widget* bubble_widget); |
| 76 | 76 |
| 77 // views::View: | 77 // views::View: |
| 78 void SetVisible(bool visible) override; | 78 void SetVisible(bool visible) override; |
| 79 const char* GetClassName() const override; | 79 const char* GetClassName() const override; |
| 80 const ui::NativeTheme* GetNativeTheme() const override; |
| 80 void ChildPreferredSizeChanged(views::View* child) override; | 81 void ChildPreferredSizeChanged(views::View* child) override; |
| 81 void GetAccessibleState(ui::AXViewState* state) override; | 82 void GetAccessibleState(ui::AXViewState* state) override; |
| 82 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 83 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 83 | 84 |
| 84 // ActionableView: | 85 // ActionableView: |
| 85 bool PerformAction(const ui::Event& event) override; | 86 bool PerformAction(const ui::Event& event) override; |
| 86 gfx::Rect GetFocusBounds() override; | 87 gfx::Rect GetFocusBounds() override; |
| 87 void OnGestureEvent(ui::GestureEvent* event) override; | 88 void OnGestureEvent(ui::GestureEvent* event) override; |
| 88 | 89 |
| 89 // Called whenever the shelf alignment changes. | 90 // Called whenever the shelf alignment changes. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 173 |
| 173 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 174 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
| 174 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 175 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
| 175 | 176 |
| 176 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 177 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 } // namespace ash | 180 } // namespace ash |
| 180 | 181 |
| 181 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 182 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| OLD | NEW |