[go: nahoru, domu]

blob: 0d483c36ce98d74efaf0ec511a56c35d3dbbbc07 [file] [log] [blame]
// Copyright 2019 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_MEDIA_CONTROLS_HEADER_VIEW_H_
#define ASH_LOGIN_UI_MEDIA_CONTROLS_HEADER_VIEW_H_
#include "ash/ash_export.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/view.h"
namespace views {
class ImageView;
class Label;
class ImageButton;
} // namespace views
namespace ash {
class ASH_EXPORT MediaControlsHeaderView : public views::View {
public:
explicit MediaControlsHeaderView(
views::Button::PressedCallback close_button_cb);
~MediaControlsHeaderView() override;
void SetAppIcon(const gfx::ImageSkia& img);
void SetAppName(const std::u16string& name);
void SetCloseButtonVisibility(bool visible);
// views::View:
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
const std::u16string& app_name_for_testing() const;
const views::ImageView* app_icon_for_testing() const;
views::ImageButton* close_button_for_testing() const;
private:
views::ImageView* app_icon_view_;
views::Label* app_name_view_;
views::ImageButton* close_button_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(MediaControlsHeaderView);
};
} // namespace ash
#endif // ASH_LOGIN_UI_MEDIA_CONTROLS_HEADER_VIEW_H_