summaryrefslogtreecommitdiffstats
path: root/ui/native_theme
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 20:12:24 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-27 20:12:24 +0000
commitc347648d9cd0fa9c52683c21d4f06ab12b4d8f3c (patch)
tree3b857cbef6a50837f6d0a6657a1922e6f87edda5 /ui/native_theme
parent34c026b71d89c7415532d1b0943ded0fd34b531d (diff)
downloadchromium_src-c347648d9cd0fa9c52683c21d4f06ab12b4d8f3c.zip
chromium_src-c347648d9cd0fa9c52683c21d4f06ab12b4d8f3c.tar.gz
chromium_src-c347648d9cd0fa9c52683c21d4f06ab12b4d8f3c.tar.bz2
Make tooltips have their own toplevel window on Linux. This allows tooltips for bookmarks in a menu not to be clipped.
BUG=353533 TEST=Manual, see bug Review URL: https://codereview.chromium.org/290573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@273014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/native_theme')
-rw-r--r--ui/native_theme/fallback_theme.cc3
-rw-r--r--ui/native_theme/native_theme.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/ui/native_theme/fallback_theme.cc b/ui/native_theme/fallback_theme.cc
index 3e7b350..d995d71 100644
--- a/ui/native_theme/fallback_theme.cc
+++ b/ui/native_theme/fallback_theme.cc
@@ -68,6 +68,7 @@ SkColor FallbackTheme::GetSystemColor(ColorId color_id) const {
kTextfieldSelectionBackgroundFocused, 0xdd);
// Tooltip
static const SkColor kTooltipBackground = 0xFFFFFFCC;
+ static const SkColor kTooltipTextColor = kLabelEnabledColor;
// Tree
static const SkColor kTreeBackground = SK_ColorWHITE;
static const SkColor kTreeTextColor = SK_ColorBLACK;
@@ -189,6 +190,8 @@ SkColor FallbackTheme::GetSystemColor(ColorId color_id) const {
// Tooltip
case kColorId_TooltipBackground:
return kTooltipBackground;
+ case kColorId_TooltipText:
+ return kTooltipTextColor;
// Tree
case kColorId_TreeBackground:
diff --git a/ui/native_theme/native_theme.h b/ui/native_theme/native_theme.h
index eec9d63..01fccea 100644
--- a/ui/native_theme/native_theme.h
+++ b/ui/native_theme/native_theme.h
@@ -271,6 +271,7 @@ class NATIVE_THEME_EXPORT NativeTheme {
kColorId_TextfieldSelectionBackgroundFocused,
// Tooltip
kColorId_TooltipBackground,
+ kColorId_TooltipText,
// Tree
kColorId_TreeBackground,
kColorId_TreeText,