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

Unified Diff: content/shell/shell_browser_main_parts.cc

Issue 10991038: content-shell: Allow using the mouse the generate touch-events in linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_browser_main_parts.cc
diff --git a/content/shell/shell_browser_main_parts.cc b/content/shell/shell_browser_main_parts.cc
index 7d76221ddc176e27621dba4d063679a75745e019..5d1dc786d188b80313c1834cbdc802be6f67e060 100644
--- a/content/shell/shell_browser_main_parts.cc
+++ b/content/shell/shell_browser_main_parts.cc
@@ -29,6 +29,10 @@
#include "net/android/network_change_notifier_factory_android.h"
#endif
+#if defined(OS_LINUX) && defined(USE_AURA)
+#include "ui/base/touch/touch_factory.h"
+#endif
+
namespace content {
namespace {
@@ -79,6 +83,9 @@ ShellBrowserMainParts::~ShellBrowserMainParts() {
#if !defined(OS_MACOSX)
void ShellBrowserMainParts::PreMainMessageLoopStart() {
+#if defined(OS_LINUX) && defined(USE_AURA)
jochen (gone - plz use gerrit) 2012/09/26 18:41:57 web_contents_impl uses defined(USE_AURA) && define
sadrul 2012/09/26 19:45:54 Done.
+ ui::TouchFactory::SetTouchDeviceListFromCommandLine();
+#endif
}
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698