Re-land (2): Reimplement automation API on top of C++-backed AXTree.
Original review: https://codereview.chromium.org/1155183006
Landed: r335183
Reverted: r335343 (bug 502311)
Landed again: r339929
Reverted again: r340091 (bug 502311 again)
One fix to ax_tree.cc - bug 502311 was triggered from two different code paths, now both have tests.
Also adds tiny fixes to automation_event_router.cc
and automation_internal_custom_bindings.cc to prevent
crashes when toggling ChromeVox off and on.
TBRing dcheng, kalman since none of those files have
changed since the original review.
BUG=495323,502311
TBR=dcheng,kalman
Review URL: https://codereview.chromium.org/1259703002
Cr-Commit-Position: refs/heads/master@{#340602}
diff --git a/extensions/renderer/script_context.h b/extensions/renderer/script_context.h
index b6e49b9..4a9531a 100644
--- a/extensions/renderer/script_context.h
+++ b/extensions/renderer/script_context.h
@@ -178,6 +178,9 @@
// Returns a string representation of this ScriptContext, for debugging.
std::string GetDebugString() const;
+ // Gets the current stack trace as a multi-line string to be logged.
+ std::string GetStackTraceAsString() const;
+
private:
class Runner;