| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/system/input_device_settings.h" | 5 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.h> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/chromeos/chromeos_version.h" | 12 #include "base/chromeos/chromeos_version.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/message_loop.h" | 16 #include "base/message_loop.h" |
| 17 #include "base/process_util.h" | 17 #include "base/process_util.h" |
| 18 #include "base/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 19 #include "base/threading/sequenced_worker_pool.h" | 19 #include "base/threading/sequenced_worker_pool.h" |
| 20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 21 | 21 |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 namespace system { | 23 namespace system { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 const char kTpControl[] = "/opt/google/touchpad/tpcontrol"; | 26 const char kTpControl[] = "/opt/google/touchpad/tpcontrol"; |
| 27 const char kMouseControl[] = "/opt/google/mouse/mousecontrol"; | 27 const char kMouseControl[] = "/opt/google/mouse/mousecontrol"; |
| 28 | 28 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 | 157 |
| 158 void SetPrimaryButtonRight(bool right) { | 158 void SetPrimaryButtonRight(bool right) { |
| 159 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 159 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
| 160 ExecuteScript(3, kMouseControl, "swap_left_right", right ? "1" : "0"); | 160 ExecuteScript(3, kMouseControl, "swap_left_right", right ? "1" : "0"); |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace mouse_settings | 163 } // namespace mouse_settings |
| 164 | 164 |
| 165 } // namespace system | 165 } // namespace system |
| 166 } // namespace chromeos | 166 } // namespace chromeos |
| OLD | NEW |