| 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 UI_BASE_MOJO_WINDOW_OPEN_DISPOSITION_ENUM_TRAITS_H_ | 5 #ifndef UI_BASE_MOJO_WINDOW_OPEN_DISPOSITION_STRUCT_TRAITS_H_ |
| 6 #define UI_BASE_MOJO_WINDOW_OPEN_DISPOSITION_ENUM_TRAITS_H_ | 6 #define UI_BASE_MOJO_WINDOW_OPEN_DISPOSITION_STRUCT_TRAITS_H_ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "mojo/public/cpp/bindings/enum_traits.h" | 9 #include "mojo/public/cpp/bindings/enum_traits.h" |
| 10 #include "ui/base/mojo/window_open_disposition.mojom.h" | 10 #include "ui/base/mojo/window_open_disposition.mojom.h" |
| 11 #include "ui/base/window_open_disposition.h" | 11 #include "ui/base/window_open_disposition.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 | 14 |
| 15 template <> | 15 template <> |
| 16 struct EnumTraits<ui::mojom::WindowOpenDisposition, WindowOpenDisposition> { | 16 struct EnumTraits<ui::mojom::WindowOpenDisposition, WindowOpenDisposition> { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return true; | 78 return true; |
| 79 default: | 79 default: |
| 80 NOTREACHED(); | 80 NOTREACHED(); |
| 81 return false; | 81 return false; |
| 82 } | 82 } |
| 83 } | 83 } |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace mojo | 86 } // namespace mojo |
| 87 | 87 |
| 88 #endif // UI_BASE_MOJO_WINDOW_OPEN_DISPOSITION_ENUM_TRAITS_H_ | 88 #endif // UI_BASE_MOJO_WINDOW_OPEN_DISPOSITION_STRUCT_TRAITS_H_ |
| OLD | NEW |