| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| 6 #define CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 6 #define CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 const std::map<int32, string16>& attributes() const { return attributes_; } | 137 const std::map<int32, string16>& attributes() const { return attributes_; } |
| 138 int32 child_id() const { return child_id_; } | 138 int32 child_id() const { return child_id_; } |
| 139 const std::vector<BrowserAccessibility*>& children() const { | 139 const std::vector<BrowserAccessibility*>& children() const { |
| 140 return children_; | 140 return children_; |
| 141 } | 141 } |
| 142 const std::vector<std::pair<string16, string16> >& html_attributes() const { | 142 const std::vector<std::pair<string16, string16> >& html_attributes() const { |
| 143 return html_attributes_; | 143 return html_attributes_; |
| 144 } | 144 } |
| 145 int32 index_in_parent() const { return index_in_parent_; } | 145 int32 index_in_parent() const { return index_in_parent_; } |
| 146 WebKit::WebRect location() const { return location_; } | 146 gfx::Rect location() const { return location_; } |
| 147 BrowserAccessibilityManager* manager() const { return manager_; } | 147 BrowserAccessibilityManager* manager() const { return manager_; } |
| 148 const string16& name() const { return name_; } | 148 const string16& name() const { return name_; } |
| 149 int32 renderer_id() const { return renderer_id_; } | 149 int32 renderer_id() const { return renderer_id_; } |
| 150 int32 role() const { return role_; } | 150 int32 role() const { return role_; } |
| 151 const string16& role_name() const { return role_name_; } | 151 const string16& role_name() const { return role_name_; } |
| 152 int32 state() const { return state_; } | 152 int32 state() const { return state_; } |
| 153 const string16& value() const { return value_; } | 153 const string16& value() const { return value_; } |
| 154 bool instance_active() const { return instance_active_; } | 154 bool instance_active() const { return instance_active_; } |
| 155 int32 ref_count() const { return ref_count_; } | 155 int32 ref_count() const { return ref_count_; } |
| 156 | 156 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 int32 ref_count_; | 201 int32 ref_count_; |
| 202 | 202 |
| 203 // Accessibility metadata from the renderer | 203 // Accessibility metadata from the renderer |
| 204 string16 name_; | 204 string16 name_; |
| 205 string16 value_; | 205 string16 value_; |
| 206 std::map<int32, string16> attributes_; | 206 std::map<int32, string16> attributes_; |
| 207 std::vector<std::pair<string16, string16> > html_attributes_; | 207 std::vector<std::pair<string16, string16> > html_attributes_; |
| 208 int32 role_; | 208 int32 role_; |
| 209 int32 state_; | 209 int32 state_; |
| 210 string16 role_name_; | 210 string16 role_name_; |
| 211 WebKit::WebRect location_; | 211 gfx::Rect location_; |
| 212 std::vector<int32> indirect_child_ids_; | 212 std::vector<int32> indirect_child_ids_; |
| 213 | 213 |
| 214 // BrowserAccessibility objects are reference-counted on some platforms. | 214 // BrowserAccessibility objects are reference-counted on some platforms. |
| 215 // When we're done with this object and it's removed from our accessibility | 215 // When we're done with this object and it's removed from our accessibility |
| 216 // tree, a client may still be holding onto a pointer to this object, so | 216 // tree, a client may still be holding onto a pointer to this object, so |
| 217 // we mark it as inactive so that calls to any of this object's methods | 217 // we mark it as inactive so that calls to any of this object's methods |
| 218 // immediately return failure. | 218 // immediately return failure. |
| 219 bool instance_active_; | 219 bool instance_active_; |
| 220 | 220 |
| 221 private: | 221 private: |
| 222 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 222 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 #endif // CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 225 #endif // CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |