OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FOCUS_EXTERNAL_FOCUS_TRACKER_H_ | 5 #ifndef UI_VIEWS_FOCUS_EXTERNAL_FOCUS_TRACKER_H_ |
6 #define UI_VIEWS_FOCUS_EXTERNAL_FOCUS_TRACKER_H_ | 6 #define UI_VIEWS_FOCUS_EXTERNAL_FOCUS_TRACKER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" |
9 #include "ui/views/focus/focus_manager.h" | 10 #include "ui/views/focus/focus_manager.h" |
10 | 11 |
11 namespace views { | 12 namespace views { |
12 | 13 |
13 class View; | 14 class View; |
14 class ViewStorage; | 15 class ViewStorage; |
15 | 16 |
16 // ExternalFocusTracker tracks the last focused view which belongs to the | 17 // ExternalFocusTracker tracks the last focused view which belongs to the |
17 // provided focus manager and is not either the provided parent view or one of | 18 // provided focus manager and is not either the provided parent view or one of |
18 // its descendants. This is generally used if the parent view want to return | 19 // its descendants. This is generally used if the parent view want to return |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // The parent view of views which we should not track focus changes to. We | 70 // The parent view of views which we should not track focus changes to. We |
70 // also do not track changes to parent_view_ itself. | 71 // also do not track changes to parent_view_ itself. |
71 View* parent_view_; | 72 View* parent_view_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(ExternalFocusTracker); | 74 DISALLOW_COPY_AND_ASSIGN(ExternalFocusTracker); |
74 }; | 75 }; |
75 | 76 |
76 } // namespace views | 77 } // namespace views |
77 | 78 |
78 #endif // UI_VIEWS_FOCUS_EXTERNAL_FOCUS_TRACKER_H_ | 79 #endif // UI_VIEWS_FOCUS_EXTERNAL_FOCUS_TRACKER_H_ |
OLD | NEW |