| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef ASH_PUBLIC_INTERFACES_SHELF_ENUM_TRAITS_H_ | 5 #ifndef ASH_PUBLIC_INTERFACES_SHELF_STRUCT_TRAITS_H_ |
| 6 #define ASH_PUBLIC_INTERFACES_SHELF_ENUM_TRAITS_H_ | 6 #define ASH_PUBLIC_INTERFACES_SHELF_STRUCT_TRAITS_H_ |
| 7 | 7 |
| 8 #include "ash/public/cpp/shelf_types.h" | 8 #include "ash/public/cpp/shelf_types.h" |
| 9 #include "ash/public/interfaces/shelf.mojom.h" | 9 #include "ash/public/interfaces/shelf.mojom.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 | 12 |
| 13 template <> | 13 template <> |
| 14 struct EnumTraits<ash::mojom::ShelfAlignment, ash::ShelfAlignment> { | 14 struct EnumTraits<ash::mojom::ShelfAlignment, ash::ShelfAlignment> { |
| 15 static ash::mojom::ShelfAlignment ToMojom(ash::ShelfAlignment input) { | 15 static ash::mojom::ShelfAlignment ToMojom(ash::ShelfAlignment input) { |
| 16 switch (input) { | 16 switch (input) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 *out = ash::SHELF_AUTO_HIDE_ALWAYS_HIDDEN; | 78 *out = ash::SHELF_AUTO_HIDE_ALWAYS_HIDDEN; |
| 79 return true; | 79 return true; |
| 80 } | 80 } |
| 81 NOTREACHED(); | 81 NOTREACHED(); |
| 82 return false; | 82 return false; |
| 83 } | 83 } |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace mojo | 86 } // namespace mojo |
| 87 | 87 |
| 88 #endif // ASH_PUBLIC_INTERFACES_SHELF_ENUM_TRAITS_H_ | 88 #endif // ASH_PUBLIC_INTERFACES_SHELF_STRUCT_TRAITS_H_ |
| OLD | NEW |