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 "chrome/views/widget/root_view.h" | 5 #include "chrome/views/widget/root_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #if defined(OS_WIN) | 9 #if defined(OS_WIN) |
10 #include "base/base_drag_source.h" | 10 #include "base/base_drag_source.h" |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
953 // If a pending_paint_task_ does Run(), we don't need to do anything. | 953 // If a pending_paint_task_ does Run(), we don't need to do anything. |
954 paint_task_needed_ = false; | 954 paint_task_needed_ = false; |
955 } | 955 } |
956 | 956 |
957 ///////////////////////////////////////////////////////////////////////////// | 957 ///////////////////////////////////////////////////////////////////////////// |
958 // | 958 // |
959 // RootView - accessibility | 959 // RootView - accessibility |
960 // | 960 // |
961 ///////////////////////////////////////////////////////////////////////////// | 961 ///////////////////////////////////////////////////////////////////////////// |
962 | 962 |
| 963 bool RootView::GetAccessibleRole(AccessibilityTypes::Role* role) { |
| 964 DCHECK(role); |
| 965 |
| 966 *role = AccessibilityTypes::ROLE_APPLICATION; |
| 967 return true; |
| 968 } |
| 969 |
963 bool RootView::GetAccessibleName(std::wstring* name) { | 970 bool RootView::GetAccessibleName(std::wstring* name) { |
964 if (!accessible_name_.empty()) { | 971 if (!accessible_name_.empty()) { |
965 *name = accessible_name_; | 972 *name = accessible_name_; |
966 return true; | 973 return true; |
967 } | 974 } |
968 return false; | 975 return false; |
969 } | 976 } |
970 | 977 |
971 void RootView::SetAccessibleName(const std::wstring& name) { | 978 void RootView::SetAccessibleName(const std::wstring& name) { |
972 accessible_name_.assign(name); | 979 accessible_name_.assign(name); |
973 } | 980 } |
974 | 981 |
975 View* RootView::GetDragView() { | 982 View* RootView::GetDragView() { |
976 return drag_view_; | 983 return drag_view_; |
977 } | 984 } |
978 | 985 |
979 } // namespace views | 986 } // namespace views |
OLD | NEW |