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

Issue 20501002: Adds paste function to searchbox api and handles paste event on fakebox (Closed)

Created:
7 years, 5 months ago by jfweitz
Modified:
6 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, tburkard+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, mad+watch_chromium.org, dominich, gavinp+prer_chromium.org, dominich+watch_chromium.org, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds paste function to searchbox api and handles paste event on fakebox Pasting into fakebox via context-menu didn't work before. This change adds a paste function to the searchbox api, that gets the text from the clipboard into the omnibox using SetUserText ( opening the suggestions panel.) BUG=164784 TEST=Right click on fakebox and paste. The pasted value should appear on the omnibox and the suggestions panel should be open. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216842

Patch Set 1 #

Patch Set 2 : Test updated #

Total comments: 6

Patch Set 3 : Focus handled in browser_instant_controller #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : Adds optional text param to paste. Also adds drop behavior to fakebox. #

Total comments: 28

Patch Set 6 : rebase #

Patch Set 7 : Comments addressed #

Total comments: 4

Patch Set 8 : Rebase #

Patch Set 9 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -98 lines) Patch
M chrome/browser/resources/local_ntp/local_ntp.css View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/local_ntp/local_ntp.js View 1 2 3 4 5 6 7 chunks +35 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 4 chunks +57 lines, -10 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.h View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.cc View 1 2 3 4 5 6 7 8 2 chunks +21 lines, -20 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view_unittest.cc View 1 2 3 4 2 chunks +20 lines, -28 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_controller.cc View 1 2 3 4 2 chunks +11 lines, -21 lines 0 comments Download
M chrome/browser/ui/search/instant_ntp_prerenderer.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_ntp_prerenderer.cc View 1 2 3 4 5 6 1 chunk +19 lines, -11 lines 0 comments Download
M chrome/browser/ui/search/instant_page.h View 1 2 3 4 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_page.cc View 1 2 3 4 5 6 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_page_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_tab.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/search/instant_tab.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 5 6 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
jfweitz
Hi, Please take a look at the following files: jschuh: render_messages jeremycho: local_ntp.js samarth: all ...
7 years, 5 months ago (2013-07-25 21:25:52 UTC) #1
samarth
Awesome, this works great! Just a few comments below. Thanks, Samarth https://codereview.chromium.org/20501002/diff/3001/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): ...
7 years, 5 months ago (2013-07-26 22:51:41 UTC) #2
jeremycho
lgtm Sorry for the delay. LGTM for local_ntp.js.
7 years, 4 months ago (2013-07-28 00:03:08 UTC) #3
jfweitz
Comments addressed. Checking if the popup is open in BrowserInstantController::FocusOmnibox did work. It's preventing from ...
7 years, 4 months ago (2013-07-29 18:48:25 UTC) #4
samarth
Thinking about drag-and-drop, I think we should do what adds the least complexity. So how ...
7 years, 4 months ago (2013-07-31 01:44:37 UTC) #5
jfweitz
+pkasting for omnibox_view* Samarth's comments addressed: I added an optional param to the paste function, ...
7 years, 4 months ago (2013-08-03 00:01:59 UTC) #6
samarth
A bunch of nits below but lgtm. Awesome work! Thanks, Samarth https://codereview.chromium.org/20501002/diff/22001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): ...
7 years, 4 months ago (2013-08-06 18:39:44 UTC) #7
Peter Kasting
LGTM https://codereview.chromium.org/20501002/diff/22001/chrome/browser/ui/omnibox/omnibox_view.h File chrome/browser/ui/omnibox/omnibox_view.h (right): https://codereview.chromium.org/20501002/diff/22001/chrome/browser/ui/omnibox/omnibox_view.h#newcode234 chrome/browser/ui/omnibox/omnibox_view.h:234: // Returns a string with any leading javascript ...
7 years, 4 months ago (2013-08-06 21:55:12 UTC) #8
samarth
ping Justin? We'd love to get this in this week if possible. Thanks! Samarth
7 years, 4 months ago (2013-08-08 16:19:22 UTC) #9
jschuh
I was just waiting for the last round of feedback to get actioned before reviewing.
7 years, 4 months ago (2013-08-08 16:24:47 UTC) #10
samarth
Ok, awesome, thanks!
7 years, 4 months ago (2013-08-08 16:25:51 UTC) #11
jfweitz
Peter and Samarth's comments addressed. PTAL. Thanks! https://codereview.chromium.org/20501002/diff/22001/chrome/browser/resources/local_ntp/local_ntp.js File chrome/browser/resources/local_ntp/local_ntp.js (right): https://codereview.chromium.org/20501002/diff/22001/chrome/browser/resources/local_ntp/local_ntp.js#newcode1042 chrome/browser/resources/local_ntp/local_ntp.js:1042: var text ...
7 years, 4 months ago (2013-08-09 02:37:41 UTC) #12
Peter Kasting
LGTM with a few more comment tweaks https://codereview.chromium.org/20501002/diff/41001/chrome/browser/ui/omnibox/omnibox_view.cc File chrome/browser/ui/omnibox/omnibox_view.cc (right): https://codereview.chromium.org/20501002/diff/41001/chrome/browser/ui/omnibox/omnibox_view.cc#newcode28 chrome/browser/ui/omnibox/omnibox_view.cc:28: // Convert ...
7 years, 4 months ago (2013-08-09 18:11:58 UTC) #13
jfweitz
Peter's comments fixed in patch set 9. Thanks! https://codereview.chromium.org/20501002/diff/41001/chrome/browser/ui/omnibox/omnibox_view.cc File chrome/browser/ui/omnibox/omnibox_view.cc (right): https://codereview.chromium.org/20501002/diff/41001/chrome/browser/ui/omnibox/omnibox_view.cc#newcode28 chrome/browser/ui/omnibox/omnibox_view.cc:28: // ...
7 years, 4 months ago (2013-08-09 18:49:55 UTC) #14
jschuh
ipc security lgtm. renderer -> browser search string text.
7 years, 4 months ago (2013-08-09 21:37:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jfweitz@chromium.org/20501002/50001
7 years, 4 months ago (2013-08-09 21:52:52 UTC) #16
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 4 months ago (2013-08-09 22:35:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jfweitz@chromium.org/20501002/50001
7 years, 4 months ago (2013-08-10 01:35:16 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-08-10 13:49:24 UTC) #19
Message was sent while issue was closed.
Change committed as 216842

Powered by Google App Engine
This is Rietveld 408576698