| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ |
| 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 explicit NativeViewAccessibilityBase(View* view); | 62 explicit NativeViewAccessibilityBase(View* view); |
| 63 | 63 |
| 64 // Weak. Owns this. | 64 // Weak. Owns this. |
| 65 View* view_; | 65 View* view_; |
| 66 | 66 |
| 67 // Weak. Uses WidgetObserver to clear. This is set on the root view for | 67 // Weak. Uses WidgetObserver to clear. This is set on the root view for |
| 68 // a widget that's owned by another widget, so we can walk back up the | 68 // a widget that's owned by another widget, so we can walk back up the |
| 69 // tree. | 69 // tree. |
| 70 Widget* parent_widget_; | 70 Widget* parent_widget_; |
| 71 | 71 |
| 72 protected: |
| 73 virtual gfx::RectF GetBoundsInScreen() const; |
| 74 |
| 72 private: | 75 private: |
| 73 void PopulateChildWidgetVector(std::vector<Widget*>* result_child_widgets); | 76 void PopulateChildWidgetVector(std::vector<Widget*>* result_child_widgets); |
| 74 | 77 |
| 75 // We own this, but it is reference-counted on some platforms so we can't use | 78 // We own this, but it is reference-counted on some platforms so we can't use |
| 76 // a scoped_ptr. It is dereferenced in the destructor. | 79 // a scoped_ptr. It is dereferenced in the destructor. |
| 77 ui::AXPlatformNode* ax_node_; | 80 ui::AXPlatformNode* ax_node_; |
| 78 | 81 |
| 79 mutable ui::AXNodeData data_; | 82 mutable ui::AXNodeData data_; |
| 80 | 83 |
| 81 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityBase); | 84 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityBase); |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 } // namespace views | 87 } // namespace views |
| 85 | 88 |
| 86 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ | 89 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_BASE_H_ |
| OLD | NEW |