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

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

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 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 <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 const gfx::Rect& text_bounds() const { return text_bounds_; } 112 const gfx::Rect& text_bounds() const { return text_bounds_; }
113 113
114 void set_edge_item_padding(int value) { edge_item_padding_ = value; } 114 void set_edge_item_padding(int value) { edge_item_padding_ = value; }
115 void set_item_padding(int value) { item_padding_ = value; } 115 void set_item_padding(int value) { item_padding_ = value; }
116 void set_minimum_text_vertical_padding(int value) { 116 void set_minimum_text_vertical_padding(int value) {
117 minimum_text_vertical_padding_ = value; 117 minimum_text_vertical_padding_ = value;
118 } 118 }
119 119
120 private: 120 private:
121 // views::View:
122 const char* GetClassName() const override;
123
121 gfx::ImageSkia GetIcon() const; 124 gfx::ImageSkia GetIcon() const;
122 const gfx::ImageSkia* GetKeywordIcon() const; 125 const gfx::ImageSkia* GetKeywordIcon() const;
123 126
124 // Whether to render only the keyword match. Returns true if |match_| has an 127 // Whether to render only the keyword match. Returns true if |match_| has an
125 // associated keyword match that has been animated so close to the start that 128 // associated keyword match that has been animated so close to the start that
126 // the keyword match will hide even the icon of the regular match. 129 // the keyword match will hide even the icon of the regular match.
127 bool ShowOnlyKeywordMatch() const; 130 bool ShowOnlyKeywordMatch() const;
128 131
129 // Resets all RenderTexts for contents and description of the |match_| and its 132 // Resets all RenderTexts for contents and description of the |match_| and its
130 // associated keyword match. 133 // associated keyword match.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 mutable scoped_ptr<gfx::RenderText> separator_rendertext_; 188 mutable scoped_ptr<gfx::RenderText> separator_rendertext_;
186 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_; 189 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_;
187 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_; 190 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_;
188 191
189 mutable int separator_width_; 192 mutable int separator_width_;
190 193
191 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); 194 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView);
192 }; 195 };
193 196
194 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ 197 #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