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

Side by Side Diff: components/test_runner/web_ax_object_proxy.cc

Issue 1162333003: Added supporting code for Blink layout tests for isContentRichlyEditable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed isContentRichlyEditable to isRichlyEditable. Created 5 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 unified diff | Download patch
« no previous file with comments | « components/test_runner/web_ax_object_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/test_runner/web_ax_object_proxy.h" 5 #include "components/test_runner/web_ax_object_proxy.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "gin/handle.h" 8 #include "gin/handle.h"
9 #include "third_party/WebKit/public/platform/WebPoint.h" 9 #include "third_party/WebKit/public/platform/WebPoint.h"
10 #include "third_party/WebKit/public/platform/WebRect.h" 10 #include "third_party/WebKit/public/platform/WebRect.h"
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 .SetProperty("valueDescription", &WebAXObjectProxy::ValueDescription) 491 .SetProperty("valueDescription", &WebAXObjectProxy::ValueDescription)
492 .SetProperty("childrenCount", &WebAXObjectProxy::ChildrenCount) 492 .SetProperty("childrenCount", &WebAXObjectProxy::ChildrenCount)
493 .SetProperty("selectionStart", &WebAXObjectProxy::SelectionStart) 493 .SetProperty("selectionStart", &WebAXObjectProxy::SelectionStart)
494 .SetProperty("selectionEnd", &WebAXObjectProxy::SelectionEnd) 494 .SetProperty("selectionEnd", &WebAXObjectProxy::SelectionEnd)
495 .SetProperty("selectionStartLineNumber", 495 .SetProperty("selectionStartLineNumber",
496 &WebAXObjectProxy::SelectionStartLineNumber) 496 &WebAXObjectProxy::SelectionStartLineNumber)
497 .SetProperty("selectionEndLineNumber", 497 .SetProperty("selectionEndLineNumber",
498 &WebAXObjectProxy::SelectionEndLineNumber) 498 &WebAXObjectProxy::SelectionEndLineNumber)
499 .SetProperty("isEnabled", &WebAXObjectProxy::IsEnabled) 499 .SetProperty("isEnabled", &WebAXObjectProxy::IsEnabled)
500 .SetProperty("isRequired", &WebAXObjectProxy::IsRequired) 500 .SetProperty("isRequired", &WebAXObjectProxy::IsRequired)
501 .SetProperty("isRichlyEditable", &WebAXObjectProxy::IsRichlyEditable)
501 .SetProperty("isFocused", &WebAXObjectProxy::IsFocused) 502 .SetProperty("isFocused", &WebAXObjectProxy::IsFocused)
502 .SetProperty("isFocusable", &WebAXObjectProxy::IsFocusable) 503 .SetProperty("isFocusable", &WebAXObjectProxy::IsFocusable)
503 .SetProperty("isSelected", &WebAXObjectProxy::IsSelected) 504 .SetProperty("isSelected", &WebAXObjectProxy::IsSelected)
504 .SetProperty("isSelectable", &WebAXObjectProxy::IsSelectable) 505 .SetProperty("isSelectable", &WebAXObjectProxy::IsSelectable)
505 .SetProperty("isMultiSelectable", &WebAXObjectProxy::IsMultiSelectable) 506 .SetProperty("isMultiSelectable", &WebAXObjectProxy::IsMultiSelectable)
506 .SetProperty("isSelectedOptionActive", 507 .SetProperty("isSelectedOptionActive",
507 &WebAXObjectProxy::IsSelectedOptionActive) 508 &WebAXObjectProxy::IsSelectedOptionActive)
508 .SetProperty("isExpanded", &WebAXObjectProxy::IsExpanded) 509 .SetProperty("isExpanded", &WebAXObjectProxy::IsExpanded)
509 .SetProperty("isChecked", &WebAXObjectProxy::IsChecked) 510 .SetProperty("isChecked", &WebAXObjectProxy::IsChecked)
510 .SetProperty("isVisible", &WebAXObjectProxy::IsVisible) 511 .SetProperty("isVisible", &WebAXObjectProxy::IsVisible)
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 bool WebAXObjectProxy::IsEnabled() { 754 bool WebAXObjectProxy::IsEnabled() {
754 accessibility_object_.updateLayoutAndCheckValidity(); 755 accessibility_object_.updateLayoutAndCheckValidity();
755 return accessibility_object_.isEnabled(); 756 return accessibility_object_.isEnabled();
756 } 757 }
757 758
758 bool WebAXObjectProxy::IsRequired() { 759 bool WebAXObjectProxy::IsRequired() {
759 accessibility_object_.updateLayoutAndCheckValidity(); 760 accessibility_object_.updateLayoutAndCheckValidity();
760 return accessibility_object_.isRequired(); 761 return accessibility_object_.isRequired();
761 } 762 }
762 763
764 bool WebAXObjectProxy::IsRichlyEditable() {
765 accessibility_object_.updateLayoutAndCheckValidity();
766 return accessibility_object_.isRichlyEditable();
767 }
768
763 bool WebAXObjectProxy::IsFocused() { 769 bool WebAXObjectProxy::IsFocused() {
764 accessibility_object_.updateLayoutAndCheckValidity(); 770 accessibility_object_.updateLayoutAndCheckValidity();
765 return accessibility_object_.isFocused(); 771 return accessibility_object_.isFocused();
766 } 772 }
767 773
768 bool WebAXObjectProxy::IsFocusable() { 774 bool WebAXObjectProxy::IsFocusable() {
769 accessibility_object_.updateLayoutAndCheckValidity(); 775 accessibility_object_.updateLayoutAndCheckValidity();
770 return accessibility_object_.canSetFocusAttribute(); 776 return accessibility_object_.canSetFocusAttribute();
771 } 777 }
772 778
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 v8::Local<v8::Value> value_handle = gin::CreateHandle( 1335 v8::Local<v8::Value> value_handle = gin::CreateHandle(
1330 isolate, new WebAXObjectProxy(object, this)).ToV8(); 1336 isolate, new WebAXObjectProxy(object, this)).ToV8();
1331 if (value_handle.IsEmpty()) 1337 if (value_handle.IsEmpty())
1332 return v8::Local<v8::Object>(); 1338 return v8::Local<v8::Object>();
1333 v8::Local<v8::Object> handle = value_handle->ToObject(isolate); 1339 v8::Local<v8::Object> handle = value_handle->ToObject(isolate);
1334 elements_.Append(handle); 1340 elements_.Append(handle);
1335 return handle; 1341 return handle;
1336 } 1342 }
1337 1343
1338 } // namespace test_runner 1344 } // namespace test_runner
OLDNEW
« no previous file with comments | « components/test_runner/web_ax_object_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698