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

Unified Diff: components/web_view/frame.h

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix spacing on the right side of the UI. 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/web_view/frame.h
diff --git a/components/web_view/frame.h b/components/web_view/frame.h
index 380bc8e822d6b860f75860f388f047fb430c0ea6..457621da67246e677ee84e41f0eb4f0a566ad65f 100644
--- a/components/web_view/frame.h
+++ b/components/web_view/frame.h
@@ -112,6 +112,9 @@ class Frame : public mus::ViewObserver, public mojom::Frame {
// children, as well as the number of Frames accumulated.
double GatherProgress(int* frame_count) const;
+ void Find(int32_t request_id, const mojo::String& search_text);
+ void StopFinding();
+
private:
friend class FrameTest;
friend class FrameTree;
@@ -224,6 +227,11 @@ class Frame : public mus::ViewObserver, public mojom::Frame {
mojo::URLRequestPtr request) override;
void DidNavigateLocally(const mojo::String& url) override;
void DispatchLoadEventToParent() override;
+ void ReportFindInPageMatchCount(int32_t request_id,
+ int32_t count,
+ bool final_update) override;
+ void ReportFindInPageSelection(int32_t request_id,
+ int32_t active_match_ordinal) override;
FrameTree* const tree_;
// WARNING: this may be null. See class description for details.

Powered by Google App Engine
This is Rietveld 408576698