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

Issue 197035: [mac] Let cmd-e write the selection into the find pasteboard. (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-e write the selection into the find pasteboard. Note that chrome still does not support _reading_ from the find pasteboard, so hitting cmd-e followed by cmd-g in chrome still doesn't work. Also, cmd-f doesn't write to the find pasteboard yet either. BUG=14562 TEST=Select some text on a web page, hit cmd-e, go to the same web page in safari, hit cmd-g. Safari should search for the text you selected in chrome. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26075

Patch Set 1 #

Patch Set 2 : Some sanity checking #

Total comments: 4

Patch Set 3 : Add comment, merge with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -12 lines) Patch
M chrome/app/nibs/MainMenu.xib View 10 chunks +28 lines, -12 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/resource_message_filter_mac.mm View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Nico
Pink: Frontend. Darin: Backend, or suggest another reviewer for that part. Four lines of actual ...
11 years, 3 months ago (2009-09-07 02:39:12 UTC) #1
pink (ping after 24hrs)
lgtm with nits. i assume the next steps are to hook this up to our ...
11 years, 3 months ago (2009-09-08 17:18:16 UTC) #2
Nico
11 years, 3 months ago (2009-09-11 05:28:13 UTC) #3
Pink: Yes, next steps are to make cmd-f and cmd-g use the find pasteboard too.

Darin: If I don't hear complaints by tomorrow, 2pm PST, I will submit this with
Pink's LGTM.

http://codereview.chromium.org/197035/diff/3001/3006
File chrome/browser/renderer_host/resource_message_filter.h (right):

http://codereview.chromium.org/197035/diff/3001/3006#newcode180
Line 180: #if defined(OS_MACOSX)
On 2009/09/08 17:18:16, pink wrote:
> What's the harm in leaving this defined everywhere in case other platforms
want
> this behavior down the road?

Windows and Linux don't have find pasteboards. Seems just useless to declare it
there. But if you want, I can remove this define as well, I don't really care.

http://codereview.chromium.org/197035/diff/3001/3007
File chrome/browser/renderer_host/resource_message_filter_mac.mm (right):

http://codereview.chromium.org/197035/diff/3001/3007#newcode11
Line 11: static const size_t kMaxFindPboardStringLength = 4096;
On 2009/09/08 17:18:16, pink wrote:
> comment about why this constant is here and what it prevents.

Done.

Powered by Google App Engine
This is Rietveld 408576698