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

Unified Diff: ui/latency_info/latency_info.h

Issue 1871233002: Move LatencyInfo to ui/latency_info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify ui/events OWNERS 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/latency_info.h
diff --git a/ui/events/latency_info.h b/ui/latency_info/latency_info.h
similarity index 96%
rename from ui/events/latency_info.h
rename to ui/latency_info/latency_info.h
index 0001c3150ef0086f624328f5448087ecdb46ab1f..45a948185355adb000393187212750d6d464b5eb 100644
--- a/ui/events/latency_info.h
+++ b/ui/latency_info/latency_info.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef UI_EVENTS_LATENCY_INFO_H_
-#define UI_EVENTS_LATENCY_INFO_H_
+#ifndef UI_LATENCY_INFO_LATENCY_INFO_H_
+#define UI_LATENCY_INFO_LATENCY_INFO_H_
#include <stdint.h>
@@ -15,7 +15,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
-#include "ui/events/events_base_export.h"
+#include "ui/latency_info/latency_info_export.h"
#if !defined(OS_IOS)
#include "ipc/ipc_param_traits.h" // nogncheck
@@ -97,10 +97,10 @@ enum LatencyComponentType {
// but the swap failed.
INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
LATENCY_COMPONENT_TYPE_LAST =
- INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
+ INPUT_EVENT_LATENCY_TERMINATED_SWAP_FAILED_COMPONENT,
};
-class EVENTS_BASE_EXPORT LatencyInfo {
+class LATENCY_INFO_EXPORT LatencyInfo {
public:
struct LatencyComponent {
// Nondecreasing number that can be used to determine what events happened
@@ -113,7 +113,7 @@ class EVENTS_BASE_EXPORT LatencyInfo {
uint32_t event_count;
};
- struct EVENTS_BASE_EXPORT InputCoordinate {
+ struct LATENCY_INFO_EXPORT InputCoordinate {
InputCoordinate();
InputCoordinate(float x, float y);
@@ -130,7 +130,8 @@ class EVENTS_BASE_EXPORT LatencyInfo {
// component info.
typedef base::SmallMap<
std::map<std::pair<LatencyComponentType, int64_t>, LatencyComponent>,
- kTypicalMaxComponentsPerLatencyInfo> LatencyMap;
+ kTypicalMaxComponentsPerLatencyInfo>
+ LatencyMap;
LatencyInfo();
LatencyInfo(const LatencyInfo& other);
@@ -239,4 +240,4 @@ class EVENTS_BASE_EXPORT LatencyInfo {
} // namespace ui
-#endif // UI_EVENTS_LATENCY_INFO_H_
+#endif // UI_LATENCY_INFO_LATENCY_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698