summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 23:57:50 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-03 23:57:50 +0000
commit8cc10df87807f6712821fc5bdb8cfbd7e6fca2fd (patch)
tree03cea4f4365dcda400d761e547c364a6bac0cae8
parent1648b290abe12461fafd9c1fa6e3104fb127d511 (diff)
downloadchromium_src-8cc10df87807f6712821fc5bdb8cfbd7e6fca2fd.zip
chromium_src-8cc10df87807f6712821fc5bdb8cfbd7e6fca2fd.tar.gz
chromium_src-8cc10df87807f6712821fc5bdb8cfbd7e6fca2fd.tar.bz2
Aura: Add --aura-windows to about:flags
This option turns on translucent window frames and constrained dragging. BUG=none TEST=none Review URL: http://codereview.chromium.org/8430041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108583 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/generated_resources.grd6
-rw-r--r--chrome/browser/about_flags.cc13
2 files changed, 19 insertions, 0 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 3c62899..1d980d8 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -4865,6 +4865,12 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_ENABLE_MEDIA_SOURCE_DESCRIPTION" desc="Description for the flag to enable the Media Source API on &lt;video&gt; elements.">
Enable experimental Media Source API on the video elements. This API allows JavaScript to send media data directly to a video element.
</message>
+ <message name="IDS_FLAGS_AURA_WINDOWS_NAME" desc="Title for the flag to enable fancy translucent windows.">
+ Translucent windows
+ </message>
+ <message name="IDS_FLAGS_AURA_WINDOWS_DESCRIPTION" desc="Description for the flag to enable fancy translucent windows.">
+ Enable the "Aura" style for translucent window frames and constrained window dragging.
+ </message>
<!-- Crashes -->
<message name="IDS_CRASHES_TITLE" desc="Title for the chrome://crashes page.">
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 638e0be..cf1deaf 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -25,6 +25,10 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/gfx/gl/gl_switches.h"
+#if defined(USE_AURA)
+#include "ui/aura/aura_switches.h"
+#endif
+
namespace about_flags {
// Macros to simplify specifying the type.
@@ -443,6 +447,15 @@ const Experiment kExperiments[] = {
kOsAll,
SINGLE_VALUE_TYPE(switches::kEnableMediaSource)
},
+#if defined(USE_AURA)
+ {
+ "aura-windows",
+ IDS_FLAGS_AURA_WINDOWS_NAME,
+ IDS_FLAGS_AURA_WINDOWS_DESCRIPTION,
+ kOsWin | kOsLinux | kOsCrOS,
+ SINGLE_VALUE_TYPE(switches::kAuraWindows)
+ },
+#endif
};
const Experiment* experiments = kExperiments;