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

Issue 3209002: Input file type now supported in extension popups. (Closed)

Created:
10 years, 4 months ago by Jay Civelli
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, John Grabowski, Erik does not do reviews, Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Input file type now supported in extension popups. To do this, this CL generalize the TabContentsFileSelectHelper (renamed FileSelectHelper) so it is associated with a RenderViewHost rather than a TabContents. This allows the extension popups which don't use a TabContents to use it. As part of that, I also moved GetTopLevelNativeWindow() from TabContentsView to TabContent, as it can be implemented in a non-platform specific way. BUG=28829 TEST=Make sure you can still open file on web pages (such as http://www.cs.tut.fi/~jkorpela/forms/file.html. Create an extension with a popup that contains an input file tag. Make sure it does open a file dialog and lets you choose a file. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59105

Patch Set 1 #

Patch Set 2 : Minor changes #

Patch Set 3 : Fix compilation on Linux #

Patch Set 4 : Adding johnnyg change.wq #

Patch Set 5 : GetTopLevelWindow back to TabContentsView #

Patch Set 6 : Synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -24 lines) Patch
M chrome/browser/extensions/extension_host.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
A + chrome/browser/file_select_helper.h View 1 2 3 4 4 chunks +26 lines, -16 lines 0 comments Download
A chrome/browser/file_select_helper.cc View 1 2 3 4 5 1 chunk +242 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jay Civelli
Ben, could you look at the changes to the tab_contents_* file and let me know ...
10 years, 4 months ago (2010-08-25 21:37:55 UTC) #1
John Gregg
One concern that comes to mind is that the FileSelectHelper is currently assuming it will ...
10 years, 4 months ago (2010-08-26 18:20:13 UTC) #2
John Gregg
On second thought, you have a DCHECK for this. So if you're convinced that extensions ...
10 years, 4 months ago (2010-08-26 18:31:35 UTC) #3
Jay Civelli
On 2010/08/26 18:31:35, John Gregg wrote: > On second thought, you have a DCHECK for ...
10 years, 4 months ago (2010-08-26 22:47:53 UTC) #4
John Gregg
On 2010/08/26 22:47:53, Jay Civelli wrote: > On 2010/08/26 18:31:35, John Gregg wrote: > > ...
10 years, 3 months ago (2010-08-30 18:57:59 UTC) #5
Jay Civelli
I added the change you mentioned and uploaded a new CL. Let me know if ...
10 years, 3 months ago (2010-08-30 21:49:22 UTC) #6
johnnyg
It looks right. Thanks!
10 years, 3 months ago (2010-08-30 21:51:30 UTC) #7
Jay Civelli
Hey Ben, Could you look at the changes to the tab_contents_* files and let me ...
10 years, 3 months ago (2010-09-01 21:11:15 UTC) #8
Jay Civelli
Scott, Could you look at the changes to the tab_contents_* files and let me know ...
10 years, 3 months ago (2010-09-09 17:16:02 UTC) #9
sky
Ben says he's on it. -Scott On Thu, Sep 9, 2010 at 10:16 AM, <jcivelli@chromium.org> ...
10 years, 3 months ago (2010-09-09 19:22:48 UTC) #10
Jay Civelli
OK, I moved back GetTopLevelWindow to the TabContentsView.
10 years, 3 months ago (2010-09-09 23:16:35 UTC) #11
Ben Goodger (Google)
10 years, 3 months ago (2010-09-10 01:01:36 UTC) #12
On 2010/09/09 23:16:35, Jay Civelli wrote:
> OK, I moved back GetTopLevelWindow to the TabContentsView.

LG

Powered by Google App Engine
This is Rietveld 408576698