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

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

Issue 403963002: Remove remaining overrides of View::GetEventHandlerForRect() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « ui/message_center/views/notification_view.cc ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // functions are in the view's coordinates, except for a RootView. 552 // functions are in the view's coordinates, except for a RootView.
553 553
554 // A convenience function which calls into GetEventHandlerForRect() with 554 // A convenience function which calls into GetEventHandlerForRect() with
555 // a 1x1 rect centered at |point|. |point| is in the local coordinate 555 // a 1x1 rect centered at |point|. |point| is in the local coordinate
556 // space of |this|. 556 // space of |this|.
557 View* GetEventHandlerForPoint(const gfx::Point& point); 557 View* GetEventHandlerForPoint(const gfx::Point& point);
558 558
559 // Returns the View that should be the target of an event having |rect| as 559 // Returns the View that should be the target of an event having |rect| as
560 // its location, or NULL if no such target exists. |rect| is in the local 560 // its location, or NULL if no such target exists. |rect| is in the local
561 // coordinate space of |this|. 561 // coordinate space of |this|.
562 // TODO(tdanderson): Make this function non-virtual. 562 View* GetEventHandlerForRect(const gfx::Rect& rect);
563 virtual View* GetEventHandlerForRect(const gfx::Rect& rect);
564 563
565 // Returns the deepest visible descendant that contains the specified point 564 // Returns the deepest visible descendant that contains the specified point
566 // and supports tooltips. If the view does not contain the point, returns 565 // and supports tooltips. If the view does not contain the point, returns
567 // NULL. 566 // NULL.
568 virtual View* GetTooltipHandlerForPoint(const gfx::Point& point); 567 virtual View* GetTooltipHandlerForPoint(const gfx::Point& point);
569 568
570 // Return the cursor that should be used for this view or the default cursor. 569 // Return the cursor that should be used for this view or the default cursor.
571 // The event location is in the receiver's coordinate system. The caller is 570 // The event location is in the receiver's coordinate system. The caller is
572 // responsible for managing the lifetime of the returned object, though that 571 // responsible for managing the lifetime of the returned object, though that
573 // lifetime may vary from platform to platform. On Windows and Aura, 572 // lifetime may vary from platform to platform. On Windows and Aura,
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 // Belongs to this view, but it's reference-counted on some platforms 1591 // Belongs to this view, but it's reference-counted on some platforms
1593 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1592 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1594 NativeViewAccessibility* native_view_accessibility_; 1593 NativeViewAccessibility* native_view_accessibility_;
1595 1594
1596 DISALLOW_COPY_AND_ASSIGN(View); 1595 DISALLOW_COPY_AND_ASSIGN(View);
1597 }; 1596 };
1598 1597
1599 } // namespace views 1598 } // namespace views
1600 1599
1601 #endif // UI_VIEWS_VIEW_H_ 1600 #endif // UI_VIEWS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/notification_view.cc ('k') | ui/views/window/non_client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698