Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: components/html_viewer/html_frame.h

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: General patch cleanup. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698