summaryrefslogtreecommitdiffstats
path: root/ui/views
diff options
context:
space:
mode:
authorderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 23:45:52 +0000
committerderat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 23:45:52 +0000
commitb43a8979ea49b29dad4617c1a718493dd3973bf0 (patch)
tree1b7093683c5250480b36ee67802f9bdb1717427a /ui/views
parent33ade1dbecd20b268cd725be938f8caccc71fcda (diff)
downloadchromium_src-b43a8979ea49b29dad4617c1a718493dd3973bf0.zip
chromium_src-b43a8979ea49b29dad4617c1a718493dd3973bf0.tar.gz
chromium_src-b43a8979ea49b29dad4617c1a718493dd3973bf0.tar.bz2
aura: Draw shadows around tooltip windows.
Also, add padding around the tooltip text and disable the border when shadows are enabled. I'm also updating the existing shadow code in aura_shell to clip corner images as needed when they're too large to fit within the requested size. BUG=106507 TEST=added Review URL: http://codereview.chromium.org/8821028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113294 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views')
-rw-r--r--ui/views/widget/native_widget_aura.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index 2bdba97..aca71bd 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -168,7 +168,8 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
static_cast<aura::WindowDragDropDelegate*>(this));
}
- if (window_type == Widget::InitParams::TYPE_MENU)
+ if (window_type == Widget::InitParams::TYPE_MENU ||
+ window_type == Widget::InitParams::TYPE_TOOLTIP)
window_->SetIntProperty(aura::kShadowTypeKey,
aura::SHADOW_TYPE_RECTANGULAR);
}