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 24 matching lines...) Expand all Loading... |
35 HOVERED, | 35 HOVERED, |
36 SELECTED, | 36 SELECTED, |
37 NUM_STATES | 37 NUM_STATES |
38 }; | 38 }; |
39 | 39 |
40 enum ColorKind { | 40 enum ColorKind { |
41 BACKGROUND = 0, | 41 BACKGROUND = 0, |
42 TEXT, | 42 TEXT, |
43 DIMMED_TEXT, | 43 DIMMED_TEXT, |
44 URL, | 44 URL, |
45 DIVIDER, | |
46 NUM_KINDS | 45 NUM_KINDS |
47 }; | 46 }; |
48 | 47 |
49 OmniboxResultView(OmniboxPopupContentsView* model, | 48 OmniboxResultView(OmniboxPopupContentsView* model, |
50 int model_index, | 49 int model_index, |
51 LocationBarView* location_bar_view, | 50 LocationBarView* location_bar_view, |
52 const gfx::FontList& font_list); | 51 const gfx::FontList& font_list); |
53 ~OmniboxResultView() override; | 52 ~OmniboxResultView() override; |
54 | 53 |
55 SkColor GetColor(ResultViewState state, ColorKind kind) const; | 54 SkColor GetColor(ResultViewState state, ColorKind kind) const; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 mutable scoped_ptr<gfx::RenderText> separator_rendertext_; | 227 mutable scoped_ptr<gfx::RenderText> separator_rendertext_; |
229 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_; | 228 mutable scoped_ptr<gfx::RenderText> keyword_contents_rendertext_; |
230 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_; | 229 mutable scoped_ptr<gfx::RenderText> keyword_description_rendertext_; |
231 | 230 |
232 mutable int separator_width_; | 231 mutable int separator_width_; |
233 | 232 |
234 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); | 233 DISALLOW_COPY_AND_ASSIGN(OmniboxResultView); |
235 }; | 234 }; |
236 | 235 |
237 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ | 236 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_ |
OLD | NEW |