Chromium Code Reviews| Index: chrome/common/extensions/api/automation.idl |
| diff --git a/chrome/common/extensions/api/automation.idl b/chrome/common/extensions/api/automation.idl |
| index f9037c5878f85f3214f68d1043a126e0fc590f90..41f236511770006d80bdfab9bcf77f5056fb50f4 100644 |
| --- a/chrome/common/extensions/api/automation.idl |
| +++ b/chrome/common/extensions/api/automation.idl |
| @@ -317,6 +317,12 @@ |
| TreeChangeType type; |
| }; |
| + enum TreeChangeObserverMask { |
|
David Tseng
2015/11/24 18:46:30
This isn't really a mask since I don't think they'
dmazzoni
2015/11/30 22:00:46
Changed to Filter.
|
| + noTreeChanges, |
| + liveRegionTreeChanges, |
| + allTreeChanges |
| + }; |
| + |
| // A listener for changes on the <code>AutomationNode</code> tree. |
| callback TreeChangeObserver = void(TreeChange treeChange); |
| @@ -571,8 +577,14 @@ |
| // screen views. Note this API is currently only supported on Chrome OS. |
| [nocompile] static void getDesktop(RootCallback callback); |
| + // Set the type of tree change events you want to receive when |
| + // calling addTreeChangeObserver. |
| + [nocompile] static void setTreeChangeObserverMask( |
|
Peter Lundblad
2015/11/20 13:42:59
I assume this mask is per extension. IN any case,
dmazzoni
2015/11/23 20:16:50
That would be ideal, but it would significantly co
David Tseng
2015/11/24 18:46:30
I think, this looks a little like re-inventing the
dmazzoni
2015/11/26 00:08:04
The exception here is the onRemoved callback. Righ
|
| + TreeChangeObserverMask mask); |
| + |
| // Add a tree change observer. Tree change observers are static/global, they |
| - // listen to changes across all trees. |
| + // listen to changes across all trees. Note that you must also call |
| + // setTreeChangeObserverMask for this to do anything. |
| [nocompile] static void addTreeChangeObserver( |
| TreeChangeObserver observer); |