blob: 7080c4f495466a5ab36c108468abf1153400547d [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_WEB_VIEW_FIND_CONTROLLER_DELEGATE_H_
#define COMPONENTS_WEB_VIEW_FIND_CONTROLLER_DELEGATE_H_
#include <deque>
namespace mojom {
class WebViewClient;
}
namespace web_view {
class Frame;
class FindControllerDelegate {
public:
~FindControllerDelegate() {}
// Returns the frame tree flattened in pre-order, depth first.
virtual std::vector<Frame*> GetAllFrames() = 0;
// Returns the WebViewClient so our find controller can send find messages.
virtual mojom::WebViewClient* GetWebViewClient() = 0;
};
} // namespace web_view
#endif // COMPONENTS_WEB_VIEW_FIND_CONTROLLER_DELEGATE_H_