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

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

Issue 1300843003: Change width of rows in material design omnibox dropdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change left/right to start/end Created 5 years, 4 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 <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const base::string16& text, 165 const base::string16& text,
166 int text_type); 166 int text_type);
167 167
168 // AppendAnswerText will break up the |text| into bold and non-bold pieces 168 // AppendAnswerText will break up the |text| into bold and non-bold pieces
169 // and pass each to this helper with the correct |is_bold| value. 169 // and pass each to this helper with the correct |is_bold| value.
170 void AppendAnswerTextHelper(gfx::RenderText* destination, 170 void AppendAnswerTextHelper(gfx::RenderText* destination,
171 const base::string16& text, 171 const base::string16& text,
172 int text_type, 172 int text_type,
173 bool is_bold); 173 bool is_bold);
174 174
175 // Returns the necessary margin, if any, at the start and end of the view.
176 // This allows us to keep the icon and text in the view aligned with the
177 // location bar contents. For a left-to-right language, StartMargin()
178 // and EndMargin() correspond to the left and right margins, respectively.
179 int StartMargin() const;
180 int EndMargin() const;
181
175 static int default_icon_size_; 182 static int default_icon_size_;
176 183
177 // This row's model and model index. 184 // This row's model and model index.
178 OmniboxPopupContentsView* model_; 185 OmniboxPopupContentsView* model_;
179 size_t model_index_; 186 size_t model_index_;
180 187
181 LocationBarView* location_bar_view_; 188 LocationBarView* location_bar_view_;
182 189
183 const gfx::FontList font_list_; 190 const gfx::FontList font_list_;
184 int font_height_; 191 int font_height_;
(...skipping 22 matching lines...) Expand all
207 mutable scoped_ptr<gfx::RenderText> separator_rendertext_; 214 mutable scoped_ptr<gfx::RenderText> separator_rendertext_;
208 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_; 215 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_;
209 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_; 216 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_;
210 217
211 mutable int separator_width_; 218 mutable int separator_width_;
212 219
213 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); 220 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView);
214 }; 221 };
215 222
216 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 223 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_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