Index: components/html_viewer/html_frame.h |
diff --git a/components/html_viewer/html_frame.h b/components/html_viewer/html_frame.h |
index 4f7de6ca4da92227f741423ccc40be372bdc2a2c..8e99147a29cf891f8c5495d1169c872c100089e3 100644 |
--- a/components/html_viewer/html_frame.h |
+++ b/components/html_viewer/html_frame.h |
@@ -127,6 +127,7 @@ class HTMLFrame : public blink::WebFrameClient, |
// Returns the WebView for this frame, or null if there isn't one. The root |
// has a WebView, the children WebFrameWidgets. |
blink::WebView* web_view(); |
+ blink::WebView* web_view() const; |
blink::WebWidget* GetWebWidget(); |
// The mus::View this frame renders to. This is non-null for the local frame |
@@ -190,6 +191,12 @@ class HTMLFrame : public blink::WebFrameClient, |
virtual void didReceiveTitle(blink::WebLocalFrame* frame, |
const blink::WebString& title, |
blink::WebTextDirection direction); |
+ virtual void reportFindInPageMatchCount(int identifier, |
+ int count, |
+ bool finalUpdate); |
+ virtual void reportFindInPageSelection(int identifier, |
+ int activeMatchOrdinal, |
+ const blink::WebRect& selection); |
private: |
friend class HTMLFrameTreeManager; |
@@ -240,6 +247,8 @@ class HTMLFrame : public blink::WebFrameClient, |
GlobalState* global_state() { return frame_tree_manager_->global_state(); } |
+ blink::WebElement GetFocusedElement() const; |
+ |
// Returns the Frame associated with the specified WebFrame. |
HTMLFrame* FindFrameWithWebFrame(blink::WebFrame* web_frame); |
@@ -276,6 +285,8 @@ class HTMLFrame : public blink::WebFrameClient, |
const OnWillNavigateCallback& callback) override; |
void OnFrameLoadingStateChanged(uint32_t frame_id, bool loading) override; |
void OnDispatchFrameLoadEvent(uint32_t frame_id) override; |
+ void OnFind(int32 request_id, const mojo::String& search_text) override; |
+ void OnStopFinding() override; |
// blink::WebRemoteFrameClient: |
virtual void frameDetached(blink::WebRemoteFrameClient::DetachType type); |