blob: 0643cf1a20066b50d5b01d4b2823a127f7f9c71d [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_SYSTEM_ACCESSIBILITY_SWITCH_ACCESS_MENU_VIEW_H_
#define ASH_SYSTEM_ACCESSIBILITY_SWITCH_ACCESS_MENU_VIEW_H_
#include <vector>
#include "base/containers/flat_map.h"
#include "ui/views/view.h"
namespace ash {
// View for the Switch Access menu.
class SwitchAccessMenuView : public views::View {
public:
SwitchAccessMenuView();
~SwitchAccessMenuView() override;
SwitchAccessMenuView(const SwitchAccessMenuView&) = delete;
SwitchAccessMenuView& operator=(const SwitchAccessMenuView&) = delete;
int GetBubbleWidthDip() const;
void SetActions(std::vector<std::string> actions);
// views::View:
void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
const char* GetClassName() const override;
private:
friend class SwitchAccessMenuBubbleControllerTest;
};
} // namespace ash
#endif // ASH_SYSTEM_ACCESSIBILITY_SWITCH_ACCESS_MENU_VIEW_H_