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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc

Issue 967693002: Clang fixes for chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h" 5 #include "ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h"
6 6
7 #include <time.h> 7 #include <time.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/process/launch.h" 13 #include "base/process/launch.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/threading/worker_pool.h" 17 #include "base/threading/worker_pool.h"
18 #include "ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h" 18 #include "ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.h"
19 19
20 namespace ui { 20 namespace ui {
21 21
22 namespace { 22 namespace {
23 23
24 // Binary paths. 24 // Binary paths.
25 const char kGzipCommand[] = "/bin/gzip"; 25 const char kGzipCommand[] = "/bin/gzip";
26 const char kDateCommand[] = "/bin/date";
27 26
28 const size_t kTouchLogTimestampMaxSize = 80; 27 const size_t kTouchLogTimestampMaxSize = 80;
29 28
30 // Return the values in an array in one string. Used for touch logging. 29 // Return the values in an array in one string. Used for touch logging.
31 template <typename T> 30 template <typename T>
32 std::string DumpArrayProperty(const std::vector<T>& value, const char* format) { 31 std::string DumpArrayProperty(const std::vector<T>& value, const char* format) {
33 std::string ret; 32 std::string ret;
34 for (size_t i = 0; i < value.size(); ++i) { 33 for (size_t i = 0; i < value.size(); ++i) {
35 if (i > 0) 34 if (i > 0)
36 ret.append(", "); 35 ret.append(", ");
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 } 210 }
212 211
213 // Compress touchpad/mouse logs on another thread and return. 212 // Compress touchpad/mouse logs on another thread and return.
214 base::WorkerPool::PostTaskAndReply( 213 base::WorkerPool::PostTaskAndReply(
215 FROM_HERE, 214 FROM_HERE,
216 base::Bind(&CompressDumpedLog, base::Passed(&log_paths_to_be_compressed)), 215 base::Bind(&CompressDumpedLog, base::Passed(&log_paths_to_be_compressed)),
217 base::Bind(reply, base::Passed(&log_paths)), true /* task_is_slow */); 216 base::Bind(reply, base::Passed(&log_paths)), true /* task_is_slow */);
218 } 217 }
219 218
220 } // namespace ui 219 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698