| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void WebAXObject::assign(const blink::WebAXObject& other) | 66 void WebAXObject::assign(const blink::WebAXObject& other) |
| 67 { | 67 { |
| 68 m_private = other.m_private; | 68 m_private = other.m_private; |
| 69 } | 69 } |
| 70 | 70 |
| 71 bool WebAXObject::equals(const WebAXObject& n) const | 71 bool WebAXObject::equals(const WebAXObject& n) const |
| 72 { | 72 { |
| 73 return m_private.get() == n.m_private.get(); | 73 return m_private.get() == n.m_private.get(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 // static | |
| 77 void WebAXObject::enableAccessibility() | |
| 78 { | |
| 79 AXObjectCache::enableAccessibility(); | |
| 80 } | |
| 81 | |
| 82 // static | |
| 83 bool WebAXObject::accessibilityEnabled() | |
| 84 { | |
| 85 return AXObjectCache::accessibilityEnabled(); | |
| 86 } | |
| 87 | |
| 88 // static | |
| 89 void WebAXObject::enableInlineTextBoxAccessibility() | |
| 90 { | |
| 91 AXObjectCache::setInlineTextBoxAccessibility(true); | |
| 92 } | |
| 93 | |
| 94 bool WebAXObject::isDetached() const | 76 bool WebAXObject::isDetached() const |
| 95 { | 77 { |
| 96 if (m_private.isNull()) | 78 if (m_private.isNull()) |
| 97 return true; | 79 return true; |
| 98 | 80 |
| 99 return m_private->isDetached(); | 81 return m_private->isDetached(); |
| 100 } | 82 } |
| 101 | 83 |
| 102 int WebAXObject::axID() const | 84 int WebAXObject::axID() const |
| 103 { | 85 { |
| (...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 m_private = object; | 1153 m_private = object; |
| 1172 return *this; | 1154 return *this; |
| 1173 } | 1155 } |
| 1174 | 1156 |
| 1175 WebAXObject::operator WTF::PassRefPtr<blink::AXObject>() const | 1157 WebAXObject::operator WTF::PassRefPtr<blink::AXObject>() const |
| 1176 { | 1158 { |
| 1177 return m_private.get(); | 1159 return m_private.get(); |
| 1178 } | 1160 } |
| 1179 | 1161 |
| 1180 } // namespace blink | 1162 } // namespace blink |
| OLD | NEW |