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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_aura.cc

Issue 8555025: aura: Draw drop shadows under browsers and menus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | ui/aura/aura.gyp » ('j') | ui/aura/shadow.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame_aura.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_aura.cc b/chrome/browser/ui/views/frame/browser_frame_aura.cc
index 3b55088a589f1215d806fcc6c988b61814160c86..472b15fdaea0ccb6f24f9dc6292ff40d72952565 100644
--- a/chrome/browser/ui/views/frame/browser_frame_aura.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_aura.cc
@@ -13,6 +13,7 @@
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/aura/aura_switches.h"
+#include "ui/aura/window.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/theme_provider.h"
#include "ui/gfx/canvas.h"
@@ -169,6 +170,8 @@ BrowserFrameAura::BrowserFrameAura(BrowserFrame* browser_frame,
browser_view_->layer()->SetFillsBoundsOpaquely(false);
// Background only needed for Aura-style windows.
browser_view_->set_background(new ToolbarBackground(browser_view));
+ } else {
+ GetNativeWindow()->SetShadowVisible(true);
Daniel Erat 2011/11/15 01:05:04 Oshima recommended setting a new property for this
}
}
« no previous file with comments | « no previous file | ui/aura/aura.gyp » ('j') | ui/aura/shadow.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698