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_FIND_CONTROLLER_DELEGATE_H_ | |
6 #define COMPONENTS_WEB_VIEW_FIND_CONTROLLER_DELEGATE_H_ | |
7 | |
8 #include <deque> | |
9 | |
10 namespace mojom { | |
11 class WebViewClient; | |
12 } | |
13 | |
14 namespace web_view { | |
15 | |
16 class Frame; | |
17 | |
18 class FindControllerDelegate { | |
19 public: | |
20 ~FindControllerDelegate() {} | |
21 | |
22 // Returns the frame tree flattened in pre-order, depth first. | |
23 virtual std::vector<Frame*> GetAllFrames() = 0; | |
24 | |
25 // Returns the WebViewClient so our find controller can send find messages. | |
26 virtual mojom::WebViewClient* GetWebViewClient() = 0; | |
27 }; | |
28 | |
29 } // namespace web_view | |
30 | |
31 #endif // COMPONENTS_WEB_VIEW_FIND_CONTROLLER_DELEGATE_H_ | |
OLD | NEW |