| 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 "ui/views/accessibility/ax_view_obj_wrapper.h" | 5 #include "ui/views/accessibility/ax_view_obj_wrapper.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "ui/accessibility/ax_enums.h" |
| 8 #include "ui/accessibility/ax_node_data.h" | 9 #include "ui/accessibility/ax_node_data.h" |
| 9 #include "ui/accessibility/ax_view_state.h" | 10 #include "ui/accessibility/ax_view_state.h" |
| 10 #include "ui/events/event_utils.h" | 11 #include "ui/events/event_utils.h" |
| 11 #include "ui/views/accessibility/ax_aura_obj_cache.h" | 12 #include "ui/views/accessibility/ax_aura_obj_cache.h" |
| 12 #include "ui/views/view.h" | 13 #include "ui/views/view.h" |
| 13 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
| 14 | 15 |
| 15 namespace views { | 16 namespace views { |
| 16 | 17 |
| 17 AXViewObjWrapper::AXViewObjWrapper(View* view) : view_(view) { | 18 AXViewObjWrapper::AXViewObjWrapper(View* view) : view_(view) { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void AXViewObjWrapper::SetSelection(int32_t start, int32_t end) { | 101 void AXViewObjWrapper::SetSelection(int32_t start, int32_t end) { |
| 101 // TODO(dtseng): Implement. | 102 // TODO(dtseng): Implement. |
| 102 } | 103 } |
| 103 | 104 |
| 104 void AXViewObjWrapper::ShowContextMenu() { | 105 void AXViewObjWrapper::ShowContextMenu() { |
| 105 view_->ShowContextMenu(view_->bounds().CenterPoint(), | 106 view_->ShowContextMenu(view_->bounds().CenterPoint(), |
| 106 ui::MENU_SOURCE_KEYBOARD); | 107 ui::MENU_SOURCE_KEYBOARD); |
| 107 } | 108 } |
| 108 | 109 |
| 109 } // namespace views | 110 } // namespace views |
| OLD | NEW |