#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;
// 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.
// 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;
bool IsSelectedIndex(size_t index) const;
bool IsHoveredIndex(size_t index) const;
gfx::Image GetIconIfExtensionMatch(size_t index) const;
+ bool IsStarredMatch(const AutocompleteMatch& match) const;
int max_match_contents_width() const {
return max_match_contents_width_;
private:
class AutocompletePopupWidget;
+ // views::ViewTargeterDelegate:
+ virtual views::View* TargetForRect(views::View* root,
+ const gfx::Rect& rect) OVERRIDE;
+
// Call immediately after construction.
void Init();