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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 // Sets a new event-targeter for the view, and returns the previous | 718 // Sets a new event-targeter for the view, and returns the previous |
719 // event-targeter. | 719 // event-targeter. |
720 scoped_ptr<ui::EventTargeter> SetEventTargeter( | 720 scoped_ptr<ui::EventTargeter> SetEventTargeter( |
721 scoped_ptr<ui::EventTargeter> targeter); | 721 scoped_ptr<ui::EventTargeter> targeter); |
722 | 722 |
723 // Overridden from ui::EventTarget: | 723 // Overridden from ui::EventTarget: |
724 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE; | 724 virtual bool CanAcceptEvent(const ui::Event& event) OVERRIDE; |
725 virtual ui::EventTarget* GetParentTarget() OVERRIDE; | 725 virtual ui::EventTarget* GetParentTarget() OVERRIDE; |
726 virtual scoped_ptr<ui::EventTargetIterator> GetChildIterator() const OVERRIDE; | 726 virtual scoped_ptr<ui::EventTargetIterator> GetChildIterator() const OVERRIDE; |
727 virtual ui::EventTargeter* GetEventTargeter() OVERRIDE; | 727 virtual ui::EventTargeter* GetEventTargeter() OVERRIDE; |
| 728 ui::EventTargeter* GetEventTargeter() const; |
728 virtual void ConvertEventToTarget(ui::EventTarget* target, | 729 virtual void ConvertEventToTarget(ui::EventTarget* target, |
729 ui::LocatedEvent* event) OVERRIDE; | 730 ui::LocatedEvent* event) OVERRIDE; |
730 | 731 |
731 // Overridden from ui::EventHandler: | 732 // Overridden from ui::EventHandler: |
732 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 733 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
733 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 734 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
734 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 735 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
735 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE FINAL; | 736 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE FINAL; |
736 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 737 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
737 | 738 |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 // Belongs to this view, but it's reference-counted on some platforms | 1607 // Belongs to this view, but it's reference-counted on some platforms |
1607 // so we can't use a scoped_ptr. It's dereferenced in the destructor. | 1608 // so we can't use a scoped_ptr. It's dereferenced in the destructor. |
1608 NativeViewAccessibility* native_view_accessibility_; | 1609 NativeViewAccessibility* native_view_accessibility_; |
1609 | 1610 |
1610 DISALLOW_COPY_AND_ASSIGN(View); | 1611 DISALLOW_COPY_AND_ASSIGN(View); |
1611 }; | 1612 }; |
1612 | 1613 |
1613 } // namespace views | 1614 } // namespace views |
1614 | 1615 |
1615 #endif // UI_VIEWS_VIEW_H_ | 1616 #endif // UI_VIEWS_VIEW_H_ |
OLD | NEW |