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

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

Issue 11360144: Converts some of the omnibox related classes to support multiple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_initialized Created 8 years, 1 month 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 c5d5b7881696e7da047be5a45d7c0c806c5cf2e0..f0b8cb4a7e5413ffd897f1a9c810344618375ec8 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_result_view.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
@@ -47,7 +47,7 @@ class OmniboxResultView : public views::View,
const gfx::Font& bold_font);
virtual ~OmniboxResultView();
- static SkColor GetColor(ResultViewState state, ColorKind kind);
+ SkColor GetColor(ResultViewState state, ColorKind kind) const;
// Updates the match used to paint the contents of this result view. We copy
// the match so that we can continue to paint the last result even after the
@@ -98,6 +98,10 @@ class OmniboxResultView : public views::View,
struct RunData;
typedef std::vector<RunData> Runs;
+ // Common initialization code of the colors returned by GetColors().
+ static void CommonInitColors(const ui::NativeTheme* theme,
+ SkColor colors[][NUM_KINDS]);
+
// Predicate functions for use when sorting the runs.
static bool SortRunsLogically(const RunData& lhs, const RunData& rhs);
static bool SortRunsVisually(const RunData& lhs, const RunData& rhs);
« 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