summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authortimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-19 18:07:57 +0000
committertimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-19 18:07:57 +0000
commit4c063e76b668154b79dd28ea256212be89376fc3 (patch)
treeba81115b7ee855b6f1aa65906c3c737ed77270d3 /chrome
parent93ffff6b419728899db2c2c273a29a6d0b6a17b0 (diff)
downloadchromium_src-4c063e76b668154b79dd28ea256212be89376fc3.zip
chromium_src-4c063e76b668154b79dd28ea256212be89376fc3.tar.gz
chromium_src-4c063e76b668154b79dd28ea256212be89376fc3.tar.bz2
Enable Device Motion API on all platforms by default.
After this change the JavaScript expression 'window.DeviceMotionEvent' will start evaluating to true on all platforms. For Android, Windows and Mac devices with accelerometer and gyroscope sensors events will start being delivered. For devices without such sensors, and for other platforms (e.g. Chrome OS, Linux) which do not have corresponding sensor data fetcher implementations, we'll deliver a one-shot event with all properties set the NULL, per the specification. This patch also removes the obsolete 'enable-device-motion' flag, instead the 'disable-device-motion' flag is available. BUG=135804 Review URL: https://chromiumcodereview.appspot.com/24220002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224164 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/app/generated_resources.grd6
-rw-r--r--chrome/browser/about_flags.cc7
2 files changed, 0 insertions, 13 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index 36dc935..ebee97a 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -6619,12 +6619,6 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_DISABLE_APP_LIST_DESCRIPTION" desc="Description of the flag to disable the app list on startup.">
Disable the app launcher on startup. While this flag is set the launcher will be disabled every time Chrome starts. This is used for testing the app launcher install flow.
</message>
- <message name="IDS_FLAGS_ENABLE_DEVICE_MOTION_NAME" desc="Name of the flag to enable device motion DOM events.">
- Enable device motion.
- </message>
- <message name="IDS_FLAGS_ENABLE_DEVICE_MOTION_DESCRIPTION" desc="Description for the flag to enable device motion.">
- Enables device motion DOM events in JavaScript.
- </message>
<message name="IDS_FLAGS_DISABLE_USER_IMAGE_SYNC_NAME" desc="Name of the flag to disable sync of user account image.">
Disable avatar sync.
</message>
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 6719ab8..965bfbd3 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1681,13 +1681,6 @@ const Experiment kExperiments[] = {
MULTI_VALUE_TYPE(kMapImageChoices)
},
{
- "enable-device-motion",
- IDS_FLAGS_ENABLE_DEVICE_MOTION_NAME,
- IDS_FLAGS_ENABLE_DEVICE_MOTION_DESCRIPTION,
- kOsDesktop,
- SINGLE_VALUE_TYPE(switches::kEnableDeviceMotion)
- },
- {
"enable-add-to-homescreen",
IDS_FLAGS_ENABLE_ADD_TO_HOMESCREEN_NAME,
IDS_FLAGS_ENABLE_ADD_TO_HOMESCREEN_DESCRIPTION,