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

Unified Diff: components/exo/surface.h

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: m 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..d5fda20eb9a492a5fed09b7d10aaa73a9a7dedcd 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,8 @@ class Surface : public ui::ContextFactoryObserver,
// references to surfaces.
scoped_refptr<cc::SurfaceReferenceFactory> surface_reference_factory_;
+ AXTreeSourceSurface* ax_tree_source_;
dmazzoni 2017/01/19 19:48:16 Comment who owns this. If this is owned by this cl
David Tseng 2017/01/20 23:00:56 Not owned by this class (commented).
+
DISALLOW_COPY_AND_ASSIGN(Surface);
};

Powered by Google App Engine
This is Rietveld 408576698