OLD | NEW |
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 "components/omnibox/browser/autocomplete_match.h" | 10 #include "components/omnibox/browser/autocomplete_match.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 const ACMatchClassifications& classifications, | 116 const ACMatchClassifications& classifications, |
117 bool force_dim) const; | 117 bool force_dim) const; |
118 | 118 |
119 const gfx::Rect& text_bounds() const { return text_bounds_; } | 119 const gfx::Rect& text_bounds() const { return text_bounds_; } |
120 | 120 |
121 private: | 121 private: |
122 // views::View: | 122 // views::View: |
123 const char* GetClassName() const override; | 123 const char* GetClassName() const override; |
124 | 124 |
125 gfx::ImageSkia GetIcon() const; | 125 gfx::ImageSkia GetIcon() const; |
| 126 |
126 const gfx::ImageSkia* GetKeywordIcon() const; | 127 const gfx::ImageSkia* GetKeywordIcon() const; |
127 | 128 |
128 // Whether to render only the keyword match. Returns true if |match_| has an | 129 // Whether to render only the keyword match. Returns true if |match_| has an |
129 // associated keyword match that has been animated so close to the start that | 130 // associated keyword match that has been animated so close to the start that |
130 // the keyword match will hide even the icon of the regular match. | 131 // the keyword match will hide even the icon of the regular match. |
131 bool ShowOnlyKeywordMatch() const; | 132 bool ShowOnlyKeywordMatch() const; |
132 | 133 |
133 // Resets all RenderTexts for contents and description of the |match_| and its | 134 // Resets all RenderTexts for contents and description of the |match_| and its |
134 // associated keyword match. | 135 // associated keyword match. |
135 void ResetRenderTexts() const; | 136 void ResetRenderTexts() const; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 mutable scoped_ptr<gfx::RenderText> separator_rendertext_; | 218 mutable scoped_ptr<gfx::RenderText> separator_rendertext_; |
218 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_; | 219 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_; |
219 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_; | 220 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_; |
220 | 221 |
221 mutable int separator_width_; | 222 mutable int separator_width_; |
222 | 223 |
223 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); | 224 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); |
224 }; | 225 }; |
225 | 226 |
226 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ | 227 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ |
OLD | NEW |