OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 "components/web_view/local_find_options.h" | 5 #include "components/web_view/local_find_options.h" |
6 | 6 |
7 namespace mojo { | 7 namespace mojo { |
8 | 8 |
9 web_view::mojom::FindOptionsPtr | 9 web_view::mojom::FindOptionsPtr |
10 TypeConverter<web_view::mojom::FindOptionsPtr, web_view::LocalFindOptions>:: | 10 TypeConverter<web_view::mojom::FindOptionsPtr, web_view::LocalFindOptions>:: |
11 Convert(const web_view::LocalFindOptions& input) { | 11 Convert(const web_view::LocalFindOptions& input) { |
12 web_view::mojom::FindOptionsPtr output = web_view::mojom::FindOptions::New(); | 12 web_view::mojom::FindOptionsPtr output = web_view::mojom::FindOptions::New(); |
13 output->forward = input.forward; | 13 output->forward = input.forward; |
14 output->continue_last_find = input.continue_last_find; | 14 output->continue_last_find = input.continue_last_find; |
15 return output.Pass(); | 15 return output; |
16 } | 16 } |
17 | 17 |
18 } // namespace mojo | 18 } // namespace mojo |
OLD | NEW |