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

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

Issue 302653002: Introduce the MicButtonTargeter class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review Created 6 years, 6 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 | Annotate | Revision Log
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 <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual void ConvertEventToTarget(ui::EventTarget* target, 728 virtual void ConvertEventToTarget(ui::EventTarget* target,
729 ui::LocatedEvent* event) OVERRIDE; 729 ui::LocatedEvent* event) OVERRIDE;
730 730
731 const ui::EventTargeter* GetEventTargeter() const;
732
731 // Overridden from ui::EventHandler: 733 // Overridden from ui::EventHandler:
732 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 734 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
733 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 735 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
734 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; 736 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE;
735 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE FINAL; 737 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE FINAL;
736 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 738 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
737 739
738 // Accelerators -------------------------------------------------------------- 740 // Accelerators --------------------------------------------------------------
739 741
740 // Sets a keyboard accelerator for that view. When the user presses the 742 // Sets a keyboard accelerator for that view. When the user presses the
(...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 // 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
1606 // 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.
1607 NativeViewAccessibility* native_view_accessibility_; 1609 NativeViewAccessibility* native_view_accessibility_;
1608 1610
1609 DISALLOW_COPY_AND_ASSIGN(View); 1611 DISALLOW_COPY_AND_ASSIGN(View);
1610 }; 1612 };
1611 1613
1612 } // namespace views 1614 } // namespace views
1613 1615
1614 #endif // UI_VIEWS_VIEW_H_ 1616 #endif // UI_VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698