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

Unified Diff: chrome/browser/accessibility/accessibility_events.h

Issue 600063002: Draw a focus ring around native views when ChromeVox is running. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add check for Chrome OS Created 6 years, 3 months 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 | « no previous file | chrome/browser/accessibility/accessibility_events.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/accessibility/accessibility_events.h
diff --git a/chrome/browser/accessibility/accessibility_events.h b/chrome/browser/accessibility/accessibility_events.h
index 8ef9ffed07676eabca04624d08c1c490d78eca6d..6acfc52997c9c5142f641d5fc0124f6b122e46b5 100644
--- a/chrome/browser/accessibility/accessibility_events.h
+++ b/chrome/browser/accessibility/accessibility_events.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/compiler_specific.h"
#include "ui/accessibility/ax_enums.h"
+#include "ui/gfx/rect.h"
class AccessibilityControlInfo;
class AccessibilityMenuInfo;
@@ -70,6 +71,9 @@ class AccessibilityControlInfo : public AccessibilityEventInfo {
const std::string& context() const { return context_; }
+ void set_bounds(const gfx::Rect& bounds) { bounds_ = bounds; }
+ const gfx::Rect& bounds() const { return bounds_; }
+
protected:
AccessibilityControlInfo(Profile* profile,
const std::string& name);
@@ -82,6 +86,9 @@ class AccessibilityControlInfo : public AccessibilityEventInfo {
// A string describing the context of the control, such as the name of
// the group or toolbar it's contained in.
std::string context_;
+
+ // The bounds of the control in global screen coordinates.
+ gfx::Rect bounds_;
};
// Accessibility information about a window passed to onWindowOpened
« no previous file with comments | « no previous file | chrome/browser/accessibility/accessibility_events.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698