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

Issue 1371773003: mandoline: Add find in page. (Closed)

Created:
5 years, 2 months ago by Elliot Glaysher
Modified:
5 years, 2 months ago
Reviewers:
tkent, paulmeyer, sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, penghuang+watch-mandoline_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mandoline: Add find in page. This adds Ctrl+F as a keyboard shortcut to replace the current toolbar with a find in page bar, where the user can enter some text. BUG=496978 Committed: https://crrev.com/fe308b3359314164d5a74633dfbcf52c6367630b Cr-Commit-Position: refs/heads/master@{#352535}

Patch Set 1 #

Patch Set 2 : Fix Windows Compile #

Patch Set 3 : Rebase to ToT #

Patch Set 4 : Add apptest. #

Patch Set 5 : Reupload / test runs were weird. #

Patch Set 6 : General patch cleanup. #

Total comments: 2

Patch Set 7 : Fix spacing on the right side of the UI. #

Total comments: 2

Patch Set 8 : Add count aggregation in the WebView layer. #

Patch Set 9 : Waiting on three loadings isn't needed on ToT. #

Patch Set 10 : Clean up auto to fix linux compile. #

Patch Set 11 : Put StopFinding() in the right place to fix timing issue. #

Patch Set 12 : Fix a truncated sentence. #

Patch Set 13 : Rebase to ToT to fix patch failure. #

Total comments: 10

Patch Set 14 : Move find code to own file. #

Patch Set 15 : Further patch cleanup; use a WeakPtrFactory in FindController. #

Total comments: 11

Patch Set 16 : Changed names, documentation, and other fixes. #

Patch Set 17 : Rebase to ToT #

Total comments: 2

Patch Set 18 : Final documentation changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+922 lines, -11 lines) Patch
M components/html_viewer/ax_provider_apptest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M components/html_viewer/document_resource_waiter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M components/html_viewer/document_resource_waiter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +25 lines, -0 lines 0 comments Download
M components/html_viewer/html_frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +18 lines, -0 lines 0 comments Download
M components/html_viewer/html_frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +80 lines, -0 lines 0 comments Download
A components/test/data/web_view/the_word_green_five_times.html View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
A components/test/data/web_view/two_iframes_with_green.html View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M components/web_view/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
A components/web_view/find_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +78 lines, -0 lines 0 comments Download
A components/web_view/find_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +155 lines, -0 lines 0 comments Download
A components/web_view/find_controller_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +29 lines, -0 lines 0 comments Download
M components/web_view/frame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +15 lines, -0 lines 0 comments Download
M components/web_view/frame.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +33 lines, -0 lines 0 comments Download
M components/web_view/frame_apptest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M components/web_view/frame_tree_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -0 lines 0 comments Download
M components/web_view/frame_tree_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M components/web_view/public/interfaces/frame.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +39 lines, -0 lines 0 comments Download
M components/web_view/public/interfaces/web_view.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +11 lines, -0 lines 0 comments Download
M components/web_view/test_runner/test_runner_application_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M components/web_view/web_view_apptest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +58 lines, -7 lines 0 comments Download
M components/web_view/web_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +21 lines, -1 line 0 comments Download
M components/web_view/web_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +55 lines, -1 line 0 comments Download
M mandoline/ui/desktop_ui/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M mandoline/ui/desktop_ui/browser_commands.h View 1 chunk +1 line, -0 lines 0 comments Download
M mandoline/ui/desktop_ui/browser_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +21 lines, -1 line 0 comments Download
M mandoline/ui/desktop_ui/browser_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +47 lines, -0 lines 0 comments Download
A mandoline/ui/desktop_ui/find_bar_delegate.h View 1 chunk +23 lines, -0 lines 0 comments Download
A mandoline/ui/desktop_ui/find_bar_view.h View 1 chunk +55 lines, -0 lines 0 comments Download
A mandoline/ui/desktop_ui/find_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +68 lines, -0 lines 0 comments Download
M mandoline/ui/phone_ui/phone_browser_application_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/TextFinder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 16 (4 generated)
Elliot Glaysher
https://codereview.chromium.org/1371773003/diff/100001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1371773003/diff/100001/components/html_viewer/html_frame.cc#newcode843 components/html_viewer/html_frame.cc:843: void HTMLFrame::OnFind(int32 request_id, const mojo::String& search_text) { This and ...
5 years, 2 months ago (2015-09-28 21:22:57 UTC) #2
sky
https://codereview.chromium.org/1371773003/diff/120001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1371773003/diff/120001/components/html_viewer/html_frame.cc#newcode646 components/html_viewer/html_frame.cc:646: blink::WebDocument doc = focused_frame->document(); What if focused_frame != web_frame_? ...
5 years, 2 months ago (2015-09-28 23:18:59 UTC) #3
Elliot Glaysher
ptal This patch moves the logic for aggregation into WebView.
5 years, 2 months ago (2015-10-01 17:16:55 UTC) #4
sky
https://codereview.chromium.org/1371773003/diff/240001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1371773003/diff/240001/components/html_viewer/html_frame.cc#newcode689 components/html_viewer/html_frame.cc:689: if (focused_frame) { Should you only look at focused_frame ...
5 years, 2 months ago (2015-10-02 16:03:40 UTC) #5
Elliot Glaysher
tkent: Hi, I'm trying to get find working in OOPIFs for Mandoline. I see that ...
5 years, 2 months ago (2015-10-02 21:42:33 UTC) #7
tkent
third_party/WebKit lgtm. This looks a reasonable change for OOPIF.
5 years, 2 months ago (2015-10-04 22:57:57 UTC) #8
sky
https://codereview.chromium.org/1371773003/diff/280001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1371773003/diff/280001/components/html_viewer/html_frame.cc#newcode894 components/html_viewer/html_frame.cc:894: const mojo::String& search_text, What should happen if search_text is ...
5 years, 2 months ago (2015-10-05 15:55:09 UTC) #9
Elliot Glaysher
Changed the documentation and the method names. https://codereview.chromium.org/1371773003/diff/280001/components/html_viewer/html_frame.cc File components/html_viewer/html_frame.cc (right): https://codereview.chromium.org/1371773003/diff/280001/components/html_viewer/html_frame.cc#newcode894 components/html_viewer/html_frame.cc:894: const mojo::String& ...
5 years, 2 months ago (2015-10-05 20:43:51 UTC) #10
sky
Thanks for the improved names and doc. Much better. LGTM https://codereview.chromium.org/1371773003/diff/320001/components/web_view/public/interfaces/frame.mojom File components/web_view/public/interfaces/frame.mojom (right): https://codereview.chromium.org/1371773003/diff/320001/components/web_view/public/interfaces/frame.mojom#newcode114 ...
5 years, 2 months ago (2015-10-05 23:38:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1371773003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1371773003/340001
5 years, 2 months ago (2015-10-05 23:44:06 UTC) #14
commit-bot: I haz the power
Committed patchset #18 (id:340001)
5 years, 2 months ago (2015-10-06 04:30:55 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-10-06 04:33:19 UTC) #16
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/fe308b3359314164d5a74633dfbcf52c6367630b
Cr-Commit-Position: refs/heads/master@{#352535}

Powered by Google App Engine
This is Rietveld 408576698