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

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

Issue 415053002: Remove AutocompleteMatch::is_starred (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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 62 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
63 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 63 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
64 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 64 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
65 65
66 // Overridden from ui::EventHandler: 66 // Overridden from ui::EventHandler:
67 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 67 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
68 68
69 bool IsSelectedIndex(size_t index) const; 69 bool IsSelectedIndex(size_t index) const;
70 bool IsHoveredIndex(size_t index) const; 70 bool IsHoveredIndex(size_t index) const;
71 gfx::Image GetIconIfExtensionMatch(size_t index) const; 71 gfx::Image GetIconIfExtensionMatch(size_t index) const;
72 bool IsStarredMatch(const AutocompleteMatch& match) const;
72 73
73 int max_match_contents_width() const { 74 int max_match_contents_width() const {
74 return max_match_contents_width_; 75 return max_match_contents_width_;
75 } 76 }
76 77
77 protected: 78 protected:
78 OmniboxPopupContentsView(const gfx::FontList& font_list, 79 OmniboxPopupContentsView(const gfx::FontList& font_list,
79 OmniboxView* omnibox_view, 80 OmniboxView* omnibox_view,
80 OmniboxEditModel* edit_model, 81 OmniboxEditModel* edit_model,
81 LocationBarView* location_bar_view); 82 LocationBarView* location_bar_view);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 177
177 // When the dropdown is not wide enough while displaying postfix suggestions, 178 // When the dropdown is not wide enough while displaying postfix suggestions,
178 // we use the width of widest match contents to shift the suggestions so that 179 // we use the width of widest match contents to shift the suggestions so that
179 // the widest suggestion just reaches the end edge. 180 // the widest suggestion just reaches the end edge.
180 int max_match_contents_width_; 181 int max_match_contents_width_;
181 182
182 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView); 183 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupContentsView);
183 }; 184 };
184 185
185 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_ 186 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_POPUP_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698