OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "AccessibilityObject.h" | 7 #include "AccessibilityObject.h" |
8 #include "EventHandler.h" | 8 #include "EventHandler.h" |
9 #include "FrameView.h" | 9 #include "FrameView.h" |
10 #include "PlatformKeyboardEvent.h" | 10 #include "PlatformKeyboardEvent.h" |
(...skipping 116 matching lines...) Loading... |
127 return NULL; | 127 return NULL; |
128 | 128 |
129 // TODO(klink): simple object child? | 129 // TODO(klink): simple object child? |
130 ToWrapper(child_obj)->ref(); | 130 ToWrapper(child_obj)->ref(); |
131 return ToWrapper(child_obj); | 131 return ToWrapper(child_obj); |
132 } | 132 } |
133 | 133 |
134 GlueAccessibilityObject* GlueAccessibilityObject::GetChild(int child_id) { | 134 GlueAccessibilityObject* GlueAccessibilityObject::GetChild(int child_id) { |
135 AccessibilityObject* child_obj; | 135 AccessibilityObject* child_obj; |
136 if (!GetAccessibilityObjectForChild(child_id, child_obj)) | 136 if (!GetAccessibilityObjectForChild(child_id, child_obj)) |
137 return false; | 137 return NULL; |
138 | 138 |
139 // TODO(klink): simple object child? | 139 // TODO(klink): simple object child? |
140 ToWrapper(child_obj)->ref(); | 140 ToWrapper(child_obj)->ref(); |
141 return ToWrapper(child_obj); | 141 return ToWrapper(child_obj); |
142 } | 142 } |
143 | 143 |
144 bool GlueAccessibilityObject::ChildCount(long* count) { | 144 bool GlueAccessibilityObject::ChildCount(long* count) { |
145 if (!m_object || !count) | 145 if (!m_object || !count) |
146 return false; | 146 return false; |
147 | 147 |
(...skipping 288 matching lines...) Loading... |
436 if (!obj) | 436 if (!obj) |
437 return NULL; | 437 return NULL; |
438 | 438 |
439 GlueAccessibilityObject* result = | 439 GlueAccessibilityObject* result = |
440 static_cast<GlueAccessibilityObject*>(obj->wrapper()); | 440 static_cast<GlueAccessibilityObject*>(obj->wrapper()); |
441 if (!result) | 441 if (!result) |
442 result = CreateInstance(obj); | 442 result = CreateInstance(obj); |
443 | 443 |
444 return result; | 444 return result; |
445 } | 445 } |
OLD | NEW |