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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.h

Issue 1000163005: [AiS] using const for vertical padding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_result_view.h
diff --git a/chrome/browser/ui/views/omnibox/omnibox_result_view.h b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
index 099027c6c88594f248a8c95723570b1f8d1ff9f1..7a3c3f0d42c43c04956b2dfbd6e33c25a9c4f31c 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
@@ -47,6 +47,10 @@ class OmniboxResultView : public views::View,
NUM_KINDS
};
+ // The minimum distance between the top and bottom of the text and the
+ // top or bottom of the row.
+ static const int kMinimumTextVerticalPadding = 3;
+
OmniboxResultView(OmniboxPopupContentsView* model,
int model_index,
LocationBarView* location_bar_view,
@@ -117,9 +121,6 @@ class OmniboxResultView : public views::View,
void set_edge_item_padding(int value) { edge_item_padding_ = value; }
void set_item_padding(int value) { item_padding_ = value; }
- void set_minimum_text_vertical_padding(int value) {
- minimum_text_vertical_padding_ = value;
- }
private:
// views::View:
@@ -160,7 +161,6 @@ class OmniboxResultView : public views::View,
// Default values cached here, may be overridden using the setters above.
int edge_item_padding_;
int item_padding_;
- int minimum_text_vertical_padding_;
// This row's model and model index.
OmniboxPopupContentsView* model_;
« 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