| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browser_accessibility.h" | 5 #include "chrome/browser/browser_accessibility_win.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/browser_accessibility_manager.h" | 8 #include "chrome/browser/browser_accessibility_manager_win.h" |
| 9 | 9 |
| 10 using webkit_glue::WebAccessibility; | 10 using webkit_glue::WebAccessibility; |
| 11 | 11 |
| 12 BrowserAccessibility::BrowserAccessibility() | 12 BrowserAccessibility::BrowserAccessibility() |
| 13 : manager_(NULL), | 13 : manager_(NULL), |
| 14 parent_(NULL), | 14 parent_(NULL), |
| 15 child_id_(-1), | 15 child_id_(-1), |
| 16 index_in_parent_(-1), | 16 index_in_parent_(-1), |
| 17 renderer_id_(-1), | 17 renderer_id_(-1), |
| 18 instance_active_(false) { | 18 instance_active_(false) { |
| (...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 // The role should always be set. | 1006 // The role should always be set. |
| 1007 DCHECK(!role_name_.empty() || role_); | 1007 DCHECK(!role_name_.empty() || role_); |
| 1008 | 1008 |
| 1009 // If we didn't explicitly set the IAccessible2 role, make it the same | 1009 // If we didn't explicitly set the IAccessible2 role, make it the same |
| 1010 // as the MSAA role. | 1010 // as the MSAA role. |
| 1011 if (!ia2_role_) | 1011 if (!ia2_role_) |
| 1012 ia2_role_ = role_; | 1012 ia2_role_ = role_; |
| 1013 } | 1013 } |
| OLD | NEW |