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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h

Issue 22891016: Add support for rect-based event targeting in views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 1 month 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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" 9 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h"
10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h" 10 #include "chrome/browser/ui/omnibox/omnibox_popup_view.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Overridden from OmniboxResultViewModel: 51 // Overridden from OmniboxResultViewModel:
52 virtual bool IsSelectedIndex(size_t index) const OVERRIDE; 52 virtual bool IsSelectedIndex(size_t index) const OVERRIDE;
53 virtual bool IsHoveredIndex(size_t index) const OVERRIDE; 53 virtual bool IsHoveredIndex(size_t index) const OVERRIDE;
54 virtual gfx::Image GetIconIfExtensionMatch(size_t index) const OVERRIDE; 54 virtual gfx::Image GetIconIfExtensionMatch(size_t index) const OVERRIDE;
55 55
56 // Overridden from gfx::AnimationDelegate: 56 // Overridden from gfx::AnimationDelegate:
57 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 57 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
58 58
59 // Overridden from views::View: 59 // Overridden from views::View:
60 virtual void Layout() OVERRIDE; 60 virtual void Layout() OVERRIDE;
61 virtual views::View* GetEventHandlerForPoint( 61 virtual views::View* GetEventHandlerForRect(
62 const gfx::Point& point) OVERRIDE; 62 const gfx::Rect& rect) OVERRIDE;
63 virtual views::View* GetTooltipHandlerForPoint( 63 virtual views::View* GetTooltipHandlerForPoint(
64 const gfx::Point& point) OVERRIDE; 64 const gfx::Point& point) OVERRIDE;
65 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 65 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
66 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 66 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
67 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 67 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
68 virtual void OnMouseCaptureLost() OVERRIDE; 68 virtual void OnMouseCaptureLost() OVERRIDE;
69 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 69 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
70 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 70 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
71 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 71 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
72 72
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 const gfx::ImageSkia* bottom_shadow_; // Ptr owned by resource bundle. 167 const gfx::ImageSkia* bottom_shadow_; // Ptr owned by resource bundle.
168 168
169 // Amount of extra padding to add to the popup on the top and bottom. 169 // Amount of extra padding to add to the popup on the top and bottom.
170 int outside_vertical_padding_; 170 int outside_vertical_padding_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); 172 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView);
173 }; 173 };
174 174
175 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 175 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698