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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
index 97c82735ec799b7403654bf9a0113cc832b17f0b..040e48449440269b887b894619b23dc14ae00103 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h
@@ -13,6 +13,7 @@
#include "ui/gfx/animation/slide_animation.h"
#include "ui/gfx/font_list.h"
#include "ui/views/view.h"
+#include "ui/views/view_targeter_delegate.h"
struct AutocompleteMatch;
class LocationBarView;
@@ -24,6 +25,7 @@ class Profile;
// A view representing the contents of the autocomplete popup.
class OmniboxPopupContentsView : public views::View,
public OmniboxPopupView,
+ public views::ViewTargeterDelegate,
public gfx::AnimationDelegate {
public:
// Factory method for creating the AutocompletePopupView.
@@ -51,8 +53,6 @@ class OmniboxPopupContentsView : public views::View,
// Overridden from views::View:
virtual void Layout() OVERRIDE;
- virtual views::View* GetEventHandlerForRect(
- const gfx::Rect& rect) OVERRIDE;
virtual views::View* GetTooltipHandlerForPoint(
const gfx::Point& point) OVERRIDE;
virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
@@ -104,6 +104,10 @@ class OmniboxPopupContentsView : public views::View,
private:
class AutocompletePopupWidget;
+ // views::ViewTargeterDelegate:
+ virtual views::View* TargetForRect(views::View* root,
+ const gfx::Rect& rect) OVERRIDE;
+
// Call immediately after construction.
void Init();

Powered by Google App Engine
This is Rietveld 408576698