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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc

Issue 290553002: Refactor menu dependency on aura/wm SetShadowType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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/views/controls/menu/menu_host.cc » ('j') | ui/views/widget/widget.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
index 1be2fd95de452510369ec9e0549937ae1673ef92..87086d15cfde2e624c5386f79792efe9bdf32c45 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
@@ -26,7 +26,6 @@
#include "ui/views/controls/webview/webview.h"
#include "ui/views/widget/widget.h"
#include "ui/wm/core/easy_resize_window_targeter.h"
-#include "ui/wm/core/shadow_types.h"
#if defined(OS_LINUX)
#include "chrome/browser/shell_integration_linux.h"
@@ -256,7 +255,7 @@ void ChromeNativeAppWindowViews::InitializeDefaultWindow(
// the OS supplied methods. Therefore we do not use a shadow for it.
// TODO(skuhne): If we run into an application which should have a shadow
// but does not have, a new attribute has to be added.
- wm::SetShadowType(widget()->GetNativeWindow(), wm::SHADOW_TYPE_NONE);
+ widget()->SetHasActivationShadow(false);
}
// Register accelarators supported by app windows.
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_host.cc » ('j') | ui/views/widget/widget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698