Chromium Code Reviews| 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" |
| 11 #include "ash/common/shelf/shelf_background_animator_observer.h" | 11 #include "ash/common/shelf/shelf_background_animator_observer.h" |
| 12 #include "ash/common/system/tray/actionable_view.h" | 12 #include "ash/common/system/tray/actionable_view.h" |
| 13 #include "ash/public/cpp/shelf_types.h" | 13 #include "ash/public/cpp/shelf_types.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "ui/compositor/layer_animation_observer.h" | 15 #include "ui/compositor/layer_animation_observer.h" |
| 16 #include "ui/views/bubble/tray_bubble_view.h" | 16 #include "ui/views/bubble/tray_bubble_view.h" |
| 17 | 17 |
| 18 namespace views { | |
| 19 class RoundRectInkDropMask; | |
| 20 } | |
| 21 | |
| 18 namespace ash { | 22 namespace ash { |
| 19 class ShelfLayoutManager; | 23 class ShelfLayoutManager; |
| 20 class TrayEventFilter; | 24 class TrayEventFilter; |
| 21 class TrayBackground; | 25 class TrayBackground; |
| 22 class WmShelf; | 26 class WmShelf; |
| 23 | 27 |
| 24 // Base class for children of StatusAreaWidget: SystemTray, WebNotificationTray, | 28 // Base class for children of StatusAreaWidget: SystemTray, WebNotificationTray, |
| 25 // LogoutButtonTray, OverviewButtonTray. | 29 // LogoutButtonTray, OverviewButtonTray. |
| 26 // This class handles setting and animating the background when the Launcher | 30 // This class handles setting and animating the background when the Launcher |
| 27 // is shown/hidden. It also inherits from ActionableView so that the tray | 31 // is shown/hidden. It also inherits from ActionableView so that the tray |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 | 75 |
| 72 // views::View: | 76 // views::View: |
| 73 void SetVisible(bool visible) override; | 77 void SetVisible(bool visible) override; |
| 74 const char* GetClassName() const override; | 78 const char* GetClassName() const override; |
| 75 void ChildPreferredSizeChanged(views::View* child) override; | 79 void ChildPreferredSizeChanged(views::View* child) override; |
| 76 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 80 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 77 void AboutToRequestFocusFromTabTraversal(bool reverse) override; | 81 void AboutToRequestFocusFromTabTraversal(bool reverse) override; |
| 78 void OnPaint(gfx::Canvas* canvas) override; | 82 void OnPaint(gfx::Canvas* canvas) override; |
| 79 | 83 |
| 80 // ActionableView: | 84 // ActionableView: |
| 85 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; | |
| 86 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; | |
| 81 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; | 87 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; |
| 82 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() | 88 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| 83 const override; | 89 const override; |
| 84 bool ShouldEnterPushedState(const ui::Event& event) override; | 90 bool ShouldEnterPushedState(const ui::Event& event) override; |
| 85 bool PerformAction(const ui::Event& event) override; | 91 bool PerformAction(const ui::Event& event) override; |
| 86 void HandlePerformActionResult(bool action_performed, | 92 void HandlePerformActionResult(bool action_performed, |
| 87 const ui::Event& event) override; | 93 const ui::Event& event) override; |
| 88 gfx::Rect GetFocusBounds() override; | 94 gfx::Rect GetFocusBounds() override; |
| 89 void OnGestureEvent(ui::GestureEvent* event) override; | 95 void OnGestureEvent(ui::GestureEvent* event) override; |
| 90 | 96 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 // in non-MD version and how the ink drop ripples behave in MD version. | 175 // in non-MD version and how the ink drop ripples behave in MD version. |
| 170 bool is_active_; | 176 bool is_active_; |
| 171 | 177 |
| 172 // Visibility of this tray's separator which is a line of 1x32px and 4px to | 178 // Visibility of this tray's separator which is a line of 1x32px and 4px to |
| 173 // right of tray. | 179 // right of tray. |
| 174 bool is_separator_visible_; | 180 bool is_separator_visible_; |
| 175 | 181 |
| 176 std::unique_ptr<TrayWidgetObserver> widget_observer_; | 182 std::unique_ptr<TrayWidgetObserver> widget_observer_; |
| 177 std::unique_ptr<TrayEventFilter> tray_event_filter_; | 183 std::unique_ptr<TrayEventFilter> tray_event_filter_; |
| 178 | 184 |
| 185 std::unique_ptr<views::RoundRectInkDropMask> ink_drop_mask_; | |
|
bruthig
2016/11/11 20:16:43
Capturing offline discussion:
Let's move the owner
mohsen
2016/11/13 23:31:29
Done.
| |
| 186 | |
| 179 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); | 187 DISALLOW_COPY_AND_ASSIGN(TrayBackgroundView); |
| 180 }; | 188 }; |
| 181 | 189 |
| 182 } // namespace ash | 190 } // namespace ash |
| 183 | 191 |
| 184 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ | 192 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_BACKGROUND_VIEW_H_ |
| OLD | NEW |