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 #ifndef UI_VIEWS_VIEW_TARGETER_DELEGATE_H_ | 5 #ifndef UI_VIEWS_VIEW_TARGETER_DELEGATE_H_ |
6 #define UI_VIEWS_VIEW_TARGETER_DELEGATE_H_ | 6 #define UI_VIEWS_VIEW_TARGETER_DELEGATE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/views/views_export.h" | 9 #include "ui/views/views_export.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 public: | 22 public: |
23 ViewTargeterDelegate() {} | 23 ViewTargeterDelegate() {} |
24 virtual ~ViewTargeterDelegate() {} | 24 virtual ~ViewTargeterDelegate() {} |
25 | 25 |
26 // Returns true if the bounds of |target| intersects |rect|, where |rect| | 26 // Returns true if the bounds of |target| intersects |rect|, where |rect| |
27 // is in the local coodinate space of |target|. Overrides of this method by | 27 // is in the local coodinate space of |target|. Overrides of this method by |
28 // a View subclass should enforce DCHECK_EQ(this, target). | 28 // a View subclass should enforce DCHECK_EQ(this, target). |
29 virtual bool DoesIntersectRect(const View* target, | 29 virtual bool DoesIntersectRect(const View* target, |
30 const gfx::Rect& rect) const; | 30 const gfx::Rect& rect) const; |
31 | 31 |
| 32 // Terry - desc. |
| 33 virtual View* TargetForRect(View* root, const gfx::Rect& rect); |
| 34 |
32 private: | 35 private: |
33 DISALLOW_COPY_AND_ASSIGN(ViewTargeterDelegate); | 36 DISALLOW_COPY_AND_ASSIGN(ViewTargeterDelegate); |
34 }; | 37 }; |
35 | 38 |
36 } // namespace views | 39 } // namespace views |
37 | 40 |
38 #endif // UI_VIEWS_VIEW_TARGETER_DELEGATE_H_ | 41 #endif // UI_VIEWS_VIEW_TARGETER_DELEGATE_H_ |
OLD | NEW |