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

Unified Diff: components/exo/surface.h

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: address feedback Created 3 years, 11 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
Index: components/exo/surface.h
diff --git a/components/exo/surface.h b/components/exo/surface.h
index 0aeaa0edaa9481a287195be1f8d3fc6d73a52346..5f5c58f8ea37e4bbbbbb1cc9cfee77625d313034 100644
--- a/components/exo/surface.h
+++ b/components/exo/surface.h
@@ -42,6 +42,7 @@ class Path;
}
namespace exo {
+class AXTreeSourceSurface;
class Buffer;
class Pointer;
class SurfaceDelegate;
@@ -238,6 +239,10 @@ class Surface : public ui::ContextFactoryObserver,
return pending_damage_.contains(gfx::RectToSkIRect(damage));
}
+ // Sets the accessible tree source for this surface.
+ void set_ax_tree_source(AXTreeSourceSurface* tree) { ax_tree_source_ = tree; }
+ AXTreeSourceSurface* ax_tree_source() { return ax_tree_source_; }
+
private:
struct State {
State();
@@ -417,6 +422,9 @@ class Surface : public ui::ContextFactoryObserver,
// references to surfaces.
scoped_refptr<cc::SurfaceReferenceFactory> surface_reference_factory_;
+ // Not owned by this class.
+ AXTreeSourceSurface* ax_tree_source_;
+
DISALLOW_COPY_AND_ASSIGN(Surface);
};

Powered by Google App Engine
This is Rietveld 408576698