| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/aura/accessibility/ax_root_obj_wrapper.h" | 5 #include "chrome/browser/ui/aura/accessibility/ax_root_obj_wrapper.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/common/channel_info.h" | 8 #include "chrome/common/channel_info.h" |
| 9 #include "ui/accessibility/ax_node_data.h" | 9 #include "ui/accessibility/ax_node_data.h" |
| 10 #include "ui/accessibility/ax_node_data.h" | 10 #include "ui/accessibility/ax_node_data.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void AXRootObjWrapper::GetChildren( | 47 void AXRootObjWrapper::GetChildren( |
| 48 std::vector<views::AXAuraObjWrapper*>* out_children) { | 48 std::vector<views::AXAuraObjWrapper*>* out_children) { |
| 49 views::AXAuraObjCache::GetInstance()->GetTopLevelWindows(out_children); | 49 views::AXAuraObjCache::GetInstance()->GetTopLevelWindows(out_children); |
| 50 out_children->push_back( | 50 out_children->push_back( |
| 51 views::AXAuraObjCache::GetInstance()->GetOrCreate(alert_window_)); | 51 views::AXAuraObjCache::GetInstance()->GetOrCreate(alert_window_)); |
| 52 } | 52 } |
| 53 | 53 |
| 54 void AXRootObjWrapper::Serialize(ui::AXNodeData* out_node_data) { | 54 void AXRootObjWrapper::Serialize(ui::AXNodeData* out_node_data) { |
| 55 out_node_data->id = id_; | 55 out_node_data->id = id_; |
| 56 out_node_data->role = ui::AX_ROLE_DESKTOP; | 56 out_node_data->role = ui::AX_ROLE_DESKTOP; |
| 57 out_node_data->state = 0; | |
| 58 out_node_data->AddStringAttribute(ui::AX_ATTR_CHROME_CHANNEL, | 57 out_node_data->AddStringAttribute(ui::AX_ATTR_CHROME_CHANNEL, |
| 59 chrome::GetChannelString()); | 58 chrome::GetChannelString()); |
| 60 } | 59 } |
| 61 | 60 |
| 62 int32_t AXRootObjWrapper::GetID() { | 61 int32_t AXRootObjWrapper::GetID() { |
| 63 return id_; | 62 return id_; |
| 64 } | 63 } |
| OLD | NEW |