blob: 7126d521e5c674522a8977e3f1fb2c5c18a52b1e [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_LOGIN_UI_LOGIN_TOOLTIP_VIEW_H_
#define ASH_LOGIN_UI_LOGIN_TOOLTIP_VIEW_H_
#include "ash/login/ui/login_base_bubble_view.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/views/view.h"
namespace views {
class Label;
} // namespace views
namespace ash {
class LoginTooltipView : public LoginBaseBubbleView {
public:
LoginTooltipView(const base::string16& message, views::View* anchor_view);
~LoginTooltipView() override;
void SetText(const base::string16& message);
// LoginBaseBubbleView:
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
gfx::Point CalculatePosition() override;
protected:
views::Label* label() { return label_; }
private:
views::Label* label_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(LoginTooltipView);
};
} // namespace ash
#endif // ASH_LOGIN_UI_LOGIN_TOOLTIP_VIEW_H_