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

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 missing files 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 Widget;
17 }
18
19 class ChromeVoxPanel : public views::WidgetDelegate,
20 public gfx::DisplayObserver {
21 public:
22 explicit ChromeVoxPanel(Profile* profile);
23 ~ChromeVoxPanel() override;
24
25 int GetHeight();
26 aura::Window* GetRootWindow();
27
28 void Close();
29 void OnDeviceScaleFactorChanged(float device_scale_factor);
30 void DidFirstVisuallyNonEmptyPaint();
31 void EnterFullscreen();
32 void ExitFullscreen();
33
34 // WidgetDelegate overrides.
35 const views::Widget* GetWidget() const override;
36 views::Widget* GetWidget() override;
37 void DeleteDelegate() override;
38
39 // DisplayObserver overrides;
40 void OnDisplayAdded(const gfx::Display& new_display) override {}
41 void OnDisplayRemoved(const gfx::Display& old_display) override {}
42 void OnDisplayMetricsChanged(const gfx::Display& display,
43 uint32_t changed_metrics) override;
44
45 private:
46 void UpdateWidgetBounds();
47
48 Profile* profile_;
49 views::Widget* widget_;
50 aura::Window* root_window_;
51 scoped_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_;
52 bool fullscreen_;
53
54 DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel);
55 };
56
57 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698