| Index: ash/common/system/tray/tray_background_view.h
|
| diff --git a/ash/common/system/tray/tray_background_view.h b/ash/common/system/tray/tray_background_view.h
|
| index 4a72dda62f34765ed11392e2b5292618367841dd..bf27e8eae630d120b4b047ef0d15e5f3b0f0e74c 100644
|
| --- a/ash/common/system/tray/tray_background_view.h
|
| +++ b/ash/common/system/tray/tray_background_view.h
|
| @@ -13,6 +13,7 @@
|
| #include "ash/public/cpp/shelf_types.h"
|
| #include "base/macros.h"
|
| #include "ui/compositor/layer_animation_observer.h"
|
| +#include "ui/gfx/geometry/insets.h"
|
| #include "ui/views/bubble/tray_bubble_view.h"
|
|
|
| namespace ash {
|
| @@ -139,6 +140,9 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
|
| gfx::Insets GetBubbleAnchorInsets() const;
|
|
|
| protected:
|
| + // Background insets relative to local bounds.
|
| + virtual gfx::Insets GetBackgroundInsets() const;
|
| +
|
| // ActionableView:
|
| std::unique_ptr<views::InkDropMask> CreateInkDropMask() const override;
|
| bool ShouldEnterPushedState(const ui::Event& event) override;
|
| @@ -158,6 +162,10 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
|
| // SetVisible(false) is called.
|
| void HideTransformation();
|
|
|
| + // Helper function that calculates background bounds relative to local bounds
|
| + // based on the background insets returned from GetBackgroundInsets().
|
| + gfx::Rect GetBackgroundBounds() const;
|
| +
|
| // The shelf containing the system tray for this view.
|
| WmShelf* wm_shelf_;
|
|
|
|
|