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

Unified Diff: ash/accessibility_delegate.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 SetDisplayWorkAreaInsetsForTesting for tests 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: ash/accessibility_delegate.h
diff --git a/ash/accessibility_delegate.h b/ash/accessibility_delegate.h
index cb821c8ad0a4eb1025b9f4a4a3381a2d599a7a09..d8f62c82e13a1d1247e8b09d630f9bbca4a7706b 100644
--- a/ash/accessibility_delegate.h
+++ b/ash/accessibility_delegate.h
@@ -9,6 +9,14 @@
#include "base/time/time.h"
#include "ui/chromeos/accessibility_types.h"
+namespace aura {
+class Window;
+}
+
+namespace gfx {
+class Insets;
+}
+
namespace ash {
// A delegate class to control and query accessibility features.
@@ -88,6 +96,11 @@ class ASH_EXPORT AccessibilityDelegate {
// Initiates play of shutdown sound and returns it's duration.
virtual base::TimeDelta PlayShutdownSound() const = 0;
+
+ // Get work area insets due to accessibility overlays on one of the
+ // screen edges, for the given root window.
+ virtual void ComputeWorkAreaInsets(aura::Window* root_window,
+ gfx::Insets* out_insets) const = 0;
Jun Mukai 2015/11/06 18:21:04 Why this comes to an output parameter rather than
oshima 2015/11/06 18:21:15 just return gfx::Insets as gfx::Insets is small.
dmazzoni 2015/11/09 23:02:06 Done.
};
} // namespace ash
« no previous file with comments | « no previous file | ash/default_accessibility_delegate.h » ('j') | chrome/browser/chromeos/accessibility/accessibility_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698