Closed Bug 605384 Opened 15 years ago Closed 15 years ago

remote android file picker

Categories

(Core Graveyard :: Widget: Android, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 594368

People

(Reporter: blassey, Unassigned)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
It currently only works in the chrome process because the android bridge is only available in the chrome process
Attachment #484242 - Flags: review?(doug.turner)
Comment on attachment 484242 [details] [diff] [review] patch >+bool >+ContentParent::RecvShowFilePicker(nsString* aFilePath) >+{ >+#ifdef ANDROID >+ AndroidBridge::Bridge()->ShowFilePicker(*aFilePath); >+#endif >+ return true; >+} should non-android ever call this? NS_RUNTIMEABORT >- mozilla::AndroidBridge::Bridge()->ShowFilePicker(filePath); >+ if (mozilla::AndroidBridge::Bridge()) >+ mozilla::AndroidBridge::Bridge()->ShowFilePicker(filePath); >+ else >+ mozilla::dom::ContentChild::GetSingleton()->SendShowFilePicker(&filePath); >+ Shouldn't the bridge hide this nasty branch? This doesn't do everything our filepickers can do. For example, multiple files.. Have you looked at bug 594368 (even has a patch!). Maybe get that cleaned up and land that instead?
Attachment #484242 - Flags: review?(doug.turner) → review-
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: