blob: b53219ac28c2e2b17b6dff5f938726eea678c2c3 [file] [log] [blame]
dmazzoni94a4f882015-11-13 05:46:521// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Henrique Ferreirof352a75012021-01-16 00:37:195#ifndef CHROME_BROWSER_ASH_ACCESSIBILITY_CHROMEVOX_PANEL_H_
6#define CHROME_BROWSER_ASH_ACCESSIBILITY_CHROMEVOX_PANEL_H_
dmazzoni94a4f882015-11-13 05:46:527
dmazzoni94a4f882015-11-13 05:46:528#include "base/macros.h"
Henrique Ferreirof352a75012021-01-16 00:37:199#include "chrome/browser/ash/accessibility/accessibility_panel.h"
dmazzoni94a4f882015-11-13 05:46:5210
Henrique Ferreirod6a9b7d2021-02-20 12:13:2811namespace ash {
12
James Cook85c44742018-01-12 22:01:0013// Displays spoken feedback UI controls for the ChromeVox component extension
Zach Helfinstein3754df62018-07-18 20:17:2714class ChromeVoxPanel : public AccessibilityPanel {
dmazzoni94a4f882015-11-13 05:46:5215 public:
David Tseng2616e06d2018-05-16 19:04:2416 explicit ChromeVoxPanel(content::BrowserContext* browser_context);
dmazzoni94a4f882015-11-13 05:46:5217 ~ChromeVoxPanel() override;
18
James Cook85c44742018-01-12 22:01:0019 class ChromeVoxPanelWebContentsObserver;
20
Zach Helfinstein3754df62018-07-18 20:17:2721 private:
James Cook85c44742018-01-12 22:01:0022 // Methods indirectly invoked by the component extension.
James Cook85c44742018-01-12 22:01:0023 void EnterFullscreen();
24 void ExitFullscreen();
James Cook85c44742018-01-12 22:01:0025 void Focus();
26
James Cook769799b2018-03-12 16:59:0427 // Sends a request to the ash window manager.
28 void SetAccessibilityPanelFullscreen(bool fullscreen);
29
Zach Helfinstein3754df62018-07-18 20:17:2730 std::string GetUrlForContent();
31
dcheng24002d02016-04-08 02:42:4032 std::unique_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_;
dmazzoni94a4f882015-11-13 05:46:5233
34 DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel);
35};
36
Henrique Ferreirod6a9b7d2021-02-20 12:13:2837} // namespace ash
38
Henrique Ferreirof352a75012021-01-16 00:37:1939#endif // CHROME_BROWSER_ASH_ACCESSIBILITY_CHROMEVOX_PANEL_H_