blob: 49f5396cdbb40c14075fe09d08b21bb191c3b055 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SHELF_SHELF_TOOLTIP_BUBBLE_H_
#define ASH_SHELF_SHELF_TOOLTIP_BUBBLE_H_
#include "ash/ash_export.h"
#include "ash/shelf/shelf_bubble.h"
namespace views {
class BubbleDialogDelegateView;
class View;
} // namespace views
namespace ash {
// The implementation of tooltip bubbles for the shelf.
class ASH_EXPORT ShelfTooltipBubble : public ShelfBubble {
public:
ShelfTooltipBubble(views::View* anchor,
ShelfAlignment alignment,
SkColor background_color,
const base::string16& text);
protected:
// ShelfBubble:
bool ShouldCloseOnPressDown() override;
bool ShouldCloseOnMouseExit() override;
private:
// BubbleDialogDelegateView overrides:
gfx::Size CalculatePreferredSize() const override;
DISALLOW_COPY_AND_ASSIGN(ShelfTooltipBubble);
};
} // namespace ash
#endif // ASH_SHELF_SHELF_TOOLTIP_BUBBLE_H_