OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 // aria-selected (selectable) | 247 // aria-selected (selectable) |
248 // aria-grabbed (grabbable) | 248 // aria-grabbed (grabbable) |
249 // aria-expanded (expandable) | 249 // aria-expanded (expandable) |
250 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state | 250 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state |
251 // aria-checked (checkable) -- supports 4th "mixed state" | 251 // aria-checked (checkable) -- supports 4th "mixed state" |
252 bool GetAriaTristate(const char* attr_name, | 252 bool GetAriaTristate(const char* attr_name, |
253 bool* is_defined, | 253 bool* is_defined, |
254 bool* is_mixed) const; | 254 bool* is_mixed) const; |
255 | 255 |
256 // Returns true if the bit corresponding to the given state enum is 1. | 256 // Returns true if the bit corresponding to the given state enum is 1. |
257 bool HasState(WebKit::WebAXState state_enum) const; | 257 bool HasState(blink::WebAXState state_enum) const; |
258 | 258 |
259 // Returns true if this node is an editable text field of any kind. | 259 // Returns true if this node is an editable text field of any kind. |
260 bool IsEditableText() const; | 260 bool IsEditableText() const; |
261 | 261 |
262 // Append the text from this node and its children. | 262 // Append the text from this node and its children. |
263 std::string GetTextRecursive() const; | 263 std::string GetTextRecursive() const; |
264 | 264 |
265 protected: | 265 protected: |
266 // Perform platform specific initialization. This can be called multiple times | 266 // Perform platform specific initialization. This can be called multiple times |
267 // during the lifetime of this instance after the members of this base object | 267 // during the lifetime of this instance after the members of this base object |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // immediately return failure. | 313 // immediately return failure. |
314 bool instance_active_; | 314 bool instance_active_; |
315 | 315 |
316 private: | 316 private: |
317 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 317 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
318 }; | 318 }; |
319 | 319 |
320 } // namespace content | 320 } // namespace content |
321 | 321 |
322 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 322 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |