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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp

Issue 2858493002: Rename AXObject to AXObjectImpl in modules/ and web/ (Closed)
Patch Set: Fixed rebase Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 bool AXMenuListOption::CanSetSelectedAttribute() const { 100 bool AXMenuListOption::CanSetSelectedAttribute() const {
101 return IsEnabled(); 101 return IsEnabled();
102 } 102 }
103 103
104 bool AXMenuListOption::ComputeAccessibilityIsIgnored( 104 bool AXMenuListOption::ComputeAccessibilityIsIgnored(
105 IgnoredReasons* ignored_reasons) const { 105 IgnoredReasons* ignored_reasons) const {
106 return AccessibilityIsIgnoredByDefault(ignored_reasons); 106 return AccessibilityIsIgnoredByDefault(ignored_reasons);
107 } 107 }
108 108
109 void AXMenuListOption::GetRelativeBounds( 109 void AXMenuListOption::GetRelativeBounds(
110 AXObject** out_container, 110 AXObjectImpl** out_container,
111 FloatRect& out_bounds_in_container, 111 FloatRect& out_bounds_in_container,
112 SkMatrix44& out_container_transform) const { 112 SkMatrix44& out_container_transform) const {
113 *out_container = nullptr; 113 *out_container = nullptr;
114 out_bounds_in_container = FloatRect(); 114 out_bounds_in_container = FloatRect();
115 out_container_transform.setIdentity(); 115 out_container_transform.setIdentity();
116 116
117 AXObject* parent = ParentObject(); 117 AXObjectImpl* parent = ParentObject();
118 if (!parent) 118 if (!parent)
119 return; 119 return;
120 DCHECK(parent->IsMenuListPopup()); 120 DCHECK(parent->IsMenuListPopup());
121 121
122 AXObject* grandparent = parent->ParentObject(); 122 AXObjectImpl* grandparent = parent->ParentObject();
123 if (!grandparent) 123 if (!grandparent)
124 return; 124 return;
125 DCHECK(grandparent->IsMenuList()); 125 DCHECK(grandparent->IsMenuList());
126 grandparent->GetRelativeBounds(out_container, out_bounds_in_container, 126 grandparent->GetRelativeBounds(out_container, out_bounds_in_container,
127 out_container_transform); 127 out_container_transform);
128 } 128 }
129 129
130 String AXMenuListOption::TextAlternative(bool recursive, 130 String AXMenuListOption::TextAlternative(bool recursive,
131 bool in_aria_labelled_by_traversal, 131 bool in_aria_labelled_by_traversal,
132 AXObjectSet& visited, 132 AXObjectSet& visited,
(...skipping 26 matching lines...) Expand all
159 159
160 return text_alternative; 160 return text_alternative;
161 } 161 }
162 162
163 DEFINE_TRACE(AXMenuListOption) { 163 DEFINE_TRACE(AXMenuListOption) {
164 visitor->Trace(element_); 164 visitor->Trace(element_);
165 AXMockObject::Trace(visitor); 165 AXMockObject::Trace(visitor);
166 } 166 }
167 167
168 } // namespace blink 168 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698