| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/accessibility/ax_node_data.h" | 5 #include "ui/accessibility/ax_node_data.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 if (state & (1 << AX_STATE_VERTICAL)) | 302 if (state & (1 << AX_STATE_VERTICAL)) |
| 303 result += " VERTICAL"; | 303 result += " VERTICAL"; |
| 304 if (state & (1 << AX_STATE_VISITED)) | 304 if (state & (1 << AX_STATE_VISITED)) |
| 305 result += " VISITED"; | 305 result += " VISITED"; |
| 306 | 306 |
| 307 result += " (" + IntToString(location.x()) + ", " + | 307 result += " (" + IntToString(location.x()) + ", " + |
| 308 IntToString(location.y()) + ")-(" + | 308 IntToString(location.y()) + ")-(" + |
| 309 IntToString(location.width()) + ", " + | 309 IntToString(location.width()) + ", " + |
| 310 IntToString(location.height()) + ")"; | 310 IntToString(location.height()) + ")"; |
| 311 | 311 |
| 312 if (!transform.IsIdentity()) |
| 313 result += " transform=" + transform.ToString(); |
| 314 |
| 312 for (size_t i = 0; i < int_attributes.size(); ++i) { | 315 for (size_t i = 0; i < int_attributes.size(); ++i) { |
| 313 std::string value = IntToString(int_attributes[i].second); | 316 std::string value = IntToString(int_attributes[i].second); |
| 314 switch (int_attributes[i].first) { | 317 switch (int_attributes[i].first) { |
| 315 case AX_ATTR_SCROLL_X: | 318 case AX_ATTR_SCROLL_X: |
| 316 result += " scroll_x=" + value; | 319 result += " scroll_x=" + value; |
| 317 break; | 320 break; |
| 318 case AX_ATTR_SCROLL_X_MIN: | 321 case AX_ATTR_SCROLL_X_MIN: |
| 319 result += " scroll_x_min=" + value; | 322 result += " scroll_x_min=" + value; |
| 320 break; | 323 break; |
| 321 case AX_ATTR_SCROLL_X_MAX: | 324 case AX_ATTR_SCROLL_X_MAX: |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 bool AXNodeData::IsRoot() const { | 642 bool AXNodeData::IsRoot() const { |
| 640 return (role == AX_ROLE_ROOT_WEB_AREA || | 643 return (role == AX_ROLE_ROOT_WEB_AREA || |
| 641 role == AX_ROLE_DESKTOP); | 644 role == AX_ROLE_DESKTOP); |
| 642 } | 645 } |
| 643 | 646 |
| 644 void AXNodeData::SetRoot() { | 647 void AXNodeData::SetRoot() { |
| 645 role = AX_ROLE_ROOT_WEB_AREA; | 648 role = AX_ROLE_ROOT_WEB_AREA; |
| 646 } | 649 } |
| 647 | 650 |
| 648 } // namespace ui | 651 } // namespace ui |
| OLD | NEW |