OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <comdef.h> | 5 #include <comdef.h> |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 | 8 |
9 #pragma warning(push, 0) | 9 #pragma warning(push, 0) |
10 #include "AccessibleDocument.h" | 10 #include "AccessibleDocument.h" |
11 #include "AXObjectCache.h" | 11 #include "AXObjectCache.h" |
12 #include "Document.h" | 12 #include "Document.h" |
13 #include "Frame.h" | 13 #include "Frame.h" |
14 #pragma warning(pop) | 14 #pragma warning(pop) |
15 #undef LOG | 15 #undef LOG |
16 | 16 |
17 #include "webkit/glue/glue_accessibility.h" | 17 #include "webkit/glue/glue_accessibility.h" |
18 | 18 |
| 19 #include "base/logging.h" |
19 #include "base/ref_counted.h" | 20 #include "base/ref_counted.h" |
20 #include "webkit/glue/webframe_impl.h" | 21 #include "webkit/glue/webframe_impl.h" |
21 #include "webkit/glue/webview_impl.h" | 22 #include "webkit/glue/webview_impl.h" |
22 | 23 |
23 // struct GlueAccessibility::GlueAccessibilityRoot | 24 // struct GlueAccessibility::GlueAccessibilityRoot |
24 struct GlueAccessibility::GlueAccessibilityRoot { | 25 struct GlueAccessibility::GlueAccessibilityRoot { |
25 GlueAccessibilityRoot() {} | 26 GlueAccessibilityRoot() {} |
26 | 27 |
27 // Root of the WebKit IAccessible tree. | 28 // Root of the WebKit IAccessible tree. |
28 scoped_refptr<AccessibleDocument> accessibility_root_; | 29 scoped_refptr<AccessibleDocument> accessibility_root_; |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 int_to_iaccessible_map_.erase(it); | 272 int_to_iaccessible_map_.erase(it); |
272 | 273 |
273 if (iaccessible_id == 0) { | 274 if (iaccessible_id == 0) { |
274 // Invalidate root. | 275 // Invalidate root. |
275 root_->accessibility_root_ = 0; | 276 root_->accessibility_root_ = 0; |
276 } | 277 } |
277 } | 278 } |
278 | 279 |
279 return true; | 280 return true; |
280 } | 281 } |
OLD | NEW |