diff options
author | zturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-29 13:02:15 +0000 |
---|---|---|
committer | zturner@chromium.org <zturner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-29 13:02:15 +0000 |
commit | 9a8a76dea83aec91deac43479dd6c6f497510c47 (patch) | |
tree | 78c8e25bc2d702172766cdf934f86b73b54a75de /ui/base/win/shell.cc | |
parent | 0f753fa54128a632eac3274899b228e5d95db462 (diff) | |
download | chromium_src-9a8a76dea83aec91deac43479dd6c6f497510c47.zip chromium_src-9a8a76dea83aec91deac43479dd6c6f497510c47.tar.gz chromium_src-9a8a76dea83aec91deac43479dd6c6f497510c47.tar.bz2 |
When transparency is required with Aura enabled and DWM composition disabled, don't use toplevel windows.
R=scottmg
BUG=225634
Review URL: https://chromiumcodereview.appspot.com/17621005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/win/shell.cc')
-rw-r--r-- | ui/base/win/shell.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/base/win/shell.cc b/ui/base/win/shell.cc index 5e993e5..df90108 100644 --- a/ui/base/win/shell.cc +++ b/ui/base/win/shell.cc @@ -9,6 +9,7 @@ #include <propkey.h> #include <shellapi.h> +#include "base/command_line.h" #include "base/files/file_path.h" #include "base/native_library.h" #include "base/strings/string_util.h" @@ -16,6 +17,7 @@ #include "base/win/scoped_comptr.h" #include "base/win/win_util.h" #include "base/win/windows_version.h" +#include "ui/base/ui_base_switches.h" namespace ui { namespace win { @@ -115,6 +117,14 @@ void SetRelaunchDetailsForWindow(const string16& relaunch_command, } bool IsAeroGlassEnabled() { + // For testing in Win8 (where it is not possible to disable composition) the + // user can specify this command line switch to mimic the behavior. In this + // mode, cross-HWND transparency is not supported and various types of + // widgets fallback to more simplified rendering behavior. + if (CommandLine::ForCurrentProcess()->HasSwitch( + switches::kDisableDwmComposition)) + return false; + if (base::win::GetVersion() < base::win::VERSION_VISTA) return false; // If composition is not enabled, we behave like on XP. |