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

Unified Diff: ui/latency_info/ipc/latency_info_param_traits.cc

Issue 1871233002: Move LatencyInfo to ui/latency_info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix some more gyp issues Created 4 years, 8 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
Index: ui/latency_info/ipc/latency_info_param_traits.cc
diff --git a/ui/events/ipc/latency_info_param_traits.cc b/ui/latency_info/ipc/latency_info_param_traits.cc
similarity index 77%
rename from ui/events/ipc/latency_info_param_traits.cc
rename to ui/latency_info/ipc/latency_info_param_traits.cc
index a472307407a3d7883991bf501a383342c8f6fa8b..22785fcf03d995329088984b301b6aa8219205b8 100644
--- a/ui/events/ipc/latency_info_param_traits.cc
+++ b/ui/latency_info/ipc/latency_info_param_traits.cc
@@ -2,31 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/events/ipc/latency_info_param_traits_macros.h"
+#include "ui/latency_info/ipc/latency_info_param_traits_macros.h"
// Generate param traits write methods.
#include "ipc/param_traits_write_macros.h"
namespace IPC {
-#undef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_
-#include "ui/events/ipc/latency_info_param_traits_macros.h"
+#undef UI_LATENCY_INFO_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_
+#include "ui/latency_info/ipc/latency_info_param_traits_macros.h"
} // namespace IPC
// Generate param traits read methods.
#include "ipc/param_traits_read_macros.h"
namespace IPC {
-#undef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_
-#include "ui/events/ipc/latency_info_param_traits_macros.h"
+#undef UI_LATENCY_INFO_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_
+#include "ui/latency_info/ipc/latency_info_param_traits_macros.h"
} // namespace IPC
// Generate param traits log methods.
#include "ipc/param_traits_log_macros.h"
namespace IPC {
-#undef UI_EVENTS_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_
-#include "ui/events/ipc/latency_info_param_traits_macros.h"
+#undef UI_LATENCY_INFO_IPC_LATENCY_INFO_PARAM_TRAITS_MACROS_H_
+#include "ui/latency_info/ipc/latency_info_param_traits_macros.h"
} // namespace IPC
// Implemetation for ParamTraits<ui::LatencyInfo>.
-#include "ui/events/ipc/latency_info_param_traits.h"
+#include "ui/latency_info/ipc/latency_info_param_traits.h"
namespace IPC {
void ParamTraits<ui::LatencyInfo>::Write(base::Pickle* m, const param_type& p) {
@@ -54,7 +54,7 @@ bool ParamTraits<ui::LatencyInfo>::Read(const base::Pickle* m,
return false;
for (size_t i = 0; i < input_coordinates_size; i++) {
if (!ReadParam(m, iter, &input_coordinates))
- return false;
+ return false;
if (!p->AddInputCoordinate(input_coordinates))
return false;
}
@@ -67,8 +67,7 @@ bool ParamTraits<ui::LatencyInfo>::Read(const base::Pickle* m,
return true;
}
-void ParamTraits<ui::LatencyInfo>::Log(const param_type& p,
- std::string* l) {
+void ParamTraits<ui::LatencyInfo>::Log(const param_type& p, std::string* l) {
LogParam(p.trace_name_, l);
l->append(" ");
LogParam(p.latency_components_, l);
« no previous file with comments | « ui/latency_info/ipc/latency_info_param_traits.h ('k') | ui/latency_info/ipc/latency_info_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698