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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/accessibility/chromevox_panel.h
diff --git a/chrome/browser/chromeos/accessibility/chromevox_panel.h b/chrome/browser/chromeos/accessibility/chromevox_panel.h
new file mode 100644
index 0000000000000000000000000000000000000000..6079c079b269413929c935f3eef180e82be36f6f
--- /dev/null
+++ b/chrome/browser/chromeos/accessibility/chromevox_panel.h
@@ -0,0 +1,59 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
+#define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_
+
+#include "base/macros.h"
+#include "ui/gfx/display_observer.h"
+#include "ui/views/widget/widget_delegate.h"
+
+class ChromeVoxPanelWebContentsObserver;
+
+namespace content {
+class BrowserContext;
+}
+
+namespace views {
+class Widget;
+}
+
+class ChromeVoxPanel : public views::WidgetDelegate,
+ public gfx::DisplayObserver {
+ public:
+ explicit ChromeVoxPanel(content::BrowserContext* browser_context);
+ ~ChromeVoxPanel() override;
+
+ aura::Window* GetRootWindow();
+
+ void Close();
+ void DidFirstVisuallyNonEmptyPaint();
+ void EnterFullscreen();
+ void ExitFullscreen();
+ void DisableSpokenFeedback();
+
+ // WidgetDelegate overrides.
+ const views::Widget* GetWidget() const override;
+ views::Widget* GetWidget() override;
+ void DeleteDelegate() override;
+ views::View* GetContentsView() override;
+
+ // DisplayObserver overrides;
+ void OnDisplayAdded(const gfx::Display& new_display) override {}
+ void OnDisplayRemoved(const gfx::Display& old_display) override {}
+ void OnDisplayMetricsChanged(const gfx::Display& display,
+ uint32_t changed_metrics) override;
+
+ private:
+ void UpdateWidgetBounds();
+
+ views::Widget* widget_;
+ scoped_ptr<ChromeVoxPanelWebContentsObserver> web_contents_observer_;
+ views::View* web_view_;
+ bool fullscreen_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeVoxPanel);
+};
+
+#endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_CHROMEVOX_PANEL_H_

Powered by Google App Engine
This is Rietveld 408576698