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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 | 908 |
909 size_t vectorSize = lineBreaksVector.size(); | 909 size_t vectorSize = lineBreaksVector.size(); |
910 WebVector<int> lineBreaksWebVector(vectorSize); | 910 WebVector<int> lineBreaksWebVector(vectorSize); |
911 for (size_t i = 0; i< vectorSize; i++) | 911 for (size_t i = 0; i< vectorSize; i++) |
912 lineBreaksWebVector[i] = lineBreaksVector[i]; | 912 lineBreaksWebVector[i] = lineBreaksVector[i]; |
913 result.swap(lineBreaksWebVector); | 913 result.swap(lineBreaksWebVector); |
914 | 914 |
915 return true; | 915 return true; |
916 } | 916 } |
917 | 917 |
| 918 WebString WebAXObject::textInputType() const |
| 919 { |
| 920 if (isDetached()) |
| 921 return WebString(); |
| 922 |
| 923 return WebString(m_private->textInputType()); |
| 924 } |
| 925 |
918 unsigned WebAXObject::columnCount() const | 926 unsigned WebAXObject::columnCount() const |
919 { | 927 { |
920 if (isDetached()) | 928 if (isDetached()) |
921 return false; | 929 return false; |
922 | 930 |
923 if (!m_private->isAXTable()) | 931 if (!m_private->isAXTable()) |
924 return 0; | 932 return 0; |
925 | 933 |
926 return toAXTable(m_private.get())->columnCount(); | 934 return toAXTable(m_private.get())->columnCount(); |
927 } | 935 } |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 m_private = object; | 1163 m_private = object; |
1156 return *this; | 1164 return *this; |
1157 } | 1165 } |
1158 | 1166 |
1159 WebAXObject::operator WTF::PassRefPtr<AXObject>() const | 1167 WebAXObject::operator WTF::PassRefPtr<AXObject>() const |
1160 { | 1168 { |
1161 return m_private.get(); | 1169 return m_private.get(); |
1162 } | 1170 } |
1163 | 1171 |
1164 } // namespace blink | 1172 } // namespace blink |
OLD | NEW |