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

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

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 10 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
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_RESULT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 const gfx::Rect& text_bounds() const { return text_bounds_; } 127 const gfx::Rect& text_bounds() const { return text_bounds_; }
128 128
129 private: 129 private:
130 // views::View: 130 // views::View:
131 const char* GetClassName() const override; 131 const char* GetClassName() const override;
132 132
133 gfx::ImageSkia GetIcon() const; 133 gfx::ImageSkia GetIcon() const;
134 134
135 // Utility function for creating vector icons. 135 // Utility function for creating vector icons.
136 gfx::ImageSkia GetVectorIcon(gfx::VectorIconId icon_id) const; 136 gfx::ImageSkia GetVectorIcon(const gfx::VectorIcon& icon_id) const;
137 137
138 // Whether to render only the keyword match. Returns true if |match_| has an 138 // Whether to render only the keyword match. Returns true if |match_| has an
139 // associated keyword match that has been animated so close to the start that 139 // associated keyword match that has been animated so close to the start that
140 // the keyword match will hide even the icon of the regular match. 140 // the keyword match will hide even the icon of the regular match.
141 bool ShowOnlyKeywordMatch() const; 141 bool ShowOnlyKeywordMatch() const;
142 142
143 // Initializes |contents_rendertext_| if it is NULL. 143 // Initializes |contents_rendertext_| if it is NULL.
144 void InitContentsRenderTextIfNecessary() const; 144 void InitContentsRenderTextIfNecessary() const;
145 145
146 // views::View: 146 // views::View:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 mutable std::unique_ptr<gfx::RenderText> separator_rendertext_; 212 mutable std::unique_ptr<gfx::RenderText> separator_rendertext_;
213 mutable std::unique_ptr<gfx::RenderText> keyword_contents_rendertext_; 213 mutable std::unique_ptr<gfx::RenderText> keyword_contents_rendertext_;
214 mutable std::unique_ptr<gfx::RenderText> keyword_description_rendertext_; 214 mutable std::unique_ptr<gfx::RenderText> keyword_description_rendertext_;
215 215
216 mutable int separator_width_; 216 mutable int separator_width_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); 218 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView);
219 }; 219 };
220 220
221 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 221 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698