| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_WEB_VIEW_LOCAL_FIND_OPTIONS_H_ | |
| 6 #define COMPONENTS_WEB_VIEW_LOCAL_FIND_OPTIONS_H_ | |
| 7 | |
| 8 #include "components/web_view/public/interfaces/frame.mojom.h" | |
| 9 #include "mojo/public/cpp/bindings/type_converter.h" | |
| 10 | |
| 11 namespace web_view { | |
| 12 | |
| 13 // A local mirror of the relevant parts of mojom::FindOptions. | |
| 14 struct LocalFindOptions { | |
| 15 bool forward; | |
| 16 bool continue_last_find; | |
| 17 }; | |
| 18 | |
| 19 } // namespace web_view | |
| 20 | |
| 21 namespace mojo { | |
| 22 | |
| 23 template <> | |
| 24 struct TypeConverter<web_view::mojom::FindOptionsPtr, | |
| 25 web_view::LocalFindOptions> { | |
| 26 static web_view::mojom::FindOptionsPtr Convert( | |
| 27 const web_view::LocalFindOptions& input); | |
| 28 }; | |
| 29 | |
| 30 } // namespace mojo | |
| 31 | |
| 32 #endif // COMPONENTS_WEB_VIEW_LOCAL_FIND_OPTIONS_H_ | |
| OLD | NEW |