Alexis Beingessner
3117218f13
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-13 11:00:10 -04:00
Sebastian Hengst
1b1d14e565
Backed out changeset 3d1ce85e6348 (bug 1088760) for bustage, at least on Android at layout/generic/nsPluginFrame.cpp:1612. r=backout
2017-06-13 00:30:03 +02:00
Alexis Beingessner
c6fbc5e17e
Bug 1088760 - Remove nsRenderingContext, replacing all of its uses with gfxContext. r=jwatt,jrmuizel
...
MozReview-Commit-ID: K1WUIOnvazF
2017-06-12 17:32:48 -04:00
Farmer Tseng
169f2d53db
Bug 1361949 - Add missing 'using namespace::widget' to widget/windows/nsDragService.cpp r=jwatt
...
Because ModifierKeyState is in the 'mozilla::widget' namespace, this file uses
it without qualification.
MozReview-Commit-ID: H6t3AqLjRwJ
2017-05-04 17:31:23 +08:00
Stone Shih
2b86511344
Bug 606885 - Fire drag events with keyboard modifiers. r=enn
2017-02-17 11:29:42 +08:00
Neil Deakin
8d294a33cd
Bug 1309596, implementation of UpdateDragImage by adjusting image and calling DragEnter of the drag feedback helper, r=jimm
2016-12-23 18:09:44 -05:00
Neil Deakin
df6ce0d915
Bug 1301673, use device pixels for the supplied drag position and the computed dragrectangle, r=tn
2016-10-19 15:01:39 -04:00
Neil Deakin
4a820ef165
Bug 1301673, use more specific coordinates for screen position in drag calculations, r=tn
2016-10-19 15:01:39 -04:00
Eric Rahm
2a4d3b22b9
Bug 1309698 - Remove usage of nsISupportsArray from nsIDragService. r=smaug
2016-10-18 11:56:20 -07:00
Hector Zhao
e4bed69af9
Bug 664717 - Part 1: Switch to requestingPrincipal in nsITransferable. r=ckerschb
...
MozReview-Commit-ID: Hndb5ftbEuL
2016-07-01 16:01:11 +08:00
Masatoshi Kimura
ffdc38f400
Bug 1288760 - Fix point conversion in nsDragService::StartInvokingDragSession. r=jfkthame
...
MozReview-Commit-ID: DgNtnsvEPnR
2016-07-28 19:57:28 +09:00
Thomas Zimmermann
ba133ac07a
Bug 1265386: Fix white-space errors in widget/, r=nfroyd
...
MozReview-Commit-ID: ATXI7dYFHmA
2016-07-22 10:56:13 +02:00
Carsten "Tomcat" Book
49865a8de6
Backed out changeset 2bea1e1e403d (bug 1265386) for bustage on a CLOSED TREE
2016-07-21 13:59:02 +02:00
Thomas Zimmermann
4fa3fb2bb5
Bug 1265386: Fix white-space errors in widget/, r=nfroyd
...
MozReview-Commit-ID: ATXI7dYFHmA
2016-07-21 13:29:30 +02:00
Jonathan Kingston
ed99242d32
Bug 1192945 - Use channel->asyncOpen2 in widget/windows/nsDataObj.cpp. r=ckerschb
...
MozReview-Commit-ID: 5whNAj5KAjf
2015-08-10 12:56:47 -07:00
Randell Jesup
48d6215a5d
Backed out changeset 36e71bcb0266 (bug 1192945)
2016-06-10 02:24:08 -04:00
Jonathan Kingston
99b2793b93
Bug 1192945 - Use channel->ascynOpen2 in widget/windows/nsDataObj.cpp . r=ckerschb, r=jmathies
...
MozReview-Commit-ID: 5whNAj5KAjf
2015-08-10 12:56:47 -07:00
Jonathan Watt
80a104b4e7
Bug 1265953, part 2 - Convert much of the rest of the widget code from nsAutoPtr to UniquePtr. r=mstange
2016-04-19 21:51:25 +01:00
Jorg K
15c978e033
Bug 1254980 - Ensure that text/html is still written to the clipboard. r=enndeakin
2016-03-22 11:47:00 -04:00
Jonathan Kew
492e14ee2f
Bug 890156 - patch 3 - Remove gfxWindowsPlatform::GetDPIScale and replace it with methods in WinUtils, ready for per-monitor DPI support. r=emk
2015-12-02 15:09:29 +00:00
Andrew Herron
60d679ba0f
Bug 586587 - support kHTMLMime in the Windows clipboard as CF_HTML. r=jimm
2015-07-22 16:56:57 +10:00
Karl Tomlinson
13517b1a0a
bug 1216916 clean up when InvokeDragSession() fails r=roc
2015-10-21 22:16:40 +13:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Nathan Froyd
bf7f6dda03
Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
...
This commit was generated using the following script, executed at the
top level of a typical source code checkout.
# Don't modify select files in mfbt/ because it's not worth trying to
# tease out the dependencies currently.
#
# Don't modify anything in media/gmp-clearkey/0.1/ because those files
# use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
grep -v 'mfbt/RefPtr.h' | \
grep -v 'mfbt/nsRefPtr.h' | \
grep -v 'mfbt/RefCounted.h' | \
grep -v 'media/gmp-clearkey/0.1/' | \
xargs perl -p -i -e '
s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#; # handle strange #includes
'
# |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'
# RefPtr.h used |byRef| for dealing with COM-style outparams.
# nsRefPtr.h uses |getter_AddRefs|.
# Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
Dragana Damjanovic
f5e3e71a6d
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Christoph Kerschbaumer
d0f5f17585
Bug 1038756: Callsites creating a channel in /widget/windows/ (r=jimm)
...
* * *
[mq]: windows.patch
2014-09-21 09:41:56 -07:00
Jacek Caban
c0162a2720
Bug 1055655 - Fix warnings turned to errors by bug 1018288 found by mingw build. r=ted,jmathies
2014-09-02 11:07:25 +02:00
Ryan VanderMeulen
37ca2dc203
Backed out changeset d5a514b9a0db (bug 586587) for mochitest failures.
2014-04-24 14:48:14 -04:00
Ben Davey
6b985cb6c0
Bug 586587 - Add support for drag and drop of HTML to Firefox. r=jimm
2014-04-23 14:58:00 -04:00
Mike Conley
400396d867
Bug 100180 - Modal dialogs should try to cancel any drag sessions in progress. r=roc.
2014-04-23 12:35:00 -04:00
Jonathan Watt
55c20bd03b
Bug 996901 - Remove lots of gfxASurface.h and gfxImageSurface.h includes and forward declarations that are no longer needed. r=mattwoodrow
2014-04-16 01:41:40 +01:00
Jonathan Watt
04abab00f8
Bug 980436 - Fix widget/windows/nsDragService.cpp's use of DataSourceSurface::Map(), and fix up the conversion to Moz2D. r=mattwoodrow
2014-03-07 18:15:51 +00:00
Ed Morley
fb3aae5c64
Backed out changeset c6cec6e8dbac (bug 980436) for crashes; CLOSED TREE
2014-03-07 17:53:39 +00:00
Jonathan Watt
ae2c176f11
Bug 980436 - Fix widget/windows/nsDragService.cpp's use of DataSourceSurface::Map(), and fix up the conversion to Moz2D. r=mattwoodrow
2014-03-07 16:52:38 +00:00
Matt Woodrow
d35ce6612f
Bug 962786 - Convert nsDragService to use Moz2D. r=roc
...
* * *
Bug 962786 - Bustage fix on a CLOSED TREE
2014-01-29 13:10:33 +13:00
Benoit Jacob
844232d97c
Bug 959380 - 2/5 - Make gfxImageFormat a typed enum - r=jrmuizel
...
find . -type f | grep -v \./obj | grep -v \.hg | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)gfxImageFormat\(ARGB32\|RGB24\|A8\|A1\|RGB16_565\|Unknown\)\($\|[^A-Za-z0-9_]\)/\1gfxImageFormat::\2\3/g'
2014-01-23 13:26:40 -05:00
Birunthan Mohanathas
610c975730
Bug 784739 - Switch from NULL to nullptr in widget/windows/ (1/3); r=ehsan
2013-10-08 14:48:02 -04:00
Benoit Jacob
f6f57bbbb4
Bug 913872 - Take nested enums out of gfxASurface - 1/3 : automatic changes - r=jrmuizel
...
Generated by these regexes:
find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(ImageFormat\|SurfaceType\|ContentType\|MemoryLocation\)[0-9A-Za-z_]*\)/gfx\1/g'
find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/gfx[A-Za-z0-9_]*Surface\:\:[a-z]*\(\(CONTENT_\|MEMORY_\)[0-9A-Za-z_]*\)/GFX_\1/g'
find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(CONTENT_COLOR\|CONTENT_ALPHA\|CONTENT_COLOR_ALPHA\|CONTENT_SENTINEL\|MEMORY_IN_PROCESS_HEAP\|MEMORY_IN_PROCESS_NONHEAP\|MEMORY_OUT_OF_PROCESS\)\($\|[^A-Za-z0-9_]\)/\1GFX_\2\3/g'
find . -name '*.h' -o -name '*.cpp' -o -name '*.mm' | grep -v '\.hg' | grep -v '^\.\/obj' | xargs sed -i 's/\(^\|[^A-Za-z0-9_]\)\(ImageFormatARGB32\|ImageFormatRGB24\|ImageFormatA8\|ImageFormatA1\|ImageFormatRGB16_565\|ImageFormatUnknown\|SurfaceTypeImage\|SurfaceTypePDF\|SurfaceTypePS\|SurfaceTypeXlib\|SurfaceTypeXcb\|SurfaceTypeGlitz\|SurfaceTypeQuartz\|SurfaceTypeWin32\|SurfaceTypeBeOS\|SurfaceTypeDirectFB\|SurfaceTypeSVG\|SurfaceTypeOS2\|SurfaceTypeWin32Printing\|SurfaceTypeQuartzImage\|SurfaceTypeScript\|SurfaceTypeQPainter\|SurfaceTypeRecording\|SurfaceTypeVG\|SurfaceTypeGL\|SurfaceTypeDRM\|SurfaceTypeTee\|SurfaceTypeXML\|SurfaceTypeSkia\|SurfaceTypeSubsurface\|SurfaceTypeD2D\|SurfaceTypeMax\)\($\|[^A-Za-z0-9_]\)/\1gfx\2\3/g'
2013-09-24 16:45:13 -04:00
Jonathan Kew
936a7e4b26
bug 818927 part 2 - refactoring - create a GetDPIScale method in gfxWindowsPlatform, and use this to replace GetDeviceCaps(hdc, LOGPIXELSY) in widget code. r=jimm
2013-04-01 10:10:28 +01:00
Jonathan Kew
f2cda82f48
bug 818927 - convert drop location to logical pixels for Windows. r=jimm
2013-04-01 10:10:09 +01:00
Ehsan Akhgari
243c878d26
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
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Brian R. Bondy
6f2ba97830
Bug 693263 - Support CF_HDROP format for drag and dropped files. r=neil.
2012-07-08 17:12:42 -04:00
Jonathan Watt
131c149f2a
Bug 767388 - Kill NS_DEBUG. r=bz.
2012-06-25 20:59:42 +01:00
Jignesh Kakadiya
df4467d037
Bug 754384 - nsDragService's mNativeDragTarget is completely unused. r=khuey
2012-05-27 16:54:46 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Kyle Huey
b1a185a219
Bug 728663: Stop holding a completely unnecessary and leaky reference to the drag source on the drag service. r=jimm
2012-05-11 11:32:08 -07:00
aceman
74986e1294
Bug 457803 - Fix compiler warning "nsDragService.cpp(146) : warning C4146: unary minus operator applied to unsigned type". r=vlad
2012-03-19 18:52:07 -04:00
Neil Deakin
df84fdfb47
Bug 707382, merge nsIDOMDataTransfer and nsIDOMNSDataTransfer, r=jonas
2012-02-07 13:02:32 -05:00
Brian R. Bondy
d0a93b0ace
Bug 679226 - Fold widget/src into widget. r=roc
2012-01-03 22:09:29 -05:00