OLD | NEW |
---|---|
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 <algorithm> | 8 #include <algorithm> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
502 // Returns the deepest visible descendant that contains the specified point. | 502 // Returns the deepest visible descendant that contains the specified point. |
503 virtual View* GetEventHandlerForPoint(const gfx::Point& point); | 503 virtual View* GetEventHandlerForPoint(const gfx::Point& point); |
504 | 504 |
505 // Return the cursor that should be used for this view or the default cursor. | 505 // Return the cursor that should be used for this view or the default cursor. |
506 // The event location is in the receiver's coordinate system. The caller is | 506 // The event location is in the receiver's coordinate system. The caller is |
507 // responsible for managing the lifetime of the returned object, though that | 507 // responsible for managing the lifetime of the returned object, though that |
508 // lifetime may vary from platform to platform. On Windows and Aura, | 508 // lifetime may vary from platform to platform. On Windows and Aura, |
509 // the cursor is a shared resource. | 509 // the cursor is a shared resource. |
510 virtual gfx::NativeCursor GetCursor(const MouseEvent& event); | 510 virtual gfx::NativeCursor GetCursor(const MouseEvent& event); |
511 | 511 |
512 // Convenience to test whether a point is within this view's bounds | 512 // Convenience to test whether a point is within this view's bounds |
sky
2012/08/07 20:11:43
Update description.
tdanderson
2012/08/08 23:47:51
Done.
| |
513 virtual bool HitTest(const gfx::Point& l) const; | 513 virtual bool HitTest(const gfx::Rect& r) const; |
514 | 514 |
515 // This method is invoked when the user clicks on this view. | 515 // This method is invoked when the user clicks on this view. |
516 // The provided event is in the receiver's coordinate system. | 516 // The provided event is in the receiver's coordinate system. |
517 // | 517 // |
518 // Return true if you processed the event and want to receive subsequent | 518 // Return true if you processed the event and want to receive subsequent |
519 // MouseDraggged and MouseReleased events. This also stops the event from | 519 // MouseDraggged and MouseReleased events. This also stops the event from |
520 // bubbling. If you return false, the event will bubble through parent | 520 // bubbling. If you return false, the event will bubble through parent |
521 // views. | 521 // views. |
522 // | 522 // |
523 // If you remove yourself from the tree while processing this, event bubbling | 523 // If you remove yourself from the tree while processing this, event bubbling |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1468 base::win::ScopedComPtr<NativeViewAccessibilityWin> | 1468 base::win::ScopedComPtr<NativeViewAccessibilityWin> |
1469 native_view_accessibility_win_; | 1469 native_view_accessibility_win_; |
1470 #endif | 1470 #endif |
1471 | 1471 |
1472 DISALLOW_COPY_AND_ASSIGN(View); | 1472 DISALLOW_COPY_AND_ASSIGN(View); |
1473 }; | 1473 }; |
1474 | 1474 |
1475 } // namespace views | 1475 } // namespace views |
1476 | 1476 |
1477 #endif // UI_VIEWS_VIEW_H_ | 1477 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |