Masayuki Nakano
e56c690088
Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
...
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.
Additonally, "shell" is unclear ("docshell" vs. "presshell"). Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.
Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.
Differential Revision: https://phabricator.services.mozilla.com/D25338
2019-03-29 15:12:47 +00:00
Dorel Luca
6cd4166b18
Backed out 3 changesets (bug 1540015) for build bustage. CLOSED TREE
...
Backed out changeset 7b71c9da0214 (bug 1540015)
Backed out changeset 5723ddbc5c44 (bug 1540015)
Backed out changeset 9561d2c36fa5 (bug 1540015)
2019-03-29 16:14:26 +02:00
Masayuki Nakano
12ec0ad7f4
Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
...
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.
Additonally, "shell" is unclear ("docshell" vs. "presshell"). Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.
Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.
Differential Revision: https://phabricator.services.mozilla.com/D25338
2019-03-29 13:09:26 +00:00
Ryan Hunt
dbea16f87d
Bug 1523969 part 26 - Move method definition inline comments to new line in 'widget/'. r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D21130
2019-02-25 16:13:48 -06:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Tom Schuster
867dd043b9
Bug 571074 - Mark nsITransferable.getTransferData as [must_use]. r=mats
...
Differential Revision: https://phabricator.services.mozilla.com/D13454
2019-01-04 16:16:59 +00:00
Tooru Fujisawa
00e64f3dee
Bug 1509384 - Use IPC::Principal instead of Principal URI string in Drag-and-Drop. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D13728
2019-01-04 03:16:46 +00:00
Emilio Cobos Álvarez
dc336a73ba
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Tooru Fujisawa
5ef6d9cc06
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Benjamin Bouvier
5e1b39e9bd
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
2018-11-30 16:39:55 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Andreea Pavel
c67e826ab6
Backed out changeset f9900ac6071c (bug 571074) for failing clipboard at browser/base/content/test/general/browser_clipboard.js on a CLOSED TREE
2018-11-30 02:30:22 +02:00
Tom Schuster
e454809e2e
Bug 571074 - Mark nsITransferable.getTransferData as [must_use]. r=mats
...
Differential Revision: https://phabricator.services.mozilla.com/D13454
2018-11-29 21:57:40 +00:00
Tom Schuster
4aff127bcd
Bug 1493292 - Remove aDataLen parameters from nsITransferable.setTransferData. r=smaug
...
Depends on D11201
Differential Revision: https://phabricator.services.mozilla.com/D11202
2018-11-20 17:00:09 +00:00
Tom Schuster
8b2f90e93c
Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
...
Depends on D11200
Differential Revision: https://phabricator.services.mozilla.com/D11201
2018-11-20 16:59:56 +00:00
Csoregi Natalia
5ada471f97
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
f500ae50a9
Bug 1493292 - Remove aDataLen parameters from nsITransferable.setTransferData. r=smaug
...
Depends on D11201
Differential Revision: https://phabricator.services.mozilla.com/D11202
2018-11-20 14:47:04 +00:00
Tom Schuster
e294f7e628
Bug 1493292 - Remove aDataLen parameters from nsITransferable.getTransferData. r=smaug
...
Depends on D11200
Differential Revision: https://phabricator.services.mozilla.com/D11201
2018-11-20 14:47:02 +00:00
Tom Schuster
d3ca356650
Bug 1503577 - Change CreateDataFromPrimitive aDataLen to out parameter with size of string in bytes. r=mstange
...
Right now CreateDataFromPrimitive doesn't use the aDataLen parameter, and after this change the out
value should be the same as the value passed in, as long as we are dealing with strings.
Differential Revision: https://phabricator.services.mozilla.com/D10718
2018-11-09 13:24:28 +00:00
Tom Schuster
971f6bab50
Bug 1501874 - Remove CreateDataFromPrimitive usage from CreateUriList and clean up surrounding code r=karlt
...
Differential Revision: https://phabricator.services.mozilla.com/D9731
2018-10-28 21:05:15 +00:00
Tom Schuster
8e820b5c01
Bug 1497831 - Use nsTArray instead of nsIArray for nsITransferable. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D8194
2018-10-10 20:25:54 +00:00
Neil Deakin
117d5b55bb
Bug 1310193 - Remove wrapping of nsISupports as nsISupportsInterfacePointer in transferables. r=smaug
2018-10-07 16:33:07 +02:00
Tom Schuster
b159a5ab1d
Bug 396370 - Gtk (XDnd) Image/File drag and drop support r=karlt
...
Based on a patch from Marco Pesenti Gritti (11 years ago)
Depends on D7407
Differential Revision: https://phabricator.services.mozilla.com/D7408
2018-10-04 10:31:45 +00:00
Neil Deakin
bb1d678c62
Bug 1473029, convert drag services to internally use CSSIntRegion instead ns nsIScriptableRegion, r=mstange
2018-08-07 09:32:08 -04:00
Neil Deakin
b99b3fbddd
Bug 1473029, remove the region arguments from InvokeDragSession and InvokeDragSessionWithImage, r=mstange
2018-08-07 09:32:07 -04:00
Chris Peterson
f7ceeaf5cf
Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
...
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.
MozReview-Commit-ID: 5UQVHElSpCr
2018-06-17 22:43:11 -07:00
Boris Zbarsky
5f546dac16
Bug 1455676 part 3. Remove nsIDOMNode usage from widget/. r=qdot
2018-05-29 22:58:48 -04:00
Martin Stransky
b02a1bfaeb
Bug 1463753 - [DragAndDrop] Update mTarget(Wayland)DragContext unconditionally and check its validity after that, r=jhorak
...
MozReview-Commit-ID: KiNaPDDVvLu
2018-05-24 11:51:17 +02:00
Martin Stransky
ed3fc12c14
Bug 1438131 - Implement Drop on Wayland, r=jhorak
...
This patch implements Drop operation on Wayland/Gtk+. That's because drop operations are part
of clipboard on Wayland and we use our own paste clipboard handler on Wayland (Bug 1282015).
Wayland drop data are provided by wl_data_device_listener, it provides us drag and drop callbacks
which we route to nsDragService module.
MozReview-Commit-ID: 9uGYPg9YF6P
2018-04-05 16:16:43 +02:00
Adrian Wielgosik
8a976cc5e7
Bug 1460940 - Remove nsIDOMDocument uses in widget/. r=bz
...
MozReview-Commit-ID: Rxvwm6zfrB
2018-05-11 19:46:15 +02:00
Boris Zbarsky
5d017f96cf
Bug 1387143 part 29. Remove nsISelection. r=mats
2018-05-08 13:52:42 -04:00
Tooru Fujisawa
c2f56585a8
Bug 1424107 - Pass the triggering principal URI across processes in drag-and-drop. r=smaug
2018-02-09 10:43:53 +09:00
Sylvestre Ledru
aeb1902651
Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman
...
MozReview-Commit-ID: 3v8D600g8St
2018-01-10 08:52:04 +01:00
Sylvestre Ledru
1dc3061203
Bug 1278282 - Ride along Remove some trailing whitespaces r=lsalzman
...
MozReview-Commit-ID: 8W6VKIW8PQV
2017-12-19 11:38:59 +01:00
Sylvestre Ledru
71230b028f
Bug 1278282 - Replace #if (MOZ_WIDGET_GTK == 3) by #ifdef MOZ_WIDGET_GTK r=lsalzman
...
MozReview-Commit-ID: Bo0m7n078oh
2018-01-09 11:51:07 +01:00
Nicholas Nethercote
42d8740878
Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm.
2017-08-21 20:01:27 +10:00
Brendan Dahl
4bdf23b58e
Bug 1353939 - Disable drag service in headless mode. r=jrmuizel
...
Drag service calls into GTK causing a crash in headless mode.
2017-04-10 11:30:52 -07:00
Gaith
1100bc7625
Bug 1219464 - Replace PRLogModuleInfo usage with LazyLogModule in widget/. r=erahm
...
MozReview-Commit-ID: Ge7I8YlNqgM
2016-05-18 22:55:42 +03:00
Kan-Ru Chen
59bfd6e8d3
Bug 1194751 - Part 5. Implement ScreenHelperGTK and delete old nsScreenManagerGtk/nsScreenGtk. r=karlt
...
ScreenHelperGTK is the platform dependent part of the original
nsScreenManagerGtk and nsScreenGtk. It registers monitors-changed
event listener from gtk and pushes updates to ScreenManager. See patch
part 4. for how ScreenManager works.
MozReview-Commit-ID: KBo7ZLFTjM3
2017-03-09 19:29:44 +08:00
Stone Shih
2b86511344
Bug 606885 - Fire drag events with keyboard modifiers. r=enn
2017-02-17 11:29:42 +08:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Neil Deakin
c4318e2b63
Bug 1287823, When a file is available in the drag data we provide, and no uri is available, get the uri of the file and use it as the text/uri-list data, r=karlt
2016-10-21 11:22:15 -04: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
Eric Rahm
ce3a293d8c
Bug 1310017 - Remove nsISupportsArray usage from nsITransferable and nsIFormatConverter. r=smaug
...
This converts |nsITransferable.flavorsTransferableCanExport| and
|nsITransferable.flavorsTransferableCanImport| to return a |nsIArray|.
|nsIFormatConverter.getInputDataFlavors| and
|nsIFormatConverter.getOutputDataFlavors| are updated as well.
2016-10-16 12:43:56 -07:00
Ryan Hunt
889bd8ab44
Bug 1294586 - Remove dependency on gfxPlatform from CreateDrawTargetFromData. r=dvander
...
MozReview-Commit-ID: A355fBJKWP6
2016-08-11 14:54:08 -07:00
Nicolas Silva
3766bcc94a
Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond
2016-07-26 16:48:30 +02:00
Nathan Froyd
a1ee6a039f
Bug 1280964 - fix gtk+2 build problems in widget/gtk/; r=karlt
2016-06-21 02:28:34 -04: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