Edgar Chen
96afd3a327
Bug 1856052 - Remove unused parameter from SetNativeClipboardData; r=geckoview-reviewers,win-reviewers,spohl,mhowell,m_kato
...
After bug 1851817, all platforms uses nsBaseClipboard as base class and clipboard
owner is handled there, so nsIClipboardOwner parameter is unused.
Differential Revision: https://phabricator.services.mozilla.com/D190236
2023-10-17 13:15:31 +00:00
Edgar Chen
e10b9f806d
Bug 1841258 - Part 2: Make nsClipboard using nsBaseClipboard; r=geckoview-reviewers,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D182559
2023-08-30 10:26:38 +00:00
Edgar Chen
cc82f561cd
Bug 1841258 - Part 1: Support clipboard sequence number on Android clipboard backend; r=geckoview-reviewers,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D182558
2023-08-30 10:26:37 +00:00
Makoto Kato
13e4a80a6b
Bug 1839582 - Support image paste. r=geckoview-reviewers,owlish
...
Actually, we support plain text and HTML for copy & paste format.
This adds image type for paste from clipboard.
To support copy image, Android requires content provider. It will
require something delegation to implement content provider in GeckoView.
So this doesn't include it.
Differential Revision: https://phabricator.services.mozilla.com/D181839
2023-07-11 23:52:39 +00:00
Edgar Chen
8a1d360c1a
Bug 1712122 - Part 3: Cancel pending write request when a new write request is made; r=nika,geckoview-reviewers,m_kato
...
The Async Clipboard API now allows using arbitrary promises for passing write data,
potentially enabling websites to delay writing data to an arbitrary future, which
may surprise the user. This patch introduces a solution: a new write request will
automatically cancel any previous pending request.
To implement that, this patch introduces a new method to nsIClipboard, new XPCOM
interfaces, and new IPC to efficiently track individual write requests. Additionally,
a new helper base class, ClipboardSetDataHelper, is introduced in widget to facilitate
platform code sharing.
Differential Revision: https://phabricator.services.mozilla.com/D174090
2023-05-14 21:02:08 +00:00
Neil Deakin
9c2e7458ba
Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato
...
Most usage is a straight replacement but gtk needs extra changes as it transfers plain text in UTF8 natively and needs to be converted into UTF16, and Windows uses single-byte characters for RTF and CF_HTML formats so we preserve this.
Differential Revision: https://phabricator.services.mozilla.com/D158587
2023-02-01 23:30:55 +00:00
Edgar Chen
e5fe0a40c0
Bug 1796548 - Introduce a generic method to check clipboard capabilities in nsIClipboard; r=geckoview-reviewers,nika,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D166475
2023-01-16 19:50:17 +00:00
Edgar Chen
3e5030eb96
Bug 1755863 - Part 2: Add async API/IPC for getting matching data flavors from clipboard; r=nika,geckoview-reviewers,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D152516
2022-08-15 20:27:26 +00:00
Edgar Chen
f6014ee7c6
Bug 1755863 - Part 1: Add async API for getting data on nsIClipboard; r=geckoview-reviewers,NeilDeakin,m_kato,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D145378
2022-08-15 20:27:24 +00:00
Norisz Fay
eef7d5c5ac
Backed out changeset 00f6bd7aa727 (bug 1755481) for causing multiple clipboard related failures CLOSED TREE
2022-02-16 12:14:58 +02:00
Mirko Brodesser
8aa76ff1d7
Bug 1755481: rename `nsIClipboard::getData` to `nsIClipboard::getSomeData` and document it. r=mccr8
...
Before, it was confusing. One could have assumed that the method gets
the data for all flavors.
Differential Revision: https://phabricator.services.mozilla.com/D138776
2022-02-16 09:03:00 +00:00
Aaron Klotz
852cd2b63c
Bug 1637452: Part 1 - Fix JNI includes in widget/android; r=geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D75364
2020-05-15 17:04:10 +00:00
Aaron Klotz
dddb83ab28
Bug 1608577: Part 3 - Remove |using namespace mozilla::java| from widget/android; r=geckoview-reviewers,esawin
...
Differential Revision: https://phabricator.services.mozilla.com/D59798
--HG--
extra : moz-landing-system : lando
2020-01-14 16:47:59 +00:00
Nick Alexander
c46ec74815
Bug 1580356 - Remove Fennec (Firefox for Android). r=snorp,mshal
...
This does many things:
1) stops producing (and consuming) `FennecJNI*` JNI wrappers
2) removes the :app and :thirdparty Gradle projects
3) removes relevant pieces of the Gradle target configuration
4) updates lints
5) purges old configurations
After this commit, the `mobile/android` project/application builds
only GeckoView.
Differential Revision: https://phabricator.services.mozilla.com/D46536
--HG--
extra : moz-landing-system : lando
2019-10-04 20:55:11 +00:00
Boris Zbarsky
5eb248348f
Bug 1557847. Stop using [array] in nsIClipboard. r=NeilDeakin
...
Differential Revision: https://phabricator.services.mozilla.com/D34243
--HG--
extra : moz-landing-system : lando
2019-06-09 01:06:39 +00:00
Sylvestre Ledru
e226046cb8
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Makoto Kato
7426d1f4e9
Bug 1539827 - Handle RuntimeException when setting clipboard data r=geckoview-reviewers,snorp
...
When setting large clipboard data, it may cause `TransactionTooLargeException`
in binder IPC. So we have to handle `RuntimeException`.
Differential Revision: https://phabricator.services.mozilla.com/D27466
--HG--
extra : moz-landing-system : lando
2019-04-18 10:13:38 +00:00
Makoto Kato
ae43a8cf0a
Bug 676268 - Part 1. Support text/html on Android clipboard backend. r=geckoview-reviewers,snorp
...
Summary: Actually, we only support `text/unicode` mime type on Android clipboard backend. But Android API 16+ supports `text/html`, so we should support this type since Chrome/Blink already supports it.
Reviewers: #geckoview-reviewers, snorp
Reviewed By: #geckoview-reviewers, snorp
Bug #: 676268
Differential Revision: https://phabricator.services.mozilla.com/D22659
--HG--
extra : rebase_source : 17ef0aa06b83b812bb9bccfab93a72e0b37f9652
2019-03-20 14:47:19 +09:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Tom Schuster
6296f48a85
Bug 1493292 - Remove aDataLen parameters from nsITransferable.setTransferData. r=smaug
...
Depends on D11201
Differential Revision: https://phabricator.services.mozilla.com/D11202
--HG--
extra : moz-landing-system : lando
2018-11-20 17:00:09 +00:00
Tom Schuster
5a9d2a428c
Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
...
Depends on D11200
Differential Revision: https://phabricator.services.mozilla.com/D11201
--HG--
extra : moz-landing-system : lando
2018-11-20 16:59:56 +00:00
Csoregi Natalia
df7483024d
Backed out 6 changesets (bug 1493292) for bustage on /nsTransferable.cpp. CLOSED TREE
...
Backed out changeset f198bf91320b (bug 1493292)
Backed out changeset 6487aa307123 (bug 1493292)
Backed out changeset f2cabd69c568 (bug 1493292)
Backed out changeset 71430fceb4a3 (bug 1493292)
Backed out changeset 3a9b6d65d8c7 (bug 1493292)
Backed out changeset 55769869037c (bug 1493292)
2018-11-20 17:13:18 +02:00
Tom Schuster
8be0fec340
Bug 1493292 - Remove aDataLen parameters from nsITransferable.setTransferData. r=smaug
...
Depends on D11201
Differential Revision: https://phabricator.services.mozilla.com/D11202
--HG--
extra : moz-landing-system : lando
2018-11-20 14:47:04 +00:00
Tom Schuster
b292ec7c2c
Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
...
Depends on D11200
Differential Revision: https://phabricator.services.mozilla.com/D11201
--HG--
extra : moz-landing-system : lando
2018-11-20 14:47:02 +00:00
Jim Chen
db34ad5809
Bug 1412872 - 8. Remove GeckoAppShell dependency in gecko-view; r=snorp
...
In the future, GeckoAppShell will only be part of the service process
library, and will not be part of the app process library. Therefore, we
should minimize GeckoAppShell usage in any GeckoView code that will
likely end up in the app process library.
In particular, AndroidGamepadManager and Clipboard are made to accept
Context as arguments, instead of using
GeckoAppShell.getApplicationContext() for getting the Context.
MozReview-Commit-ID: G9SC815H5Ku
2017-11-01 14:54:04 -04:00
Jim Chen
c800eaab74
Bug 1292323 - Update WrapForJNI usages; r=snorp
...
Replace old flags in WrapForJNI usages with new flags. The calledFrom
and dispatchTo flags are set based on whether the method is native or
non-native, and how the method is used.
Also fix testEventDipatcher to respect NativeJSObject's calledFrom =
"gekco" flag, by moving a test to Gecko thread.
2016-08-12 23:15:52 -04:00
Jim Chen
ce45a595ab
Bug 1287946 - Update existing code to use mozilla::java; r=me
2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book
e8bc59a87a
Backed out changeset 684888aeee81 (bug 1287946)
2016-07-21 08:07:12 +02:00
Jim Chen
78f67d1f6f
Bug 1287946 - Update existing code to use mozilla::java; r=me
2016-07-21 00:42:26 -04:00
Neil Deakin
780d816c25
Bug 1270277, HasDataMatchingFlavors should only return true for text/unicode, r=snorp
2016-05-11 10:04:19 -04:00
Jim Chen
db34c64f29
Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp
2015-01-09 19:33:57 -05:00
Birunthan Mohanathas
5f1fde8824
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
snigdha
9cc482da68
Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey
2014-04-01 08:29:25 -04:00
Ryan VanderMeulen
0d7b59001e
Backed out changeset 6f05267b4afc (bug 798033) for Android bustage.
2014-03-05 09:55:52 -05:00
snigdha
a441998156
Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey
2014-03-05 08:47:45 -05:00
Mike de Boer
3b5ec7db6a
Bug 326743: add find clipboard to the list of available clipboard on OSX. r=joshmoz
2014-02-28 16:07:30 +01:00
Phil Ringnalda
2ff6e6f32a
Back out 024e6835e6ea:bece94ce2310 (bug 326743) for frequent 10.6 debug failures in browser_bug537013.js
2014-02-14 23:58:49 -08:00
Mike de Boer
e6d70963f2
Bug 326743: add find clipboard to the list of available clipboard on OSX. r=joshmoz
2014-02-14 14:04:19 +01:00
Bill McCloskey
c637f05bd4
Bug 966467 - Proxy clipboard service in content process (r=vlad)
2014-02-09 16:13:10 -08:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Chris Kitching
f7dde79803
Bug 913985: Part 6 - Remove redundant AndroidBridge::Bridge() checks. r=kats
2013-11-12 10:41:01 -08:00
Chris Kitching
36c7d139c0
Bug 913985: Part 5 - Refactor the Bridge to use the generated code. r=kats
2013-11-12 10:41:01 -08:00
Ryan VanderMeulen
2c440594a5
Backed out 7 changesets (bug 913985) for intermittent Android crashes.
...
Backed out changeset 53513a959cf0 (bug 913985)
Backed out changeset d23d1e678417 (bug 913985)
Backed out changeset a9c9187b4f4a (bug 913985)
Backed out changeset c6b02e4a3e35 (bug 913985)
Backed out changeset 895dae322e3c (bug 913985)
Backed out changeset 3d97e6a53313 (bug 913985)
Backed out changeset 892bb017f8ba (bug 913985)
--HG--
rename : build/annotationProcessors/AnnotationInfo.java => build/annotationProcessors/MethodWithAnnotationInfo.java
rename : build/annotationProcessors/utils/AlphabeticAnnotatableEntityComparator.java => build/annotationProcessors/utils/AlphabeticMethodComparator.java
rename : build/annotationProcessors/utils/GeneratableElementIterator.java => build/annotationProcessors/utils/GeneratableEntryPointIterator.java
rename : mobile/android/base/mozglue/generatorannotations/WrapElementForJNI.java => mobile/android/base/mozglue/GeneratableAndroidBridgeTarget.java
rename : mobile/android/base/mozglue/generatorannotations/OptionalGeneratedParameter.java => mobile/android/base/mozglue/OptionalGeneratedParameter.java
2013-11-19 10:56:09 -05:00
Chris Kitching
ce5cac707e
Bug 913985 - Part 6: remove redundant AndroidBridge::Bridge() checks. r=kats
2013-11-12 10:41:01 -08:00
Chris Kitching
c4e86cb63e
Bug 913985 - Part 5: refactor the Bridge to use the generated code. r=kats
2013-11-12 10:41:01 -08:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Eric Wong
c200656eac
Bug 773760: Save privacy status of transferable during cross-process clipboard transfer. r=ehsan
2012-08-14 20:37:44 -07:00
Ed Morley
5381ebd3cb
Backout 327d9e9efbf7 (bug 773760) for bustage
2012-08-14 16:23:02 +01:00
Eric Wong
6cc858556c
Bug 773760: Save privacy status of transferable during cross-process clipboard transfer. r=ehsan
2012-08-13 22:46:23 -07:00
Joshua Cranmer
a1186c1020
Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
...
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00