| 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_DISPLAY_JSON_CONVERTER_H_ | 5 #ifndef ASH_DISPLAY_JSON_CONVERTER_H_ |
| 6 #define ASH_DISPLAY_JSON_CONVERTER_H_ | 6 #define ASH_DISPLAY_JSON_CONVERTER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class Value; | 11 class Value; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace display { |
| 15 class DisplayLayout; |
| 16 } |
| 17 |
| 14 namespace ash { | 18 namespace ash { |
| 15 | 19 |
| 16 class DisplayLayout; | 20 ASH_EXPORT bool JsonToDisplayLayout(const base::Value& value, |
| 21 display::DisplayLayout* layout); |
| 17 | 22 |
| 18 ASH_EXPORT bool JsonToDisplayLayout(const base::Value& value, | 23 ASH_EXPORT bool DisplayLayoutToJson(const display::DisplayLayout& layout, |
| 19 DisplayLayout* layout); | |
| 20 | |
| 21 ASH_EXPORT bool DisplayLayoutToJson(const DisplayLayout& layout, | |
| 22 base::Value* value); | 24 base::Value* value); |
| 23 | 25 |
| 24 } // namespace ash | 26 } // namespace ash |
| 25 | 27 |
| 26 #endif // ASH_DISPLAY_JSON_CONVERTER_H_ | 28 #endif // ASH_DISPLAY_JSON_CONVERTER_H_ |
| OLD | NEW |