| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // Called after the tray has been added to the widget containing it. | 66 // Called after the tray has been added to the widget containing it. |
| 67 virtual void Initialize(); | 67 virtual void Initialize(); |
| 68 | 68 |
| 69 // Initializes animations for the bubble. | 69 // Initializes animations for the bubble. |
| 70 static void InitializeBubbleAnimations(views::Widget* bubble_widget); | 70 static void InitializeBubbleAnimations(views::Widget* bubble_widget); |
| 71 | 71 |
| 72 // views::View: | 72 // views::View: |
| 73 void SetVisible(bool visible) override; | 73 void SetVisible(bool visible) override; |
| 74 const char* GetClassName() const override; | 74 const char* GetClassName() const override; |
| 75 void ChildPreferredSizeChanged(views::View* child) override; | 75 void ChildPreferredSizeChanged(views::View* child) override; |
| 76 void GetAccessibleState(ui::AXViewState* state) override; | 76 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 77 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 77 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 78 void OnPaint(gfx::Canvas* canvas) override; | 78 void OnPaint(gfx::Canvas* canvas) override; |
| 79 | 79 |
| 80 // ActionableView: | 80 // ActionableView: |
| 81 bool PerformAction(const ui::Event& event) override; | 81 bool PerformAction(const ui::Event& event) override; |
| 82 gfx::Rect GetFocusBounds() override; | 82 gfx::Rect GetFocusBounds() override; |
| 83 void OnGestureEvent(ui::GestureEvent* event) override; | 83 void OnGestureEvent(ui::GestureEvent* event) override; |
| 84 | 84 |
| 85 // Called whenever the shelf alignment changes. | 85 // Called whenever the shelf alignment changes. |
| 86 virtual void SetShelfAlignment(ShelfAlignment alignment); | 86 virtual void SetShelfAlignment(ShelfAlignment alignment); |
| 87 | 87 |
| 88 // 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. |
| 89 virtual void AnchorUpdated() {} | 89 virtual void AnchorUpdated() {} |
| 90 | 90 |
| 91 // Called from GetAccessibleState, must return a valid accessible name. | 91 // Called from GetAccessibleNodeData, must return a valid accessible name. |
| 92 virtual base::string16 GetAccessibleNameForTray() = 0; | 92 virtual base::string16 GetAccessibleNameForTray() = 0; |
| 93 | 93 |
| 94 // Called when the bubble is resized. | 94 // Called when the bubble is resized. |
| 95 virtual void BubbleResized(const views::TrayBubbleView* bubble_view) {} | 95 virtual void BubbleResized(const views::TrayBubbleView* bubble_view) {} |
| 96 | 96 |
| 97 // Hides the bubble associated with |bubble_view|. Called when the widget | 97 // Hides the bubble associated with |bubble_view|. Called when the widget |
| 98 // is closed. | 98 // is closed. |
| 99 virtual void HideBubbleWithView(const views::TrayBubbleView* bubble_view) = 0; | 99 virtual void HideBubbleWithView(const views::TrayBubbleView* bubble_view) = 0; |
| 100 | 100 |
| 101 // Called by the bubble wrapper when a click event occurs outside the bubble. | 101 // Called by the bubble wrapper when a click event occurs outside the bubble. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 172 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
| 173 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 173 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
| 174 | 174 |
| 175 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 175 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace ash | 178 } // namespace ash |
| 179 | 179 |
| 180 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 180 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| OLD | NEW |