archrelease: copy trunk to extra-x86_64
[arch-packages.git] / chromium / trunk / iwyu-add-stdint.h-for-integer-types-in-ui.patch
blobd493ee92457914887b5c00e26ecec829c5573b55
1 From 7815db39abc8ccf64305c5fbac7e0f88bcc8b371 Mon Sep 17 00:00:00 2001
2 From: Stephan Hartmann <stha09@googlemail.com>
3 Date: Wed, 5 Apr 2023 21:14:20 +0000
4 Subject: [PATCH] IWYU: add stdint.h for integer types in //ui
6 Bug: 957519
7 Change-Id: I33698e997a32c36db19775f0cf4b22fb13cee349
8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4400997
9 Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
10 Reviewed-by: Scott Violet <sky@chromium.org>
11 Cr-Commit-Position: refs/heads/main@{#1126829}
12 ---
13 ui/base/prediction/kalman_filter.h | 2 ++
14 ui/events/types/scroll_types.h | 2 ++
15 ui/gfx/geometry/linear_gradient.h | 2 ++
16 3 files changed, 6 insertions(+)
18 diff --git a/ui/base/prediction/kalman_filter.h b/ui/base/prediction/kalman_filter.h
19 index bee3f946e9c..88a3eb5e95c 100644
20 --- a/ui/base/prediction/kalman_filter.h
21 +++ b/ui/base/prediction/kalman_filter.h
22 @@ -5,6 +5,8 @@
23 #ifndef UI_BASE_PREDICTION_KALMAN_FILTER_H_
24 #define UI_BASE_PREDICTION_KALMAN_FILTER_H_
26 +#include <stdint.h>
28 #include "base/component_export.h"
29 #include "ui/gfx/geometry/matrix3_f.h"
31 diff --git a/ui/events/types/scroll_types.h b/ui/events/types/scroll_types.h
32 index be6b2779f41..aac53c4bea7 100644
33 --- a/ui/events/types/scroll_types.h
34 +++ b/ui/events/types/scroll_types.h
35 @@ -5,6 +5,8 @@
36 #ifndef UI_EVENTS_TYPES_SCROLL_TYPES_H_
37 #define UI_EVENTS_TYPES_SCROLL_TYPES_H_
39 +#include <stdint.h>
41 namespace ui {
43 enum class ScrollGranularity : uint8_t {
44 diff --git a/ui/gfx/geometry/linear_gradient.h b/ui/gfx/geometry/linear_gradient.h
45 index 65cd4cb07c7..d337a7de29b 100644
46 --- a/ui/gfx/geometry/linear_gradient.h
47 +++ b/ui/gfx/geometry/linear_gradient.h
48 @@ -5,6 +5,8 @@
49 #ifndef UI_GFX_LINEAR_GRADIENT_H_
50 #define UI_GFX_LINEAR_GRADIENT_H_
52 +#include <stdint.h>
54 #include <array>
55 #include <string>