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

Issue 206035: Support the OS X find pasteboard on OS X. (Closed)

Created:
11 years, 3 months ago by Nico
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Let cmd-f/cmd-g use the findboard. In a nutshell, this means that the find bars honor the global find pasteboard, which is like a clipboard, but for searches. See the TEST section below for consequences, and also see the bug for more information. BUG=14562 TEST= * Select some text, hit cmd-e, cmd-g. This should search for the marked text and open the find bar if it's not open. * Open TextEdit, hit cmd-f. Enter some text, hit enter. Switch back to Chrome with an open find bar. The find bar should now contain the text you entered in TextEdit * Enter different text into chrome's find bar, switch back to TextEdit. Its find window should now contain the new text. * Search for something in one tab, switch to another tab. It should contain the same text in the findbar as the first one. * Open the findbar, select some text, hit cmd-e. The find bar should be updated with the selected text and this text should be highlighted in the web page. Find bars in other tabs should be updated with that text as well. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27015

Patch Set 1 #

Patch Set 2 : Add TODOs. #

Patch Set 3 : cmd-e followed by cmd-g kinda works #

Patch Set 4 : cmd-e now updates the text in the findbar #

Patch Set 5 : update findbars on app activate, add user metrics #

Patch Set 6 : do not have per-tab search state #

Patch Set 7 : fix unit test compile #

Total comments: 21

Patch Set 8 : address comments #

Patch Set 9 : Address comments #

Patch Set 10 : Revert useless change #

Patch Set 11 : Merge ToT, update comments #

Patch Set 12 : Add newline to find_pasteboard.mm #

Total comments: 4

Patch Set 13 : Address comments #

Total comments: 10

Patch Set 14 : Address comments #

Patch Set 15 : Address irc comments: different mocking technique #

Patch Set 16 : foo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+354 lines, -21 lines) Patch
M chrome/browser/browser.cc View 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/cocoa/find_bar_bridge.mm View 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/find_bar_cocoa_controller.h View 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/find_bar_cocoa_controller.mm View 1 2 3 4 5 6 7 7 chunks +25 lines, -7 lines 0 comments Download
M chrome/browser/cocoa/find_bar_cocoa_controller_unittest.mm View 7 8 9 10 11 12 5 chunks +39 lines, -7 lines 0 comments Download
A chrome/browser/cocoa/find_pasteboard.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/find_pasteboard.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/find_pasteboard_unittest.mm View 14 15 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/find_bar_controller.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter_mac.mm View 3 4 5 6 7 1 chunk +17 lines, -4 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Nico
Rohitrao: You wrote the mac findbar, so take a look at that. Pink: You reviewed ...
11 years, 3 months ago (2009-09-17 21:25:42 UTC) #1
Nico
"""Also, it looks like hitting the "find prev/next" buttons is not recorded in UserMetrics. Is ...
11 years, 3 months ago (2009-09-17 21:26:53 UTC) #2
Nico
I just checked, and both windows and gtk call tab_contents()->StartFinding() directly on button press, so ...
11 years, 3 months ago (2009-09-17 21:34:19 UTC) #3
pink (ping after 24hrs)
http://codereview.chromium.org/206035/diff/8001/7020 File chrome/browser/cocoa/find_pasteboard.h (right): http://codereview.chromium.org/206035/diff/8001/7020#newcode5 Line 5: #import <Cocoa/Cocoa.h> this entire header should have a ...
11 years, 3 months ago (2009-09-17 21:53:59 UTC) #4
Finnur
Copying Ben as a token UX decider (Ben: see what I wrote at the bottom). ...
11 years, 3 months ago (2009-09-17 22:08:53 UTC) #5
Ben Goodger (Google)
I agree with Finnur. We should match the behavior on Windows. No need to diverge ...
11 years, 3 months ago (2009-09-17 22:35:37 UTC) #6
Avi (use Gerrit)
On 2009/09/17 22:35:37, Ben Goodger wrote: > I agree with Finnur. We should match the ...
11 years, 3 months ago (2009-09-17 22:41:39 UTC) #7
rohitrao (ping after 24h)
On 2009/09/17 22:35:37, Ben Goodger wrote: > I agree with Finnur. We should match the ...
11 years, 3 months ago (2009-09-17 22:41:41 UTC) #8
Nico
After some conversations, I think we all seem to agree that the findbar contents should ...
11 years, 3 months ago (2009-09-18 18:28:18 UTC) #9
Finnur
Let me know when you have buy-in for what you want to do from the ...
11 years, 3 months ago (2009-09-18 18:31:59 UTC) #10
Nico
Obtained buy-in from UX team. Please take another look.
11 years, 3 months ago (2009-09-23 15:26:56 UTC) #11
Finnur
I have just nits and couple of questions: Your changelist description doesn't mention whether the ...
11 years, 3 months ago (2009-09-23 15:52:24 UTC) #12
Nico
Thanks for the review, especially for taking care that the CL description is up-to-date. Updated ...
11 years, 3 months ago (2009-09-23 16:53:23 UTC) #13
Finnur
LG. Thanks for adding the tests. I'd still like to know how many people actually ...
11 years, 3 months ago (2009-09-23 17:54:11 UTC) #14
pink (ping after 24hrs)
http://codereview.chromium.org/206035/diff/17001/18006 File chrome/browser/cocoa/find_pasteboard.h (right): http://codereview.chromium.org/206035/diff/17001/18006#newcode24 Line 24: // This is not thread-safe. Mention this has ...
11 years, 3 months ago (2009-09-23 19:22:30 UTC) #15
Nico
http://codereview.chromium.org/206035/diff/17001/18006 File chrome/browser/cocoa/find_pasteboard.h (right): http://codereview.chromium.org/206035/diff/17001/18006#newcode24 Line 24: // This is not thread-safe. On 2009/09/23 19:22:30, ...
11 years, 3 months ago (2009-09-23 20:55:05 UTC) #16
pink (ping after 24hrs)
11 years, 3 months ago (2009-09-23 22:03:39 UTC) #17
lgtm

Powered by Google App Engine
This is Rietveld 408576698