Descriptionviews: Fix linux omnibox colors by refactoring omnibox_result_view.cc.
Previously, colors in the omnibox were handled by checking if the result
of GetNativeTheme() was NativeThemeAura::instance(). However, this meant
in practice that there was an assumption that the native theme could
only be NativeThemeWin or NativeThemeAura. This assumption meant that we
did different things regarding omnibox colors on Win, Aura and Linux
Aura/GTK.
This patch adds color constants for the various colors used in the
omnibox. It then separates the existing initialization code into
NativeThemeWin and NativeThemeAura, as appropriate. Finally, it adds a
NativeThemeGtk2, which matches the current GTK port.
BUG=318484
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261875
Patch Set 1 #Patch Set 2 : Fix windows compile #Patch Set 3 : Fix indentation on the table. #
Total comments: 12
Patch Set 4 : msw nits #Patch Set 5 : Move table out of method so arraysize() works. #
Messages
Total messages: 11 (0 generated)
|