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

Side by Side Diff: ui/views/view.h

Issue 2718073003: Views a11y: Convert View's NativeViewAccessibility to a unique_ptr. (Closed)
Patch Set: Fix long lived NVA in test. Created 3 years, 9 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
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 // Drag and drop ------------------------------------------------------------- 1609 // Drag and drop -------------------------------------------------------------
1610 1610
1611 DragController* drag_controller_; 1611 DragController* drag_controller_;
1612 1612
1613 // Input -------------------------------------------------------------------- 1613 // Input --------------------------------------------------------------------
1614 1614
1615 std::unique_ptr<ViewTargeter> targeter_; 1615 std::unique_ptr<ViewTargeter> targeter_;
1616 1616
1617 // Accessibility ------------------------------------------------------------- 1617 // Accessibility -------------------------------------------------------------
1618 1618
1619 // Belongs to this view, but it's reference-counted on some platforms 1619 // The accessibility element used to represent this View.
1620 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1620 std::unique_ptr<NativeViewAccessibility> native_view_accessibility_;
1621 NativeViewAccessibility* native_view_accessibility_;
1622 1621
1623 // Observers ------------------------------------------------------------- 1622 // Observers -------------------------------------------------------------
1624 1623
1625 base::ObserverList<ViewObserver> observers_; 1624 base::ObserverList<ViewObserver> observers_;
1626 1625
1627 DISALLOW_COPY_AND_ASSIGN(View); 1626 DISALLOW_COPY_AND_ASSIGN(View);
1628 }; 1627 };
1629 1628
1630 } // namespace views 1629 } // namespace views
1631 1630
1632 #endif // UI_VIEWS_VIEW_H_ 1631 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698