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

Issue 21323003: The UI part of search-by-image search. (Closed)

Created:
7 years, 4 months ago by Johnny(Jianning) Ding
Modified:
7 years, 4 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

The UI part of search-by-image search. When users click the 'search-by-image', the work flow is (1) Chrome sends ChromeViewMsg_RequestThumbnailForContextNode to render (2) Render gets the image, down-scale (if necessary) and send it back with ChromeViewHostMsg_RequestThumbnailForContextNode_ACK) (3) Chrome generates image search URL for current search provider, sends the search request and opens a new tab to show the result. BUG=89945 TEST= it depends on https://codereview.chromium.org/21378002/ to pass compilation. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215528

Patch Set 1 #

Total comments: 17

Patch Set 2 : #

Patch Set 3 : add menu string resource #

Total comments: 6

Patch Set 4 : fix string resource and comment #

Total comments: 8

Patch Set 5 : addressed avi's comments #

Total comments: 7

Patch Set 6 : add android version string resource #

Total comments: 2

Patch Set 7 : remove android version string resource #

Patch Set 8 : address jam's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -3 lines) Patch
M chrome/app/chrome_command_ids.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_view_host_observer.cc View 1 2 3 4 5 6 7 4 chunks +71 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 10 chunks +38 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/menu_gtk.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
jingbinw
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 chrome/browser/tab_contents/render_view_context_menu.cc:867: base::StringPrintf("Search Image By %s", search_provider_name.c_str()); I would suggest to ...
7 years, 4 months ago (2013-07-31 20:04:45 UTC) #1
Avi (use Gerrit)
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode193 chrome/browser/tab_contents/render_view_context_menu.cc:193: {57, IDC_CONTENT_CONTEXT_SEARCHIMAGENEWTAB }, Match style; space after { https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 ...
7 years, 4 months ago (2013-07-31 20:11:05 UTC) #2
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 chrome/browser/tab_contents/render_view_context_menu.cc:867: base::StringPrintf("Search Image By %s", search_provider_name.c_str()); note: just like IDS_CONTENT_CONTEXT_SEARCHWEBFOR ...
7 years, 4 months ago (2013-07-31 20:20:53 UTC) #3
Avi (use Gerrit)
https://codereview.chromium.org/21323003/diff/1/components/autofill.gypi File components/autofill.gypi (right): https://codereview.chromium.org/21323003/diff/1/components/autofill.gypi#newcode36 components/autofill.gypi:36: '../skia/skia.gyp:skia', Why is an autofill file in this CL? ...
7 years, 4 months ago (2013-07-31 20:24:48 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 chrome/browser/tab_contents/render_view_context_menu.cc:867: base::StringPrintf("Search Image By %s", search_provider_name.c_str()); On 2013/07/31 20:20:53, Kibeom ...
7 years, 4 months ago (2013-07-31 20:35:53 UTC) #5
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode125 chrome/browser/tab_contents/render_view_context_menu.cc:125: const int kImageSearchThumbnailMaxHeight = 600; Actually, Android Chrome need ...
7 years, 4 months ago (2013-07-31 21:25:54 UTC) #6
Johnny(Jianning) Ding
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 chrome/browser/tab_contents/render_view_context_menu.cc:867: base::StringPrintf("Search Image By %s", search_provider_name.c_str()); The hard-code "Search Image ...
7 years, 4 months ago (2013-07-31 21:26:36 UTC) #7
Johnny(Jianning) Ding
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode193 chrome/browser/tab_contents/render_view_context_menu.cc:193: {57, IDC_CONTENT_CONTEXT_SEARCHIMAGENEWTAB }, On 2013/07/31 20:11:05, Avi wrote: > ...
7 years, 4 months ago (2013-07-31 21:38:09 UTC) #8
Johnny(Jianning) Ding
On 2013/07/31 21:26:36, Johnny(Jianning) Ding wrote: > https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc > File chrome/browser/tab_contents/render_view_context_menu.cc (right): > > https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 ...
7 years, 4 months ago (2013-07-31 21:43:01 UTC) #9
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode2067 chrome/browser/tab_contents/render_view_context_menu.cc:2067: void RenderViewContextMenu::GetImageThumbnailForSearch(int x, int y) { How x and ...
7 years, 4 months ago (2013-07-31 21:49:49 UTC) #10
Johnny(Jianning) Ding
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode2067 chrome/browser/tab_contents/render_view_context_menu.cc:2067: void RenderViewContextMenu::GetImageThumbnailForSearch(int x, int y) { On 2013/07/31 21:49:49, ...
7 years, 4 months ago (2013-07-31 21:53:47 UTC) #11
jingbinw
+add Peter Peter, can you help review changes inside chrome/browser/ui/gtk/menu_gtk.cc? Jingbin On 2013/07/31 21:53:47, Johnny(Jianning) ...
7 years, 4 months ago (2013-07-31 21:56:41 UTC) #12
Peter Kasting
On 2013/07/31 21:56:41, jingbinw wrote: > +add Peter > > Peter, can you help review ...
7 years, 4 months ago (2013-07-31 21:57:53 UTC) #13
jingbinw
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 chrome/browser/tab_contents/render_view_context_menu.cc:867: base::StringPrintf("Search Image By %s", search_provider_name.c_str()); Can you rewording the ...
7 years, 4 months ago (2013-07-31 23:31:28 UTC) #14
Peter Kasting
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 chrome/browser/tab_contents/render_view_context_menu.cc:867: base::StringPrintf("Search Image By %s", search_provider_name.c_str()); On 2013/07/31 23:31:29, jingbinw ...
7 years, 4 months ago (2013-07-31 23:38:21 UTC) #15
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 chrome/browser/tab_contents/render_view_context_menu.cc:867: base::StringPrintf("Search Image By %s", search_provider_name.c_str()); here: menu_model_.AddItem( IDC_CONTENT_CONTEXT_SEARCHIMAGENEWTAB, l10n_util::GetStringFUTF16(IDS_CONTENT_CONTEXT_SEARCHWEBFORIMAGE, ...
7 years, 4 months ago (2013-08-01 00:14:59 UTC) #16
Johnny(Jianning) Ding
On 2013/08/01 00:14:59, Kibeom Kim wrote: > https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc > File chrome/browser/tab_contents/render_view_context_menu.cc (right): > > https://codereview.chromium.org/21323003/diff/1/chrome/browser/tab_contents/render_view_context_menu.cc#newcode867 ...
7 years, 4 months ago (2013-08-01 02:29:34 UTC) #17
Avi (use Gerrit)
https://codereview.chromium.org/21323003/diff/1/components/autofill.gypi File components/autofill.gypi (right): https://codereview.chromium.org/21323003/diff/1/components/autofill.gypi#newcode36 components/autofill.gypi:36: '../skia/skia.gyp:skia', Yikes. This is a weird dependency. Can you ...
7 years, 4 months ago (2013-08-01 05:33:02 UTC) #18
Peter Kasting
https://codereview.chromium.org/21323003/diff/35001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/21323003/diff/35001/chrome/app/generated_resources.grd#newcode696 chrome/app/generated_resources.grd:696: + <message name="IDS_CONTENT_CONTEXT_SEARCHWEBFORIMAGE" desc="The name of the Search the ...
7 years, 4 months ago (2013-08-01 05:35:31 UTC) #19
Johnny(Jianning) Ding
https://codereview.chromium.org/21323003/diff/35001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/21323003/diff/35001/chrome/app/generated_resources.grd#newcode697 chrome/app/generated_resources.grd:697: + &amp;Search image by <ph name="SEARCH_ENGINE">$1<ex>Google</ex></ph> On 2013/08/01 05:35:31, ...
7 years, 4 months ago (2013-08-01 17:56:57 UTC) #20
Avi (use Gerrit)
Mostly nits now, though you still haven't answered my question as to how you plan ...
7 years, 4 months ago (2013-08-01 18:46:09 UTC) #21
Johnny(Jianning) Ding
https://codereview.chromium.org/21323003/diff/1/components/autofill.gypi File components/autofill.gypi (right): https://codereview.chromium.org/21323003/diff/1/components/autofill.gypi#newcode36 components/autofill.gypi:36: '../skia/skia.gyp:skia', On 2013/08/01 05:33:03, Avi wrote: > Yikes. This ...
7 years, 4 months ago (2013-08-01 21:46:31 UTC) #22
Avi (use Gerrit)
LGTM Woot!
7 years, 4 months ago (2013-08-01 22:41:08 UTC) #23
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd#newcode790 chrome/app/generated_resources.grd:790: + <message name="IDS_CONTENT_CONTEXT_SEARCHWEBFORIMAGE" desc="The name of the Search For ...
7 years, 4 months ago (2013-08-01 22:50:56 UTC) #24
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd#newcode790 chrome/app/generated_resources.grd:790: + <message name="IDS_CONTENT_CONTEXT_SEARCHWEBFORIMAGE" desc="The name of the Search For ...
7 years, 4 months ago (2013-08-01 23:07:02 UTC) #25
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd#newcode790 chrome/app/generated_resources.grd:790: + <message name="IDS_CONTENT_CONTEXT_SEARCHWEBFORIMAGE" desc="The name of the Search For ...
7 years, 4 months ago (2013-08-01 23:16:54 UTC) #26
Kibeom Kim (inactive)
https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/21323003/diff/54001/chrome/app/generated_resources.grd#newcode790 chrome/app/generated_resources.grd:790: + <message name="IDS_CONTENT_CONTEXT_SEARCHWEBFORIMAGE" desc="The name of the Search For ...
7 years, 4 months ago (2013-08-01 23:18:51 UTC) #27
Kibeom Kim (inactive)
lgtm generate_resource.grd string lgtm for patch set 5 as we're adding the Android string on ...
7 years, 4 months ago (2013-08-02 09:47:01 UTC) #28
Kibeom Kim (inactive)
cpu@ jam@ Could you take a look at this? currently missng lgtms for chrome/app/chrome_command_ids.h chrome/browser/renderer_host/chrome_render_view_host_observer.h ...
7 years, 4 months ago (2013-08-02 10:34:39 UTC) #29
jam
lgtm https://codereview.chromium.org/21323003/diff/67001/chrome/browser/renderer_host/chrome_render_view_host_observer.h File chrome/browser/renderer_host/chrome_render_view_host_observer.h (right): https://codereview.chromium.org/21323003/diff/67001/chrome/browser/renderer_host/chrome_render_view_host_observer.h#newcode46 chrome/browser/renderer_host/chrome_render_view_host_observer.h:46: // Handles the image thumbnail for the context ...
7 years, 4 months ago (2013-08-02 15:40:16 UTC) #30
Johnny(Jianning) Ding
https://codereview.chromium.org/21323003/diff/67001/chrome/browser/renderer_host/chrome_render_view_host_observer.h File chrome/browser/renderer_host/chrome_render_view_host_observer.h (right): https://codereview.chromium.org/21323003/diff/67001/chrome/browser/renderer_host/chrome_render_view_host_observer.h#newcode46 chrome/browser/renderer_host/chrome_render_view_host_observer.h:46: // Handles the image thumbnail for the context node, ...
7 years, 4 months ago (2013-08-02 23:30:48 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jnd@chromium.org/21323003/88001
7 years, 4 months ago (2013-08-03 23:18:46 UTC) #32
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-03 23:24:08 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jnd@chromium.org/21323003/88001
7 years, 4 months ago (2013-08-03 23:50:46 UTC) #34
commit-bot: I haz the power
7 years, 4 months ago (2013-08-04 06:31:43 UTC) #35
Message was sent while issue was closed.
Change committed as 215528

Powered by Google App Engine
This is Rietveld 408576698