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

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

Issue 8890036: Aura: Separate constrained window and translucent frame flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename workspace manager flag Created 9 years 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
Index: chrome/browser/ui/views/frame/browser_frame.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame.cc b/chrome/browser/ui/views/frame/browser_frame.cc
index b3fc5e50c8c180daec3e3e246ea568b374970403..d4dc34a0140d56db5296fdda61f61d9d33d37d9a 100644
--- a/chrome/browser/ui/views/frame/browser_frame.cc
+++ b/chrome/browser/ui/views/frame/browser_frame.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/frame/browser_frame.h"
+#include "base/command_line.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/browser/ui/browser.h"
@@ -22,6 +23,10 @@
#include "chrome/browser/chromeos/system/runtime_environment.h"
#endif
+#if defined(USE_AURA)
+#include "ui/aura/aura_switches.h"
+#endif
+
////////////////////////////////////////////////////////////////////////////////
// BrowserFrame, public:
@@ -58,6 +63,11 @@ void BrowserFrame::InitBrowserFrame() {
// activation.
params.keep_on_top = true;
}
+#if defined(USE_AURA)
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kAuraTranslucentFrames))
+ params.transparent = true;
+#endif
Init(params);
#if defined(OS_CHROMEOS) && !defined(USE_AURA)
// On ChromeOS we always want top-level windows to appear active.

Powered by Google App Engine
This is Rietveld 408576698