summaryrefslogtreecommitdiffstats
path: root/ui/base
diff options
context:
space:
mode:
authorvarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 12:11:49 +0000
committervarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 12:11:49 +0000
commitffa4e448cf15245002c286ea781717426aa3eff4 (patch)
treeca251556ea039f07dfc5a4bb96817aaaac8c656a /ui/base
parent186b661f7383039cecfb392643349eb0c5fce2a8 (diff)
downloadchromium_src-ffa4e448cf15245002c286ea781717426aa3eff4.zip
chromium_src-ffa4e448cf15245002c286ea781717426aa3eff4.tar.gz
chromium_src-ffa4e448cf15245002c286ea781717426aa3eff4.tar.bz2
aura: Enable touch initiated drag and drop.
Touch drag/drop in aura follows the following rules: 1. Initiate drag on long press gesture. Give the user a visual cue by showing a scaled up drag image. 2. Do not initiate dnd if there is no drag image. 3. If, after initiating a drag, the user lifts up their finger without moving, cancel the drag and show a context menu (this is implemented using the long tap gesture). BUG=114755 Review URL: https://chromiumcodereview.appspot.com/11368131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base')
-rw-r--r--ui/base/ui_base_switches.cc2
-rw-r--r--ui/base/ui_base_switches.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/ui/base/ui_base_switches.cc b/ui/base/ui_base_switches.cc
index bddd721..c412f72 100644
--- a/ui/base/ui_base_switches.cc
+++ b/ui/base/ui_base_switches.cc
@@ -91,4 +91,6 @@ const char kDisableCoreAnimationPlugins[] =
const char kTouchDevices[] = "touch-devices";
#endif
+const char kEnableTouchDragDrop[] = "enable-touch-drag-drop";
+
} // namespace switches
diff --git a/ui/base/ui_base_switches.h b/ui/base/ui_base_switches.h
index 352de96..ebf3042 100644
--- a/ui/base/ui_base_switches.h
+++ b/ui/base/ui_base_switches.h
@@ -49,6 +49,7 @@ UI_EXPORT extern const char kDisableCoreAnimationPlugins[];
UI_EXPORT extern const char kTouchDevices[];
#endif
+UI_EXPORT extern const char kEnableTouchDragDrop[];
} // namespace switches
#endif // UI_BASE_UI_BASE_SWITCHES_H_