| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "services/ui/public/interfaces/cursor/cursor_struct_traits.h" | 5 #include "services/ui/public/interfaces/cursor/cursor_struct_traits.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "mojo/common/common_custom_types_struct_traits.h" | 8 #include "mojo/common/common_custom_types_struct_traits.h" |
| 9 #include "services/ui/public/interfaces/cursor/cursor.mojom.h" | 9 #include "services/ui/public/interfaces/cursor/cursor.mojom.h" |
| 10 #include "skia/public/interfaces/bitmap_array_struct_traits.h" | |
| 11 #include "skia/public/interfaces/bitmap_skbitmap_struct_traits.h" | 10 #include "skia/public/interfaces/bitmap_skbitmap_struct_traits.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "ui/base/cursor/cursor.h" | 12 #include "ui/base/cursor/cursor.h" |
| 14 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h" | 13 #include "ui/gfx/geometry/mojo/geometry_struct_traits.h" |
| 15 | 14 |
| 16 namespace mojo { | 15 namespace mojo { |
| 17 | 16 |
| 18 // static | 17 // static |
| 19 ui::mojom::CursorType | 18 ui::mojom::CursorType |
| 20 EnumTraits<ui::mojom::CursorType, ui::CursorType>::ToMojom( | 19 EnumTraits<ui::mojom::CursorType, ui::CursorType>::ToMojom( |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 !data.ReadFrameDelay(&frame_delay)) { | 312 !data.ReadFrameDelay(&frame_delay)) { |
| 314 return false; | 313 return false; |
| 315 } | 314 } |
| 316 | 315 |
| 317 *out = ui::CursorData(hotspot_in_pixels, cursor_frames, scale_factor, | 316 *out = ui::CursorData(hotspot_in_pixels, cursor_frames, scale_factor, |
| 318 frame_delay); | 317 frame_delay); |
| 319 return true; | 318 return true; |
| 320 } | 319 } |
| 321 | 320 |
| 322 } // namespace mojo | 321 } // namespace mojo |
| OLD | NEW |