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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_manager.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
« no previous file with comments | « ash/shelf/shelf_layout_manager.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/accessibility_manager.h
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.h b/chrome/browser/chromeos/accessibility/accessibility_manager.h
index c961b205611a6156155f7457dcdc20efd3e7426a..54a1bf47642ce8ec7647326d7b4cac323724d8e5 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.h
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.h
@@ -16,6 +16,7 @@
#include "base/scoped_observer.h"
#include "base/time/time.h"
#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
+#include "chrome/browser/chromeos/accessibility/chromevox_panel.h"
#include "chrome/browser/extensions/api/braille_display_private/braille_controller.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -27,6 +28,7 @@
namespace content {
class RenderViewHost;
}
+
class Profile;
namespace chromeos {
@@ -68,6 +70,8 @@ typedef base::CallbackList<void(const AccessibilityStatusEventDetails&)>
typedef AccessibilityStatusCallbackList::Subscription
AccessibilityStatusSubscription;
+class ChromeVoxPanelWidgetObserver;
+
// AccessibilityManager changes the statuses of accessibility features
// watching profile notifications and pref-changes.
// TODO(yoshiki): merge MagnificationManager with AccessibilityManager.
@@ -200,6 +204,10 @@ class AccessibilityManager
// chromeos/audio/chromeos_sounds.h.
void PlayEarcon(int sound_key);
+ // Called by our widget observer when the ChromeVoxPanel is closing.
+ void OnChromeVoxPanelClosing();
+ void OnChromeVoxPanelDestroying();
+
// Profile having the a11y context.
Profile* profile() { return profile_; }
@@ -293,6 +301,9 @@ class AccessibilityManager
bool braille_ime_current_;
+ ChromeVoxPanel* chromevox_panel_;
+ scoped_ptr<ChromeVoxPanelWidgetObserver> chromevox_panel_widget_observer_;
+
base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
« no previous file with comments | « ash/shelf/shelf_layout_manager.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698