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

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: Don't let ChromeVox Classic run on panel 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
14 namespace content {
15 class BrowserContext;
16 }
17
18 namespace views {
19 class Widget;
20 }
21
22 class ChromeVoxPanel : public views::WidgetDelegate,
23 public gfx::DisplayObserver {
24 public:
25 explicit ChromeVoxPanel(content::BrowserContext* browser_context);
26 ~ChromeVoxPanel() override;
27
28 aura::Window* GetRootWindow();
29
30 void Close();
31 void DidFirstVisuallyNonEmptyPaint();
32 void EnterFullscreen();
33 void ExitFullscreen();
34 void DisableSpokenFeedback();
35
36 // WidgetDelegate overrides.
37 const views::Widget* GetWidget() const override;
38 views::Widget* GetWidget() override;
39 void DeleteDelegate() override;
40 views::View* GetContentsView() override;
41
42 // DisplayObserver overrides;
43 void OnDisplayAdded(const gfx::Display& new_display) override {}
44 void OnDisplayRemoved(const gfx::Display& old_display) override {}
45 void OnDisplayMetricsChanged(const gfx::Display& display,
46 uint32_t changed_metrics) override;
47
48 private:
49 void UpdateWidgetBounds();
50
51 views::Widget* widget_;
52 scoped_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_;
53 views::View* 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