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

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: Final documentation changes. Created 5 years, 2 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
« no previous file with comments | « components/html_viewer/document_resource_waiter.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_frame.h
diff --git a/components/html_viewer/html_frame.h b/components/html_viewer/html_frame.h
index fef256ab44ae835801a49a7b377a8c7420bd7ba0..c55eb257fa19bca0de202c17b7be601be48dbfdb 100644
--- a/components/html_viewer/html_frame.h
+++ b/components/html_viewer/html_frame.h
@@ -194,6 +194,12 @@ class HTMLFrame : public blink::WebFrameClient,
virtual void didReceiveTitle(blink::WebLocalFrame* frame,
const blink::WebString& title,
blink::WebTextDirection direction);
+ virtual void reportFindInFrameMatchCount(int identifier,
+ int count,
+ bool finalUpdate);
+ virtual void reportFindInPageSelection(int identifier,
+ int activeMatchOrdinal,
+ const blink::WebRect& selection);
private:
friend class HTMLFrameTreeManager;
@@ -244,6 +250,10 @@ class HTMLFrame : public blink::WebFrameClient,
GlobalState* global_state() { return frame_tree_manager_->global_state(); }
+ // Returns the focused element if the focused element is in this
+ // frame. Returns an empty one otherwise.
+ blink::WebElement GetFocusedElement();
+
// Returns the Frame associated with the specified WebFrame.
HTMLFrame* FindFrameWithWebFrame(blink::WebFrame* web_frame);
@@ -280,6 +290,14 @@ 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 Find(int32 request_id,
+ const mojo::String& search_text,
+ const FindCallback& callback) override;
+ void StopFinding(bool clear_selection) override;
+ void HighlightFindResults(int32_t request_id,
+ const mojo::String& search_test,
+ bool reset) override;
+ void StopHighlightingFindResults() override;
// blink::WebRemoteFrameClient:
virtual void frameDetached(blink::WebRemoteFrameClient::DetachType type);
« no previous file with comments | « components/html_viewer/document_resource_waiter.cc ('k') | components/html_viewer/html_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698