dmazzoni | 94a4f88 | 2015-11-13 05:46:52 | [diff] [blame] | 1 | // 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 Ferreiro | f352a7501 | 2021-01-16 00:37:19 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_ASH_ACCESSIBILITY_CHROMEVOX_PANEL_H_ |
| 6 | #define CHROME_BROWSER_ASH_ACCESSIBILITY_CHROMEVOX_PANEL_H_ |
dmazzoni | 94a4f88 | 2015-11-13 05:46:52 | [diff] [blame] | 7 | |
dmazzoni | 94a4f88 | 2015-11-13 05:46:52 | [diff] [blame] | 8 | #include "base/macros.h" |
Henrique Ferreiro | f352a7501 | 2021-01-16 00:37:19 | [diff] [blame] | 9 | #include "chrome/browser/ash/accessibility/accessibility_panel.h" |
dmazzoni | 94a4f88 | 2015-11-13 05:46:52 | [diff] [blame] | 10 | |
Henrique Ferreiro | d6a9b7d | 2021-02-20 12:13:28 | [diff] [blame] | 11 | namespace ash { |
| 12 | |
James Cook | 85c4474 | 2018-01-12 22:01:00 | [diff] [blame] | 13 | // Displays spoken feedback UI controls for the ChromeVox component extension |
Zach Helfinstein | 3754df6 | 2018-07-18 20:17:27 | [diff] [blame] | 14 | class ChromeVoxPanel : public AccessibilityPanel { |
dmazzoni | 94a4f88 | 2015-11-13 05:46:52 | [diff] [blame] | 15 | public: |
David Tseng | 2616e06d | 2018-05-16 19:04:24 | [diff] [blame] | 16 | explicit ChromeVoxPanel(content::BrowserContext* browser_context); |
dmazzoni | 94a4f88 | 2015-11-13 05:46:52 | [diff] [blame] | 17 | ~ChromeVoxPanel() override; |
| 18 | |
James Cook | 85c4474 | 2018-01-12 22:01:00 | [diff] [blame] | 19 | class ChromeVoxPanelWebContentsObserver; |
| 20 | |
Zach Helfinstein | 3754df6 | 2018-07-18 20:17:27 | [diff] [blame] | 21 | private: |
James Cook | 85c4474 | 2018-01-12 22:01:00 | [diff] [blame] | 22 | // Methods indirectly invoked by the component extension. |
James Cook | 85c4474 | 2018-01-12 22:01:00 | [diff] [blame] | 23 | void EnterFullscreen(); |
| 24 | void ExitFullscreen(); |
James Cook | 85c4474 | 2018-01-12 22:01:00 | [diff] [blame] | 25 | void Focus(); |
| 26 | |
James Cook | 769799b | 2018-03-12 16:59:04 | [diff] [blame] | 27 | // Sends a request to the ash window manager. |
| 28 | void SetAccessibilityPanelFullscreen(bool fullscreen); |
| 29 | |
Zach Helfinstein | 3754df6 | 2018-07-18 20:17:27 | [diff] [blame] | 30 | std::string GetUrlForContent(); |
| 31 | |
dcheng | 24002d0 | 2016-04-08 02:42:40 | [diff] [blame] | 32 | std::unique_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_; |
dmazzoni | 94a4f88 | 2015-11-13 05:46:52 | [diff] [blame] | 33 | |
| 34 | DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel); |
| 35 | }; |
| 36 | |
Henrique Ferreiro | d6a9b7d | 2021-02-20 12:13:28 | [diff] [blame] | 37 | } // namespace ash |
| 38 | |
Henrique Ferreiro | f352a7501 | 2021-01-16 00:37:19 | [diff] [blame] | 39 | #endif // CHROME_BROWSER_ASH_ACCESSIBILITY_CHROMEVOX_PANEL_H_ |