Chromium Code Reviews| 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); |
| }; |