Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: chrome/browser/chromeos/accessibility/chromevox_panel.h

Issue 1274563004: Show ChromeVox caption panel when spoken feedback is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromevox_panel_html
Patch Set: Add hook to disable/close ChromeVox Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
7
8 #include "base/macros.h"
9 #include "ui/gfx/display_observer.h"
10 #include "ui/views/widget/widget_delegate.h"
11
12 class ChromeVoxPanelWebContentsObserver;
13 class Profile;
14
15 namespace views {
16 class WebView;
17 class Widget;
18 }
19
20 class ChromeVoxPanel : public views::WidgetDelegate,
21 public gfx::DisplayObserver {
22 public:
23 explicit ChromeVoxPanel(Profile* profile);
24 ~ChromeVoxPanel() override;
25
26 int GetHeight();
27 aura::Window* GetRootWindow();
28
29 void Close();
30 void DidFirstVisuallyNonEmptyPaint();
31 void EnterFullscreen();
32 void ExitFullscreen();
33 void DisableSpokenFeedback();
34
35 // WidgetDelegate overrides.
36 const views::Widget* GetWidget() const override;
37 views::Widget* GetWidget() override;
38 void DeleteDelegate() override;
39 views::View* GetContentsView() override;
40
41 // DisplayObserver overrides;
42 void OnDisplayAdded(const gfx::Display& new_display) override {}
43 void OnDisplayRemoved(const gfx::Display& old_display) override {}
44 void OnDisplayMetricsChanged(const gfx::Display& display,
45 uint32_t changed_metrics) override;
46
47 private:
48 void UpdateWidgetBounds();
49
50 Profile* profile_;
51 views::Widget* widget_;
52 scoped_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_;
53 views::WebView* web_view_;
54 bool fullscreen_;
55
56 DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel);
57 };
58
59 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698