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

Unified Diff: components/test_runner/web_ax_object_proxy.h

Issue 2047873002: Add interface to get relative bounding box rect of AX objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate out one change that broke existing tests Created 4 years, 6 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/test_runner/web_ax_object_proxy.h
diff --git a/components/test_runner/web_ax_object_proxy.h b/components/test_runner/web_ax_object_proxy.h
index 626a154259c2c33570c6d0e813daaba5cf6cabbf..c61fedf2a44c6b86e647341f49aa7983b9d27011 100644
--- a/components/test_runner/web_ax_object_proxy.h
+++ b/components/test_runner/web_ax_object_proxy.h
@@ -124,6 +124,10 @@ class WebAXObjectProxy : public gin::Wrappable<WebAXObjectProxy> {
int32_t ColumnHeadersCount();
bool IsClickable();
bool IsButtonStateMixed();
+ int BoundsX();
+ int BoundsY();
+ int BoundsWidth();
+ int BoundsHeight();
// Bound methods.
v8::Local<v8::Object> AriaControlsElementAtIndex(unsigned index);
@@ -161,11 +165,19 @@ class WebAXObjectProxy : public gin::Wrappable<WebAXObjectProxy> {
void ScrollToMakeVisible();
void ScrollToMakeVisibleWithSubFocus(int x, int y, int width, int height);
void ScrollToGlobalPoint(int x, int y);
+ int ScrollX();
aboxhall 2016/06/09 23:05:30 Mention this in description too?
dmazzoni 2016/06/10 16:55:39 Done.
+ int ScrollY();
int WordStart(int character_index);
int WordEnd(int character_index);
v8::Local<v8::Object> NextOnLine();
v8::Local<v8::Object> PreviousOnLine();
std::string MisspellingAtIndex(int index);
+ v8::Local<v8::Object> OffsetContainer();
+ int BoundsInContainerX();
+ int BoundsInContainerY();
+ int BoundsInContainerWidth();
+ int BoundsInContainerHeight();
+ bool HasNonIdentityTransform();
std::string Name();
std::string NameFrom();
« no previous file with comments | « no previous file | components/test_runner/web_ax_object_proxy.cc » ('j') | components/test_runner/web_ax_object_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698