| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 Node* node = this->GetNode(); | 1149 Node* node = this->GetNode(); |
| 1150 if (!node) | 1150 if (!node) |
| 1151 return false; | 1151 return false; |
| 1152 | 1152 |
| 1153 if (!isHTMLInputElement(node)) | 1153 if (!isHTMLInputElement(node)) |
| 1154 return false; | 1154 return false; |
| 1155 | 1155 |
| 1156 return toHTMLInputElement(node)->type() == InputTypeNames::range; | 1156 return toHTMLInputElement(node)->type() == InputTypeNames::range; |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 bool AXNodeObject::IsMoveableSplitter() const { |
| 1160 return RoleValue() == kSplitterRole && CanSetFocusAttribute(); |
| 1161 } |
| 1162 |
| 1159 bool AXNodeObject::IsClickable() const { | 1163 bool AXNodeObject::IsClickable() const { |
| 1160 if (GetNode()) { | 1164 if (GetNode()) { |
| 1161 if (GetNode()->IsElementNode() && | 1165 if (GetNode()->IsElementNode() && |
| 1162 ToElement(GetNode())->IsDisabledFormControl()) | 1166 ToElement(GetNode())->IsDisabledFormControl()) |
| 1163 return false; | 1167 return false; |
| 1164 | 1168 |
| 1165 // Note: we can't call getNode()->willRespondToMouseClickEvents() because | 1169 // Note: we can't call getNode()->willRespondToMouseClickEvents() because |
| 1166 // that triggers a style recalc and can delete this. | 1170 // that triggers a style recalc and can delete this. |
| 1167 if (GetNode()->HasEventListeners(EventTypeNames::mouseup) || | 1171 if (GetNode()->HasEventListeners(EventTypeNames::mouseup) || |
| 1168 GetNode()->HasEventListeners(EventTypeNames::mousedown) || | 1172 GetNode()->HasEventListeners(EventTypeNames::mousedown) || |
| (...skipping 2056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3225 return String(); | 3229 return String(); |
| 3226 return ToTextControlElement(node)->StrippedPlaceholder(); | 3230 return ToTextControlElement(node)->StrippedPlaceholder(); |
| 3227 } | 3231 } |
| 3228 | 3232 |
| 3229 DEFINE_TRACE(AXNodeObject) { | 3233 DEFINE_TRACE(AXNodeObject) { |
| 3230 visitor->Trace(node_); | 3234 visitor->Trace(node_); |
| 3231 AXObjectImpl::Trace(visitor); | 3235 AXObjectImpl::Trace(visitor); |
| 3232 } | 3236 } |
| 3233 | 3237 |
| 3234 } // namespace blink | 3238 } // namespace blink |
| OLD | NEW |