| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   53   return std::find_if(vector.begin(), |   53   return std::find_if(vector.begin(), | 
|   54                       vector.end(), |   54                       vector.end(), | 
|   55                       FirstIs<FirstType, SecondType>(first)); |   55                       FirstIs<FirstType, SecondType>(first)); | 
|   56 } |   56 } | 
|   57  |   57  | 
|   58 }  // namespace |   58 }  // namespace | 
|   59  |   59  | 
|   60 AXNodeData::AXNodeData() |   60 AXNodeData::AXNodeData() | 
|   61     : id(-1), |   61     : id(-1), | 
|   62       role(AX_ROLE_UNKNOWN), |   62       role(AX_ROLE_UNKNOWN), | 
 |   63       // Turn on all flags to more easily catch bugs where no flags are set. | 
 |   64       // This will be cleared back to a 0-state before use. | 
|   63       state(0xFFFFFFFF), |   65       state(0xFFFFFFFF), | 
|   64       offset_container_id(-1) { |   66       offset_container_id(-1) { | 
|   65 } |   67 } | 
|   66  |   68  | 
|   67 AXNodeData::~AXNodeData() { |   69 AXNodeData::~AXNodeData() { | 
|   68 } |   70 } | 
|   69  |   71  | 
|   70 AXNodeData::AXNodeData(const AXNodeData& other) { |   72 AXNodeData::AXNodeData(const AXNodeData& other) { | 
|   71   id = other.id; |   73   id = other.id; | 
|   72   role = other.role; |   74   role = other.role; | 
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  781     } |  783     } | 
|  782   } |  784   } | 
|  783  |  785  | 
|  784   if (!child_ids.empty()) |  786   if (!child_ids.empty()) | 
|  785     result += " child_ids=" + IntVectorToString(child_ids); |  787     result += " child_ids=" + IntVectorToString(child_ids); | 
|  786  |  788  | 
|  787   return result; |  789   return result; | 
|  788 } |  790 } | 
|  789  |  791  | 
|  790 }  // namespace ui |  792 }  // namespace ui | 
| OLD | NEW |