blob: b5b36c3f833d666873176db02c019cf943c1b12d [file] [log] [blame]
// Copyright 2020 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;
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_