Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: ui/views/accessibility/native_view_accessibility_base.h

Issue 2789963002: Accessible bounds should include device scale factor on Windows (again) (Closed)
Patch Set: Fix const Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/accessibility/hit_testing_browsertest.cc ('k') | ui/views/accessibility/native_view_accessibility_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698