summarylogtreecommitdiffstats
path: root/iwyu-add-stdint.h-for-integer-types-in-ui.patch
blob: d493ee92457914887b5c00e26ecec829c5573b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From 7815db39abc8ccf64305c5fbac7e0f88bcc8b371 Mon Sep 17 00:00:00 2001
From: Stephan Hartmann <stha09@googlemail.com>
Date: Wed, 5 Apr 2023 21:14:20 +0000
Subject: [PATCH] IWYU: add stdint.h for integer types in //ui

Bug: 957519
Change-Id: I33698e997a32c36db19775f0cf4b22fb13cee349
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4400997
Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
Reviewed-by: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126829}
---
 ui/base/prediction/kalman_filter.h | 2 ++
 ui/events/types/scroll_types.h     | 2 ++
 ui/gfx/geometry/linear_gradient.h  | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/ui/base/prediction/kalman_filter.h b/ui/base/prediction/kalman_filter.h
index bee3f946e9c..88a3eb5e95c 100644
--- a/ui/base/prediction/kalman_filter.h
+++ b/ui/base/prediction/kalman_filter.h
@@ -5,6 +5,8 @@
 #ifndef UI_BASE_PREDICTION_KALMAN_FILTER_H_
 #define UI_BASE_PREDICTION_KALMAN_FILTER_H_
 
+#include <stdint.h>
+
 #include "base/component_export.h"
 #include "ui/gfx/geometry/matrix3_f.h"
 
diff --git a/ui/events/types/scroll_types.h b/ui/events/types/scroll_types.h
index be6b2779f41..aac53c4bea7 100644
--- a/ui/events/types/scroll_types.h
+++ b/ui/events/types/scroll_types.h
@@ -5,6 +5,8 @@
 #ifndef UI_EVENTS_TYPES_SCROLL_TYPES_H_
 #define UI_EVENTS_TYPES_SCROLL_TYPES_H_
 
+#include <stdint.h>
+
 namespace ui {
 
 enum class ScrollGranularity : uint8_t {
diff --git a/ui/gfx/geometry/linear_gradient.h b/ui/gfx/geometry/linear_gradient.h
index 65cd4cb07c7..d337a7de29b 100644
--- a/ui/gfx/geometry/linear_gradient.h
+++ b/ui/gfx/geometry/linear_gradient.h
@@ -5,6 +5,8 @@
 #ifndef UI_GFX_LINEAR_GRADIENT_H_
 #define UI_GFX_LINEAR_GRADIENT_H_
 
+#include <stdint.h>
+
 #include <array>
 #include <string>